
27 Jan
2017
27 Jan
'17
10:59 a.m.
The following patch add support for the watchdog built into the bcm2835/2836 chips, using the max timeout (~15s).
By default the watchdog is compiled in, but disabled. To enable it, apply the following patch:
--- a/include/configs/rpi.h +++ b/include/configs/rpi.h @@ -109,6 +109,7 @@
/* Watchdog support */ #define CONFIG_BCM2835_WDT +#define CONFIG_HW_WATCHDOG
/* Console configuration */ #define CONFIG_SYS_CBSIZE 1024
--
2.7.4
Tested on my RaspberryPi2.
Paolo Pisati (1):
bcm2835_wdt: support for the BCM2835/2836 watchdog
arch/arm/mach-bcm283x/reset.c | 21 ++++++++++++++++++---
board/raspberrypi/rpi/rpi.c | 4 ++++
drivers/watchdog/Makefile | 1 +
drivers/watchdog/bcm2835_wdt.c | 34 ++++++++++++++++++++++++++++++++++
include/configs/rpi.h | 3 +++
scripts/config_whitelist.txt | 1 +
6 files changed, 61 insertions(+), 3 deletions(-)
create mode 100644 drivers/watchdog/bcm2835_wdt.c
--
2.7.4