diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2012-09-15 22:18:10 -0600 |
---|---|---|
committer | Stephen Warren <swarren@wwwdotorg.org> | 2012-10-25 20:42:36 -0600 |
commit | d0f1c7ffaa32bdda2d413d2db41c51bbdd105834 (patch) | |
tree | 45f432172081acdc24108e8a8c718b2513b52657 /arch/arm/boot/dts/bcm2835.dtsi | |
parent | 6f0c0580b70c89094b3422ba81118c7b959c7556 (diff) | |
download | talos-obmc-linux-d0f1c7ffaa32bdda2d413d2db41c51bbdd105834.tar.gz talos-obmc-linux-d0f1c7ffaa32bdda2d413d2db41c51bbdd105834.zip |
ARM: bcm2835: implement machine restart hook
Implement the machine restart hook using the SoC's watchdog timer module.
To support this, define a DT binding for the watchdog module, and add it
to the device tree.
The downstream rpi-split branch contains a full watchdog timer driver
implementation, which also implements the restart hook. However, the
restart function is largely separate from the watchdog driver, so for
simplicity, the restart hook is implemented here directly in the main
machine source file.
Overall structure (separate setup/restart) functions derived from the
picoxcell ARM support.
Watchdog register IO sequence taken from code by Simon Arlott. Note that
the watchdog module is not documented in BCM2835-ARM-Peripherals.pdf.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch/arm/boot/dts/bcm2835.dtsi')
-rw-r--r-- | arch/arm/boot/dts/bcm2835.dtsi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi index 0b619398532c..5c5cbafed191 100644 --- a/arch/arm/boot/dts/bcm2835.dtsi +++ b/arch/arm/boot/dts/bcm2835.dtsi @@ -29,6 +29,11 @@ #interrupt-cells = <2>; }; + watchdog { + compatible = "brcm,bcm2835-pm-wdt"; + reg = <0x7e100000 0x28>; + }; + uart@20201000 { compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell"; reg = <0x7e201000 0x1000>; |