]> git.baikalelectronics.ru Git - uboot.git/commit
watchdog: Allow to use CONFIG_WDT without starting watchdog
authorPali Rohár <pali@kernel.org>
Tue, 9 Mar 2021 13:26:56 +0000 (14:26 +0100)
committerStefan Roese <sr@denx.de>
Tue, 6 Apr 2021 08:47:32 +0000 (10:47 +0200)
commitbeedeb353946f62e13d86f741babcc85dbc9c36b
treeb5481287aea0880d6e1f647bf9ede0b9da6c8b93
parentc687e8a848a53b96eec777eec1a9765f54e96df1
watchdog: Allow to use CONFIG_WDT without starting watchdog

In some cases it is useful to compile support for U-Boot command 'wdt'
without starting HW watchdog in early U-Boot phase. For example when the
user want to start the watchdog only on demand by some boot script.

This change adds a new compile option WATCHDOG_AUTOSTART to control whether
U-Boot should automatically start the watchdog during init phase or not.

This option is enabled by default as it was the default behavior prior
introducing this new change. When compiling U-Boot users can decide to turn
this option off.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/Kconfig
drivers/watchdog/wdt-uclass.c