]> git.dujemihanovic.xyz Git - u-boot.git/commit
watchdog: Automatically register device with sysreset
authorSamuel Holland <samuel@sholland.org>
Thu, 4 Nov 2021 03:55:14 +0000 (22:55 -0500)
committerStefan Roese <sr@denx.de>
Thu, 4 Nov 2021 07:57:19 +0000 (08:57 +0100)
commita8f63d18bbb0a3e1456ac833e748d68f0ea1eece
tree982a721594127f1ddf473b18fd76da2f76c34220
parent5544a0114258ec4eba2a361fc975e91c419b227e
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 <samuel@sholland.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/sysreset/Kconfig
drivers/sysreset/sysreset_watchdog.c
drivers/watchdog/wdt-uclass.c
include/sysreset.h