]> git.baikalelectronics.ru Git - uboot.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)
commitaee82fe7b788722d79493b1360468e9f4fbea3bd
treedbddbc99c1c16ddf57c96bafb69d1c227ee13408
parent2243e4ccca0b5dce35133f8083d6bebccb94ab02
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