Skip to content

Commit

Permalink
watchdog: Add support for Amlogic-T7 SoCs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Huqiang Qin authored and Wim Van Sebroeck committed Aug 25, 2023
1 parent 55908e3 commit 8c776a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/watchdog/meson_gxbb_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8c776a0

Please sign in to comment.