u-boot/drivers/watchdog
Marek Behún 7b03e9969c watchdog: armada_37xx: Fix compliance with kernel's driver
The Armada 37xx watchdog driver was recently accepted for mainline
kernel by watchdog subsystem maintainer, but the driver works a little
different than the one in U-Boot. This patch fixes this.

In the previous implementation there was a tiny period of time when the
watchdog was disabled and the system was vulnerables - this was during
pinging, which was done by disabling, setting, and enabling the counter.

Now pinging is done without disabling the watchdog. We use 2 counters:
Counter 1 is the watchdog counter - on expiry, the system is reset.
Counter 0 is used to reset Counter 1 to start counting from the set
timeout again. So Counter 1 is set to be reset on Counter 0 expiry event
event and pinging is done by forcing an immediate expiry event on
Counter 0.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Signed-off-by: Stefan Roese <sr@denx.de>
2019-01-21 11:39:49 +01:00
..
armada-37xx-wdt.c watchdog: armada_37xx: Fix compliance with kernel's driver 2019-01-21 11:39:49 +01:00
ast_wdt.c watchdog: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
at91sam9_wdt.c arm: at91: wdt: Convert watchdog driver to dm/dt 2018-11-16 13:34:34 -05:00
bcm2835_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm6345_wdt.c watchdog: bcm6345: convert to use live dt 2018-06-01 15:56:02 +02:00
cdns_wdt.c watchdog: cadence: Do not stop wdt in probe 2018-07-19 10:49:56 +02:00
designware_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ftwdt010_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
imx_watchdog.c watchdog: imx: add config to disable wdog reset 2019-01-01 14:12:18 +01:00
Kconfig watchdog: imx: add config to disable wdog reset 2019-01-01 14:12:18 +01:00
Makefile watchdog: driver support for fsl-lsch2 2019-01-01 14:12:18 +01:00
mpc8xx_wdt.c drivers: watchdog: add a DM driver for the MPC8xx watchdog 2018-12-03 10:44:10 -05:00
mt7621_wdt.c wdt: Add MT7621 watchdog driver 2018-11-18 16:02:22 +01:00
mtk_wdt.c watchdog: MediaTek: add watchdog driver for MediaTek SoCs 2018-11-28 23:04:52 -05:00
omap_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
orion_wdt.c orion_wdt: Support for the Orion Watchdog 2017-07-12 06:56:48 +02:00
s5p_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tangier_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ulp_wdog.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
wdt-uclass.c watchdog: dm: Support manual relocation for watchdogs 2018-07-19 10:49:54 +02:00
xilinx_tb_wdt.c watchdog: Convert Xilinx Axi watchdog driver to driver model 2018-07-19 10:49:55 +02:00