|
@@ -219,8 +219,18 @@ static const struct sunxi_wdt_reg sun4i_wdt_reg = {
|
|
|
.wdt_reset_val = 0x02,
|
|
|
};
|
|
|
|
|
|
+static const struct sunxi_wdt_reg sun6i_wdt_reg = {
|
|
|
+ .wdt_ctrl = 0x10,
|
|
|
+ .wdt_cfg = 0x14,
|
|
|
+ .wdt_mode = 0x18,
|
|
|
+ .wdt_timeout_shift = 4,
|
|
|
+ .wdt_reset_mask = 0x03,
|
|
|
+ .wdt_reset_val = 0x01,
|
|
|
+};
|
|
|
+
|
|
|
static const struct of_device_id sunxi_wdt_dt_ids[] = {
|
|
|
{ .compatible = "allwinner,sun4i-a10-wdt", .data = &sun4i_wdt_reg },
|
|
|
+ { .compatible = "allwinner,sun6i-a31-wdt", .data = &sun6i_wdt_reg },
|
|
|
{ /* sentinel */ }
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids);
|