diff options
author | Huqiang Qin <[email protected]> | 2023-08-02 11:32:21 +0800 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2023-08-25 16:19:15 +0200 |
commit | 8c776a0401f1dcfcfc8e5549c5260668bec59c0e (patch) | |
tree | a93e1f7f53ef17b66f1cf15a37788f40fd8f4479 | |
parent | 55908e388b5daef8b0ca2b8091b3ad76e68af7ce (diff) |
watchdog: Add support for Amlogic-T7 SoCs
Compared with the previous Amlogic-GXBB, the watchdog of Amlogic-T7
has a different reset enable bit.
Signed-off-by: Huqiang Qin <[email protected]>
Reviewed-by: Dmitry Rokosov <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
-rw-r--r-- | drivers/watchdog/meson_gxbb_wdt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/watchdog/meson_gxbb_wdt.c b/drivers/watchdog/meson_gxbb_wdt.c index 18180d91543e..a48622d11ad7 100644 --- a/drivers/watchdog/meson_gxbb_wdt.c +++ b/drivers/watchdog/meson_gxbb_wdt.c @@ -147,8 +147,13 @@ static const struct wdt_params gxbb_params = { .rst = BIT(21), }; +static const struct wdt_params t7_params = { + .rst = BIT(22), +}; + static const struct of_device_id meson_gxbb_wdt_dt_ids[] = { { .compatible = "amlogic,meson-gxbb-wdt", .data = &gxbb_params, }, + { .compatible = "amlogic,t7-wdt", .data = &t7_params, }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, meson_gxbb_wdt_dt_ids); |