diff options
| author | Antonio Borneo <[email protected]> | 2025-05-23 11:46:55 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2025-07-30 08:01:11 +0200 |
| commit | 091303c788c2360d6ec0bf1b315d160b3b556a07 (patch) | |
| tree | fd01c076777fe1df4a5f2f09b0933e4211429152 /include | |
| parent | a8f20bb6650df56d2600cda2c66f9349df9e49c8 (diff) | |
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 <[email protected]>
Signed-off-by: Patrice Chotard <[email protected]>
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/wdt.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wdt.h b/include/wdt.h index 5026f5a6db4..1ef656585c4 100644 --- a/include/wdt.h +++ b/include/wdt.h @@ -19,6 +19,15 @@ struct udevice; */ /* + * Force watchdog start during init. Called by driver's probe when the watchdog + * is detected as already started. + * + * @dev: WDT Device + * @return: 0 if OK, -ve on error + */ +int wdt_set_force_autostart(struct udevice *dev); + +/* * Start the timer * * @dev: WDT Device |
