mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-30 08:03:32 +08:00
7dd2097e21
Some boards don't work with the rate-limiting done in the generic watchdog_reset() provided by wdt-uclass. For example, on powerpc, get_timer() ceases working during bootm since interrupts are disabled before the kernel image gets decompressed, and when the decompression takes longer than the watchdog device allows (or enough of the budget that the kernel doesn't get far enough to assume responsibility for petting the watchdog), the result is a non-booting board. As a somewhat hacky workaround (because DT is supposed to describe hardware), allow specifying hw_margin_ms=0 in device tree to effectively disable the ratelimiting and actually ping the watchdog every time watchdog_reset() is called. For that to work, the "has enough time passed" check just needs to be tweaked a little to allow the now==next_reset case as well. Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Stefan Roese <sr@denx.de> |
||
---|---|---|
.. | ||
armada-37xx-wdt.c | ||
ast2600_wdt.c | ||
ast_wdt.c | ||
at91sam9_wdt.c | ||
bcm6345_wdt.c | ||
booke_wdt.c | ||
cdns_wdt.c | ||
cortina_wdt.c | ||
designware_wdt.c | ||
ftwdt010_wdt.c | ||
imx_watchdog.c | ||
Kconfig | ||
Makefile | ||
mpc8xx_wdt.c | ||
mt7620_wdt.c | ||
mt7621_wdt.c | ||
mtk_wdt.c | ||
octeontx_wdt.c | ||
omap_wdt.c | ||
orion_wdt.c | ||
rti_wdt.c | ||
s5p_wdt.c | ||
sandbox_wdt.c | ||
sbsa_gwdt.c | ||
sp805_wdt.c | ||
stm32mp_wdt.c | ||
tangier_wdt.c | ||
ulp_wdog.c | ||
wdt-uclass.c | ||
xilinx_tb_wdt.c | ||
xilinx_wwdt.c |