This series addresses the two watchdog drivers used on STM32MPxx
family platforms.

On the generic watchdog framework, it adds a new method
wdt_set_force_autostart() used by the watchdog drivers to force
the autostart status of the watchdog.
This is used when the driver detects that the watchdog has already
been started by a previous boot stage (e.g. HW, bootrom, Secure
OS, ...) and needs to be kicked by U-Boot regardless of the
autostart flag set in DT or in config.

On the driver arm_smc_wdt, it adds the API to query the Secure OS
about the state of the watchdog, and if at probe the watchdog is
already started it invokes wdt_set_force_autostart().

On the driver stm32mp_wdt, it adds the code to detect the state of
the watchdog, and if at probe the watchdog is already started it
invokes wdt_set_force_autostart().

At last, since all the watchdog drivers used on STM32MPxx family
platforms can query the status of the watchdog and use it
consequently, set WATCHDOG_AUTOSTART default to 'n' on such
platforms. This implies that U-Boot, by default, will respect the
status of the watchdog set by a previous boot stage.


Antonio Borneo (2):
  watchdog: wdt-uclass.c: add wdt_set_force_autostart() helper
  watchdog: arm_smc_wdt: get wdt status through SMCWD_GET_TIMELEFT

Clément Le Goffic (1):
  watchdog: stm32mp: check the watchdog status

Patrice Chotard (1):
  watchdog: don't autostart watchdog on STM32MP boards

 drivers/watchdog/Kconfig       |  1 +
 drivers/watchdog/arm_smc_wdt.c | 17 +++++++++++++++++
 drivers/watchdog/stm32mp_wdt.c | 33 +++++++++++++++++++++++++++++++++
 drivers/watchdog/wdt-uclass.c  |  9 +++++++++
 include/wdt.h                  |  9 +++++++++
 5 files changed, 69 insertions(+)


base-commit: 0bc9b288fab3d9d143066db71299a4c047be38b9
-- 
2.34.1

Reply via email to