ARM: sunxi: Rework the restart code
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 11 Mar 2013 19:21:11 +0000 (20:21 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 8 Apr 2013 19:43:08 +0000 (21:43 +0200)
commitbc34b5f27cd33f4213bc5c8df0099dd11408d29d
tree0e919c251b0ce51592d4e99ee8161bfdf752de0b
parentd7fbc6ca35db027345a0e066c54b367e31d4fed3
ARM: sunxi: Rework the restart code

The Allwinner sun6i (A31) has a slightly different watchdog, that
doesn't allow to use the already existing restart code.

Rework a bit the restart code to allow to plug in more easily different
restart handlers depending on the device tree.

In the past, we were also meaning sunxi as a generic name covering all
Allwinner SoCs. This won't be true anymore with the A31 (sun6i) that
differs pretty much from sun4i and sun5i, and we will end up having
sunxi, for sun4i and sun5i, and sun6i, which is neither consistent nor
convenient. So, while we're at it, also change sunxi to sun4i.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Documentation/devicetree/bindings/watchdog/sun4i-wdt.txt [new file with mode: 0644]
Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt [deleted file]
arch/arm/mach-sunxi/sunxi.c