summaryrefslogtreecommitdiff
path: root/arch/arm/mach-netx/generic.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-11-11 15:12:17 (GMT)
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-01-05 12:57:16 (GMT)
commit8fb06b124288bf11d9fc2406864ef419c0ebce85 (patch)
tree9dc079761e5333f0ab133dc920a3a26df3340288 /arch/arm/mach-netx/generic.c
parent6f91c5a46cf8f083e9316ce238d1aadb629f41dc (diff)
downloadlinux-8fb06b124288bf11d9fc2406864ef419c0ebce85.tar.xz
ARM: restart: netx: use new restart hook
Hook these platforms restart code into the new restart hook rather than using arch_reset(). Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-netx/generic.c')
-rw-r--r--arch/arm/mach-netx/generic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c
index 00023b5..59e6797 100644
--- a/arch/arm/mach-netx/generic.c
+++ b/arch/arm/mach-netx/generic.c
@@ -187,3 +187,8 @@ static int __init netx_init(void)
subsys_initcall(netx_init);
+void netx_restart(char mode, const char *cmd)
+{
+ writel(NETX_SYSTEM_RES_CR_FIRMW_RES_EN | NETX_SYSTEM_RES_CR_FIRMW_RES,
+ NETX_SYSTEM_RES_CR);
+}