Commit 8c776a04 authored by Huqiang Qin's avatar Huqiang Qin Committed by Wim Van Sebroeck

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: default avatarHuqiang Qin <huqiang.qin@amlogic.com>
Reviewed-by: default avatarDmitry Rokosov <ddrokosov@sberdevices.ru>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230802033222.4024946-4-huqiang.qin@amlogic.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 55908e38
...@@ -147,8 +147,13 @@ static const struct wdt_params gxbb_params = { ...@@ -147,8 +147,13 @@ static const struct wdt_params gxbb_params = {
.rst = BIT(21), .rst = BIT(21),
}; };
static const struct wdt_params t7_params = {
.rst = BIT(22),
};
static const struct of_device_id meson_gxbb_wdt_dt_ids[] = { static const struct of_device_id meson_gxbb_wdt_dt_ids[] = {
{ .compatible = "amlogic,meson-gxbb-wdt", .data = &gxbb_params, }, { .compatible = "amlogic,meson-gxbb-wdt", .data = &gxbb_params, },
{ .compatible = "amlogic,t7-wdt", .data = &t7_params, },
{ /* sentinel */ }, { /* sentinel */ },
}; };
MODULE_DEVICE_TABLE(of, meson_gxbb_wdt_dt_ids); MODULE_DEVICE_TABLE(of, meson_gxbb_wdt_dt_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment