]> git.dujemihanovic.xyz Git - u-boot.git/commit
watchdog: introduce separate SPL symbol for WDT_GPIO
authorRasmus Villemoes <ravi@prevas.dk>
Mon, 7 Oct 2024 17:47:16 +0000 (19:47 +0200)
committerStefan Roese <sr@denx.de>
Wed, 23 Oct 2024 05:02:25 +0000 (07:02 +0200)
commited3410ee6049a7683718e8255575ad55ee1bdefd
tree54b73688ebc3a841f0d347e6f4f3da84aaa294b4
parent6459964d738fe74f2cec7bca7caa1de444bc9d54
watchdog: introduce separate SPL symbol for WDT_GPIO

Currently, enabling WDT_GPIO on a board which uses SPL, but does not
have SPL_WDT, SPL_DM_GPIO or SPL_OF_CONTROL enabled, breaks the build.

Make it possible to use the WDT_GPIO driver on such boards by
introducing a separate symbol controlling whether the driver is built
for SPL. Make it default to WDT_GPIO such that boards that already
have it enabled and all the SPL prerequisites satisfied will continue
to have it in SPL.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/Kconfig
drivers/watchdog/Makefile