diff options
author | Paolo Pisati | 2017-02-10 17:28:05 +0100 |
---|---|---|
committer | Tom Rini | 2017-05-09 20:30:08 -0400 |
commit | 45a6d231b2f9b891a7df517fc40b8466e12f2b57 (patch) | |
tree | 1297bde1b56a80d0d9e9eeda13db1a6bcac5f475 /board/raspberrypi/rpi | |
parent | 3e16705d3e253e54d62c793fc92904840c282576 (diff) |
bcm2835_wdt: support for the BCM2835/2836 watchdog
Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
Diffstat (limited to 'board/raspberrypi/rpi')
-rw-r--r-- | board/raspberrypi/rpi/rpi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index c99beedc493..82da9e5a5a8 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -23,6 +23,7 @@ #ifdef CONFIG_ARM64 #include <asm/armv8/mmu.h> #endif +#include <watchdog.h> DECLARE_GLOBAL_DATA_PTR; @@ -455,6 +456,9 @@ static void rpi_disable_inactive_uart(void) int board_init(void) { +#ifdef CONFIG_HW_WATCHDOG + hw_watchdog_init(); +#endif #ifndef CONFIG_PL01X_SERIAL rpi_disable_inactive_uart(); #endif |