- Handling all DM watchdogs in watchdog_reset() (Rasmus)
This commit is contained in:
Tom Rini
2021-08-31 19:11:15 -04:00
12 changed files with 354 additions and 66 deletions

View File

@@ -447,12 +447,6 @@ struct global_data {
*/
fdt_addr_t translation_offset;
#endif
#if CONFIG_IS_ENABLED(WDT)
/**
* @watchdog_dev: watchdog device
*/
struct udevice *watchdog_dev;
#endif
#ifdef CONFIG_GENERATE_ACPI_TABLE
/**
* @acpi_ctx: ACPI context pointer

View File

@@ -37,6 +37,14 @@ int wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags);
*/
int wdt_stop(struct udevice *dev);
/*
* Stop all registered watchdog devices.
*
* @return: 0 if ok, first error encountered otherwise (but wdt_stop()
* is still called on following devices)
*/
int wdt_stop_all(void);
/*
* Reset the timer, typically restoring the counter to
* the value configured by start()