public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] bcm2835: wdt: support for the bcm2835/2836 wdt
@ 2017-01-27  9:59 Paolo Pisati
  2017-01-27  9:59 ` [U-Boot] [PATCH] bcm2835_wdt: support for the BCM2835/2836 watchdog Paolo Pisati
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Pisati @ 2017-01-27  9:59 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [U-Boot] [PATCH] bcm2835: wdt: support for the bcm2835/2836 wdt
@ 2017-01-27 11:38 Paolo Pisati
  2017-01-27 11:38 ` [U-Boot] [PATCH] bcm2835_wdt: support for the BCM2835/2836 watchdog Paolo Pisati
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Pisati @ 2017-01-27 11:38 UTC (permalink / raw)
  To: u-boot

[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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [U-Boot] [PATCH] [V2] bcm2835: wdt: support for the bcm2835/2836 wdt
@ 2017-02-10 16:28 Paolo Pisati
  2017-02-10 16:28 ` [U-Boot] [PATCH] bcm2835_wdt: support for the BCM2835/2836 watchdog Paolo Pisati
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Pisati @ 2017-02-10 16:28 UTC (permalink / raw)
  To: u-boot

The following patch add support for the watchdog built into the
bcm2835/2836 chips, using the max timeout (~15s).

Tested on my RaspberryPi2.

Changelog:
v2: fixed __eufi_runtime usage and moved to Kconfig

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/Kconfig       | 15 +++++++++++++++
 drivers/watchdog/Makefile      |  1 +
 drivers/watchdog/bcm2835_wdt.c | 35 +++++++++++++++++++++++++++++++++++
 5 files changed, 73 insertions(+), 3 deletions(-)
 create mode 100644 drivers/watchdog/bcm2835_wdt.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-10 16:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-27  9:59 [U-Boot] [PATCH] bcm2835: wdt: support for the bcm2835/2836 wdt Paolo Pisati
2017-01-27  9:59 ` [U-Boot] [PATCH] bcm2835_wdt: support for the BCM2835/2836 watchdog Paolo Pisati
2017-01-27 16:20   ` Brüns, Stefan
2017-02-10 15:18     ` Paolo Pisati
  -- strict thread matches above, loose matches on Subject: below --
2017-01-27 11:38 [U-Boot] [PATCH] bcm2835: wdt: support for the bcm2835/2836 wdt Paolo Pisati
2017-01-27 11:38 ` [U-Boot] [PATCH] bcm2835_wdt: support for the BCM2835/2836 watchdog Paolo Pisati
2017-02-10 16:28 [U-Boot] [PATCH] [V2] bcm2835: wdt: support for the bcm2835/2836 wdt Paolo Pisati
2017-02-10 16:28 ` [U-Boot] [PATCH] bcm2835_wdt: support for the BCM2835/2836 watchdog Paolo Pisati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox