u-boot/arch/powerpc
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
..
cpu ppc: Remove MPC837XEMDS board 2021-04-10 14:33:35 -04:00
dts powerpc: dts: t1042d4rdb: add FMan v3 nodes 2021-04-15 14:27:29 +05:30
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-27 08:28:07 +02:00
config.mk Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
Kconfig powerpc: mpc85xx: Only enable binman when it is needed 2020-07-28 19:30:39 -06:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00