]> git.ipfire.org Git - thirdparty/u-boot.git/commit
watchdog: wdt-uclass.c: add wdt_set_force_autostart() helper
authorAntonio Borneo <antonio.borneo@foss.st.com>
Fri, 23 May 2025 09:46:55 +0000 (11:46 +0200)
committerStefan Roese <stefan.roese@mailbox.org>
Wed, 30 Jul 2025 06:01:11 +0000 (08:01 +0200)
commit091303c788c2360d6ec0bf1b315d160b3b556a07
treefd01c076777fe1df4a5f2f09b0933e4211429152
parenta8f20bb6650df56d2600cda2c66f9349df9e49c8
watchdog: wdt-uclass.c: add wdt_set_force_autostart() helper

The watchdog could have been already started by a previous boot
stage (e.g. bootrom or secure OS). U-Boot has to start and kick
the watchdog even when CONFIG_WATCHDOG_AUTOSTART is not enabled
or when the DT property u-boot,noautostart is present.

Add the helper wdt_set_force_autostart() that can be called by the
driver's probe() when it detects that the watchdog has already
been started and is running.

Co-developed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/watchdog/wdt-uclass.c
include/wdt.h