From 6338b66f8a8c5bc8ff8671acbfdda02756e92c0a Mon Sep 17 00:00:00 2001 From: Russell King Date: Thu, 3 Nov 2011 19:54:37 +0000 Subject: ARM: restart: integrator: use new restart hook Hook these platforms restart code into the new restart hook rather than using arch_reset(). Acked-by: Linus Walleij Signed-off-by: Russell King --- arch/arm/mach-integrator/core.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/arm/mach-integrator/core.c') diff --git a/arch/arm/mach-integrator/core.c b/arch/arm/mach-integrator/core.c index 4b38e13667ac..0a3e0974398a 100644 --- a/arch/arm/mach-integrator/core.c +++ b/arch/arm/mach-integrator/core.c @@ -238,3 +238,11 @@ void __init integrator_reserve(void) { memblock_reserve(PHYS_OFFSET, __pa(swapper_pg_dir) - PHYS_OFFSET); } + +/* + * To reset, we hit the on-board reset register in the system FPGA + */ +void integrator_restart(char mode, const char *cmd) +{ + cm_control(CM_CTRL_RESET, CM_CTRL_RESET); +} -- cgit v1.2.3