mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
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>
This commit is contained in:
parent
6459964d73
commit
ed3410ee60
2 changed files with 10 additions and 1 deletions
|
@ -191,6 +191,15 @@ config WDT_GPIO
|
|||
doc/device-tree-bindings/watchdog/gpio-wdt.txt for
|
||||
information on how to describe the watchdog in device tree.
|
||||
|
||||
config SPL_WDT_GPIO
|
||||
bool "External gpio watchdog support in SPL"
|
||||
depends on SPL_WDT
|
||||
depends on SPL_DM_GPIO
|
||||
depends on SPL_OF_REAL
|
||||
default WDT_GPIO
|
||||
help
|
||||
Support for external watchdog fed by toggling a gpio in SPL.
|
||||
|
||||
config WDT_MAX6370
|
||||
bool "MAX6370 watchdog timer support"
|
||||
depends on WDT
|
||||
|
|
|
@ -32,7 +32,7 @@ obj-$(CONFIG_WDT_CDNS) += cdns_wdt.o
|
|||
obj-$(CONFIG_WDT_DA9063) += da9063-wdt.o
|
||||
obj-$(CONFIG_WDT_DAVINCI) += davinci_wdt.o
|
||||
obj-$(CONFIG_WDT_FTWDT010) += ftwdt010_wdt.o
|
||||
obj-$(CONFIG_WDT_GPIO) += gpio_wdt.o
|
||||
obj-$(CONFIG_$(SPL_TPL_)WDT_GPIO) += gpio_wdt.o
|
||||
obj-$(CONFIG_WDT_MAX6370) += max6370_wdt.o
|
||||
obj-$(CONFIG_WDT_MCF) += mcf_wdt.o
|
||||
obj-$(CONFIG_WDT_MESON_GXBB) += meson_gxbb_wdt.o
|
||||
|
|
Loading…
Add table
Reference in a new issue