diff options
| author | Samuel Holland <[email protected]> | 2021-11-03 22:55:14 -0500 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-11-04 08:57:19 +0100 |
| commit | a8f63d18bbb0a3e1456ac833e748d68f0ea1eece (patch) | |
| tree | 982a721594127f1ddf473b18fd76da2f76c34220 /drivers/sysreset/Kconfig | |
| parent | 5544a0114258ec4eba2a361fc975e91c419b227e (diff) | |
watchdog: Automatically register device with sysreset
Add an option to automatically register watchdog devices with the
wdt_reboot driver for use with sysreset. This allows sysreset to be a
drop-in replacement for platform-specific watchdog reset code, without
needing any device tree changes.
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'drivers/sysreset/Kconfig')
| -rw-r--r-- | drivers/sysreset/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/sysreset/Kconfig b/drivers/sysreset/Kconfig index de75c9cccc5..f6d60038b89 100644 --- a/drivers/sysreset/Kconfig +++ b/drivers/sysreset/Kconfig @@ -131,6 +131,13 @@ config SYSRESET_WATCHDOG help Reboot support for generic watchdog reset. +config SYSRESET_WATCHDOG_AUTO + bool "Automatically register first watchdog with sysreset" + depends on SYSRESET_WATCHDOG + help + If enabled, the first watchdog (as selected by the watchdog uclass) + will automatically be registered with the watchdog reboot driver. + config SYSRESET_RESETCTL bool "Enable support for reset controller reboot driver" select DM_RESET |
