summaryrefslogtreecommitdiff
path: root/arch/arm/mach-prima2/rstc.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-11-05 14:23:27 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-01-05 16:57:17 +0400
commit125c4033f0187d7264f08d7cf1474252df4f4c17 (patch)
tree95056d3c895c9b1245a9a340ec4dd7cd1cb48c06 /arch/arm/mach-prima2/rstc.c
parenta1c1cee9adac4d2ab2d989cf83ada063cbd426d0 (diff)
downloadlinux-125c4033f0187d7264f08d7cf1474252df4f4c17.tar.xz
ARM: restart: prima2: use new restart hook
Hook these platforms restart code into the new restart hook rather than using arch_reset(). Reviewed-by: Barry Song <Baohua.Song@csr.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-prima2/rstc.c')
-rw-r--r--arch/arm/mach-prima2/rstc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-prima2/rstc.c b/arch/arm/mach-prima2/rstc.c
index 492cfa8d2610..762adb73ab7c 100644
--- a/arch/arm/mach-prima2/rstc.c
+++ b/arch/arm/mach-prima2/rstc.c
@@ -68,3 +68,10 @@ int sirfsoc_reset_device(struct device *dev)
return 0;
}
+
+#define SIRFSOC_SYS_RST_BIT BIT(31)
+
+void sirfsoc_restart(char mode, const char *cmd)
+{
+ writel(SIRFSOC_SYS_RST_BIT, sirfsoc_rstc_base);
+}