]> git.dujemihanovic.xyz Git - u-boot.git/commit
watchdog: armada_37xx: Probe driver also when watchdog is already running
authorPali Rohár <pali@kernel.org>
Wed, 23 Feb 2022 13:21:40 +0000 (14:21 +0100)
committerStefan Roese <sr@denx.de>
Tue, 8 Mar 2022 08:08:09 +0000 (09:08 +0100)
commit65066773a3e4c3f1dfc5eac8400ca7a7268e4fb7
treedbddbc99c1c16ddf57c96bafb69d1c227ee13408
parenta12492ebbc88dab74b1d6e27d8194a56eb1fbbff
watchdog: armada_37xx: Probe driver also when watchdog is already running

If Armada 37xx watchdog is started before U-Boot then CNTR_CTRL_ACTIVE bit
is set, U-Boot armada-37xx-wdt.c driver fails to initialize and so U-Boot
is unable to use or kick this watchdog.

Do not check for CNTR_CTRL_ACTIVE bit and always initialize watchdog. Same
behavior is implemented in Linux kernel driver.

This change allows to activate watchdog in firmware which loads U-Boot.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/armada-37xx-wdt.c