]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: Espressobin: Enable watchdog support but do not start it
authorPali Rohár <pali@kernel.org>
Tue, 9 Mar 2021 13:26:57 +0000 (14:26 +0100)
committerStefan Roese <sr@denx.de>
Tue, 6 Apr 2021 08:47:32 +0000 (10:47 +0200)
commit07ed4692b2ad203831d714f7958ca0ea0c2a0325
tree5718aaf1afa0166680f1dafa923ec59e5dff39ec
parentbeedeb353946f62e13d86f741babcc85dbc9c36b
arm: mvebu: Espressobin: Enable watchdog support but do not start it

Espressobin had disabled watchdog support (CONFIG_WDT) because older stable
Linux kernel versions (which are used by current stable OpenWRT and Debian
versions) do not have support for Armada 3700 watchdog driver. Therefore
they are not able to periodically kick watchdog so Espressobin enter into
boot loop.

This change enable CONFIG_WDT, CONFIG_WDT_ARMADA_37XX and CONFIG_CMD_WDT
options which add support for U-Boot 'wdt' command. And unset new
CONFIG_WATCHDOG_AUTOSTART option which cause that watchdog is not
automatically started by U-Boot during init phase, like when CONFIG_WDT
option is not set at all.

So with this change, U-Boot on Espressobin would have working 'wdt' command
which can be used from boot scripts (e.g. for enabling watchdog prior new
Linux booting kernel). But default behavior of watchdog status stays
unchanged, U-Boot does not start watchdog on Espressobin during its init
phase.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
configs/mvebu_espressobin-88f3720_defconfig