From 35b47a405db2b26ce4e541e7add02e792b04f1fe Mon Sep 17 00:00:00 2001 From: Russell King Date: Mon, 28 Nov 2011 10:48:02 +0000 Subject: ARM: restart: nomadik: use new restart hook Hook the Nomadik NHK platform restart code into the new restart hook. Signed-off-by: Russell King --- arch/arm/mach-nomadik/cpu-8815.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'arch/arm/mach-nomadik/cpu-8815.c') diff --git a/arch/arm/mach-nomadik/cpu-8815.c b/arch/arm/mach-nomadik/cpu-8815.c index c087ea9986a..65df7b4fdd3 100644 --- a/arch/arm/mach-nomadik/cpu-8815.c +++ b/arch/arm/mach-nomadik/cpu-8815.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -165,3 +166,13 @@ void __init cpu8815_init_irq(void) #endif return; } + +void cpu8815_restart(char mode, const char *cmd) +{ + void __iomem *src_rstsr = io_p2v(NOMADIK_SRC_BASE + 0x18); + + /* FIXME: use egpio when implemented */ + + /* Write anything to Reset status register */ + writel(1, src_rstsr); +} -- cgit v1.2.3