ARM: integrator: move restart to the device tree
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Oct 2014 14:18:59 +0000 (16:18 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Nov 2014 09:32:02 +0000 (10:32 +0100)
commitb437c52c296715eaad77c949fcfc074911a72427
treef35a8df68af11df0ea1b58cc26b796b63bdde482
parentbeb5818bd012953c79de38f9726f327d8e311569
ARM: integrator: move restart to the device tree

Using the augmented reset driver for the Versatile family,
we can move the reset handling for the Integrator out of the
machine. We add a "syscon" attribute to the core module, and
access the syscon registers using this handle. We need to
select SYSCON, POWER, POWER_RESET and POWER_RESET_VERSATILE
in order for the restart functionality to always be
available on all systems (it should not be optional).

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/integrator.dtsi
arch/arm/mach-integrator/Kconfig
arch/arm/mach-integrator/cm.h
arch/arm/mach-integrator/common.h
arch/arm/mach-integrator/core.c
arch/arm/mach-integrator/integrator_ap.c
arch/arm/mach-integrator/integrator_cp.c