u-boot/arch/m68k
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
..
cpu common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
include/asm lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
lib allow opting out of WATCHDOG_RESET() from timer interrupt 2021-04-28 10:05:13 +02:00
config.mk Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
Kconfig m68k: architecture changes to support fdt 2019-05-23 23:14:38 -04:00
Makefile kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00