OSDN Git Service

watchdog: Add support for Amlogic-T7 SoCs
authorHuqiang Qin <huqiang.qin@amlogic.com>
Wed, 2 Aug 2023 03:32:21 +0000 (11:32 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Fri, 25 Aug 2023 14:19:15 +0000 (16:19 +0200)
Compared with the previous Amlogic-GXBB, the watchdog of Amlogic-T7
has a different reset enable bit.

Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
Reviewed-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230802033222.4024946-4-huqiang.qin@amlogic.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/meson_gxbb_wdt.c

index 18180d9..a48622d 100644 (file)
@@ -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);