diff options
-rw-r--r-- | drivers/watchdog/sunxi_wdt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/watchdog/sunxi_wdt.c b/drivers/watchdog/sunxi_wdt.c index a1f7113fc1d1..b62301e74e5f 100644 --- a/drivers/watchdog/sunxi_wdt.c +++ b/drivers/watchdog/sunxi_wdt.c | |||
@@ -219,8 +219,18 @@ static const struct sunxi_wdt_reg sun4i_wdt_reg = { | |||
219 | .wdt_reset_val = 0x02, | 219 | .wdt_reset_val = 0x02, |
220 | }; | 220 | }; |
221 | 221 | ||
222 | static const struct sunxi_wdt_reg sun6i_wdt_reg = { | ||
223 | .wdt_ctrl = 0x10, | ||
224 | .wdt_cfg = 0x14, | ||
225 | .wdt_mode = 0x18, | ||
226 | .wdt_timeout_shift = 4, | ||
227 | .wdt_reset_mask = 0x03, | ||
228 | .wdt_reset_val = 0x01, | ||
229 | }; | ||
230 | |||
222 | static const struct of_device_id sunxi_wdt_dt_ids[] = { | 231 | static const struct of_device_id sunxi_wdt_dt_ids[] = { |
223 | { .compatible = "allwinner,sun4i-a10-wdt", .data = &sun4i_wdt_reg }, | 232 | { .compatible = "allwinner,sun4i-a10-wdt", .data = &sun4i_wdt_reg }, |
233 | { .compatible = "allwinner,sun6i-a31-wdt", .data = &sun6i_wdt_reg }, | ||
224 | { /* sentinel */ } | 234 | { /* sentinel */ } |
225 | }; | 235 | }; |
226 | MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids); | 236 | MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids); |