ARM: bcm2835: implement machine restart hook
authorStephen Warren <swarren@wwwdotorg.org>
Sun, 16 Sep 2012 04:18:10 +0000 (22:18 -0600)
committerStephen Warren <swarren@wwwdotorg.org>
Fri, 26 Oct 2012 02:42:36 +0000 (20:42 -0600)
commitd0f1c7ffaa32bdda2d413d2db41c51bbdd105834
tree45f432172081acdc24108e8a8c718b2513b52657
parent6f0c0580b70c89094b3422ba81118c7b959c7556
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>
Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt [new file with mode: 0644]
arch/arm/boot/dts/bcm2835.dtsi
arch/arm/mach-bcm2835/bcm2835.c
This page took 0.030751 seconds and 5 git commands to generate.