diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-10-17 09:09:57 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-27 11:13:29 +0200 |
commit | 0e3902ca5bd8f1fe58bb27cea3142d8ed0b21646 (patch) | |
tree | bd04f763f79a94b88e8fb21b7aeca34173095abc /drivers/watchdog | |
parent | c84795430d58b67e95f01e754bcc2920e52b1b07 (diff) | |
download | barebox-0e3902ca5bd8f1fe58bb27cea3142d8ed0b21646.tar.gz barebox-0e3902ca5bd8f1fe58bb27cea3142d8ed0b21646.tar.xz |
watchdog: imxwd: set imxwd-warm as reboot mode default handler
Set RESTART_FLAG_WARM_BOOTROM for imxwd-warm, so reset -w directly
selects this handler. i.MX6QDL/8MM Users now can just do
gpr.reboot_mode.next=serial reset -w
and it should behave as expected.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20221017071000.1458292-6-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/imxwd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/imxwd.c b/drivers/watchdog/imxwd.c index b669f6702d..5e9962866f 100644 --- a/drivers/watchdog/imxwd.c +++ b/drivers/watchdog/imxwd.c @@ -230,6 +230,7 @@ static int imx21_wd_init(struct imx_wd *priv) priv->restart_warm.name = "imxwd-warm"; priv->restart_warm.restart = imxwd_force_soc_reset_internal; priv->restart_warm.priority = RESTART_DEFAULT_PRIORITY - 10; + priv->restart_warm.flags = RESTART_FLAG_WARM_BOOTROM; restart_handler_register(&priv->restart_warm); |