u-boot/arch
Rasmus Villemoes 933ada560b 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-27 08:28:07 +02:00
..
arc lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
arm sunxi: DT: A64: Update devicetree files from Linux 5.12 2021-04-26 10:12:35 +01:00
m68k allow opting out of WATCHDOG_RESET() from timer interrupt 2021-04-27 08:28:07 +02:00
microblaze lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
mips - MIPS: octeon: fix minor bugs of initial merge 2021-04-24 19:39:14 -04:00
nds32 lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
nios2 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
powerpc allow opting out of WATCHDOG_RESET() from timer interrupt 2021-04-27 08:28:07 +02:00
riscv lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
sandbox Merge tag 'ti-v2021.07-rc1' of https://source.denx.de/u-boot/custodians/u-boot-ti 2021-04-18 08:46:39 -04:00
sh lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
x86 lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
xtensa lmb: move CONFIG_LMB in Kconfig 2021-04-22 14:09:45 -04:00
.gitignore
Kconfig sandbox: enable IRQ using select for sandbox architecture 2021-04-20 07:31:35 -04:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00