From: Huqiang Qin Date: Wed, 2 Aug 2023 03:32:21 +0000 (+0800) Subject: watchdog: Add support for Amlogic-T7 SoCs X-Git-Tag: v6.6-rc1~44^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c776a0401f1dcfcfc8e5549c5260668bec59c0e;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Dmitry Rokosov Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20230802033222.4024946-4-huqiang.qin@amlogic.com Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/meson_gxbb_wdt.c b/drivers/watchdog/meson_gxbb_wdt.c index 18180d91543e5..a48622d11ad72 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);