u-boot/drivers/watchdog
Marek Vasut 11c1af60b5 watchdog: omap_wdt: Fix WDT reloading
The watchdog timer value was never updated in the hardware by this
driver, so the watchdog triggered on some random stale value that
was left in the hardware. The TI SPRUH37C says, quote:

  20.4.3.9 Modifying Timer Count/Load Values and Prescaler Setting
  ...
  After a write access, the load register value and prescaler ratio
  registers are updated immediately, but new values are considered
  only after the next consecutive counter overflow or after a new
  trigger command (the WDT_WTGR register).

This means at least one trigger must happen. The driver probably
depended on someone calling it's .reset() callback, however that
is not guaranteed e.g. if the WDT operates without servicing.

Add this missing trigger.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Suniel Mahesh <sunil.m@techveda.org>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2020-02-04 09:07:24 +05:30
..
armada-37xx-wdt.c watchdog: armada_37xx: Fix compliance with kernel's driver 2019-01-21 11:39:49 +01:00
ast_wdt.c aspeed/watchdog: Correct timeout value 2019-06-20 10:57:08 -04:00
at91sam9_wdt.c watchdog: at91sam9_wdt: Remove now superfluous wdt start and reset 2019-04-26 09:16:32 +02:00
bcm6345_wdt.c watchdog: bcm6345: callback start use tick instead of ms 2019-05-18 12:31:58 -04:00
cdns_wdt.c watchdog: cadence: Remove driver specific "timeout-sec" handling 2019-04-26 09:16:32 +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 common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
Kconfig watchdog: bcm6345: allow to use this driver on arm bcm68360 2020-01-23 07:29:58 -05:00
Makefile watchdog: omap_wdt: Convert watchdog driver to use DT and DM 2019-08-12 07:25:22 -04:00
mpc8xx_wdt.c watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup 2019-04-26 09:16:32 +02:00
mt7621_wdt.c wdt: Add MT7621 watchdog driver 2018-11-18 16:02:22 +01:00
mtk_wdt.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
omap_wdt.c watchdog: omap_wdt: Fix WDT reloading 2020-02-04 09:07:24 +05:30
orion_wdt.c watchdog: orion_wdt: take timeout value in ms 2019-04-12 07:04:18 +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
sp805_wdt.c watchdog: sp805_wdt: add expire_now method 2019-09-12 16:15:42 +05:30
stm32mp_wdt.c watchdog: stm32mp: Add watchdog driver 2019-06-06 17:40:16 +02:00
tangier_wdt.c watchdog: tangier: Convert to use WDT class 2019-06-22 22:27:13 +08:00
ulp_wdog.c common: Move reset_cpu() to the CPU header 2020-01-17 14:02:31 -05:00
wdt-uclass.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
xilinx_tb_wdt.c watchdog: Convert Xilinx Axi watchdog driver to driver model 2018-07-19 10:49:55 +02:00