u-boot/drivers/timer
Rasmus Villemoes 17bd5cce7e allow opting out of WATCHDOG_RESET() from timer interrupt
Having WATCHDOG_RESET() called automatically from the timer interrupt
runs counter to the idea of a watchdog device - if the board runs into
an infinite loops with interrupts still enabled, the watchdog will
never fire.

When using CONFIG_(SPL_)WDT, the watchdog_reset function is a lot more
complicated than just poking a few SOC-specific registers - it
involves accessing all kinds of global data, and if the interrupt
happens at the wrong time (say, in the middle of an WATCHDOG_RESET()
call from ordinary code), that can end up corrupting said global data.

Allow the board to opt out of calling WATCHDOG_RESET() from the timer
interrupt handler by setting CONFIG_SYS_WATCHDOG_FREQ to 0 - as that
setting is currently nonsensical (it would be compile-time
divide-by-zero), it cannot affect any existing boards.

Add documentation for both the existing and extended meaning of
CONFIG_SYS_WATCHDOG_FREQ.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2021-04-28 10:05:13 +02:00
..
ag101p_timer.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
altera_timer.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
andes_plmt_timer.c riscv: timer: Add support for an early timer 2021-01-18 11:06:32 +08:00
arc_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ast_timer.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
atcpit100_timer.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
atmel_pit_timer.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
cadence-ttc.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
dw-apb-timer.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
Kconfig timer: Add _TIMER suffix to Andes PLMT Kconfig 2020-10-26 10:01:28 +08:00
Makefile riscv: Move timer portions of SiFive CLINT to drivers/timer 2020-10-26 10:01:28 +08:00
mchp-pit64b-timer.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mpc83xx_timer.c allow opting out of WATCHDOG_RESET() from timer interrupt 2021-04-28 10:05:13 +02:00
mtk_timer.c timer: mtk_timer: initialize the timer before use 2021-01-18 15:23:06 -05:00
nomadik-mtu-timer.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
omap-timer.c omap: timer: fix the rate setting 2021-01-12 10:58:05 +05:30
ostm_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
riscv_timer.c riscv: timer: Add support for an early timer 2021-01-18 11:06:32 +08:00
rockchip_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sandbox_timer.c sandbox: Only call timer_timebase_fallback() if present 2021-03-27 15:04:31 +13:00
sifive_clint_timer.c timer: sifive_clint: Support the official clint DT bindings 2021-04-08 15:37:29 +08:00
sti-timer.c Prepare v2021.01-rc5 2021-01-05 16:20:26 -05:00
stm32_timer.c timer: stm32: migrate trace to log macro 2021-01-13 09:52:58 +01:00
timer-uclass.c cpu: Rename SPL_CPU_SUPPORT to SPL_CPU 2021-03-27 15:04:31 +13:00
tsc_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00