From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Pisati Date: Fri, 27 Jan 2017 12:38:41 +0100 Subject: [U-Boot] [PATCH] bcm2835: wdt: support for the bcm2835/2836 wdt Message-ID: <1485517122-11734-1-git-send-email-p.pisati@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de [resend with swarren in cc:] 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