From d9ca5839fd4b0c820c19401b72962a1d099cb99e Mon Sep 17 00:00:00 2001 From: Russell King Date: Sat, 5 Nov 2011 10:28:50 +0000 Subject: ARM: restart: sa1100: use new restart hook Hook these platforms restart code into the new restart hook rather than using arch_reset(). Signed-off-by: Russell King --- arch/arm/mach-sa1100/generic.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'arch/arm/mach-sa1100/generic.c') diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c index 5fa5ae1f39e..bb10ee2cb89 100644 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c @@ -126,6 +126,17 @@ static void sa1100_power_off(void) PMCR = PMCR_SF; } +void sa11x0_restart(char mode, const char *cmd) +{ + if (mode == 's') { + /* Jump into ROM at address 0 */ + soft_restart(0); + } else { + /* Use on-chip reset capability */ + RSRR = RSRR_SWR; + } +} + static void sa11x0_register_device(struct platform_device *dev, void *data) { int err; -- cgit v1.2.3-70-g09d2