diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-11 10:12:17 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-05 07:57:16 -0500 |
commit | 8fb06b124288bf11d9fc2406864ef419c0ebce85 (patch) | |
tree | 9dc079761e5333f0ab133dc920a3a26df3340288 /arch/arm/mach-netx | |
parent | 6f91c5a46cf8f083e9316ce238d1aadb629f41dc (diff) |
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')
-rw-r--r-- | arch/arm/mach-netx/generic.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-netx/generic.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-netx/include/mach/system.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-netx/nxdb500.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-netx/nxdkn.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-netx/nxeb500hmi.c | 1 |
6 files changed, 9 insertions, 6 deletions
diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c index 00023b5cf12b..59e67979f197 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) | |||
187 | 187 | ||
188 | subsys_initcall(netx_init); | 188 | subsys_initcall(netx_init); |
189 | 189 | ||
190 | void netx_restart(char mode, const char *cmd) | ||
191 | { | ||
192 | writel(NETX_SYSTEM_RES_CR_FIRMW_RES_EN | NETX_SYSTEM_RES_CR_FIRMW_RES, | ||
193 | NETX_SYSTEM_RES_CR); | ||
194 | } | ||
diff --git a/arch/arm/mach-netx/generic.h b/arch/arm/mach-netx/generic.h index ede2d35341c3..9b915119b8d6 100644 --- a/arch/arm/mach-netx/generic.h +++ b/arch/arm/mach-netx/generic.h | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | extern void __init netx_map_io(void); | 20 | extern void __init netx_map_io(void); |
21 | extern void __init netx_init_irq(void); | 21 | extern void __init netx_init_irq(void); |
22 | extern void netx_restart(char, const char *); | ||
22 | 23 | ||
23 | struct sys_timer; | 24 | struct sys_timer; |
24 | extern struct sys_timer netx_timer; | 25 | extern struct sys_timer netx_timer; |
diff --git a/arch/arm/mach-netx/include/mach/system.h b/arch/arm/mach-netx/include/mach/system.h index dc7b4bc003c5..83ae2b13a954 100644 --- a/arch/arm/mach-netx/include/mach/system.h +++ b/arch/arm/mach-netx/include/mach/system.h | |||
@@ -19,10 +19,6 @@ | |||
19 | #ifndef __ASM_ARCH_SYSTEM_H | 19 | #ifndef __ASM_ARCH_SYSTEM_H |
20 | #define __ASM_ARCH_SYSTEM_H | 20 | #define __ASM_ARCH_SYSTEM_H |
21 | 21 | ||
22 | #include <linux/io.h> | ||
23 | #include <mach/hardware.h> | ||
24 | #include "netx-regs.h" | ||
25 | |||
26 | static inline void arch_idle(void) | 22 | static inline void arch_idle(void) |
27 | { | 23 | { |
28 | cpu_do_idle(); | 24 | cpu_do_idle(); |
@@ -30,8 +26,6 @@ static inline void arch_idle(void) | |||
30 | 26 | ||
31 | static inline void arch_reset(char mode, const char *cmd) | 27 | static inline void arch_reset(char mode, const char *cmd) |
32 | { | 28 | { |
33 | writel(NETX_SYSTEM_RES_CR_FIRMW_RES_EN | NETX_SYSTEM_RES_CR_FIRMW_RES, | ||
34 | NETX_SYSTEM_RES_CR); | ||
35 | } | 29 | } |
36 | 30 | ||
37 | #endif | 31 | #endif |
diff --git a/arch/arm/mach-netx/nxdb500.c b/arch/arm/mach-netx/nxdb500.c index 90903dd44cbc..5384b5a78f68 100644 --- a/arch/arm/mach-netx/nxdb500.c +++ b/arch/arm/mach-netx/nxdb500.c | |||
@@ -205,4 +205,5 @@ MACHINE_START(NXDB500, "Hilscher nxdb500") | |||
205 | .init_irq = netx_init_irq, | 205 | .init_irq = netx_init_irq, |
206 | .timer = &netx_timer, | 206 | .timer = &netx_timer, |
207 | .init_machine = nxdb500_init, | 207 | .init_machine = nxdb500_init, |
208 | .restart = netx_restart, | ||
208 | MACHINE_END | 209 | MACHINE_END |
diff --git a/arch/arm/mach-netx/nxdkn.c b/arch/arm/mach-netx/nxdkn.c index c63384aba500..2df3783ef459 100644 --- a/arch/arm/mach-netx/nxdkn.c +++ b/arch/arm/mach-netx/nxdkn.c | |||
@@ -98,4 +98,5 @@ MACHINE_START(NXDKN, "Hilscher nxdkn") | |||
98 | .init_irq = netx_init_irq, | 98 | .init_irq = netx_init_irq, |
99 | .timer = &netx_timer, | 99 | .timer = &netx_timer, |
100 | .init_machine = nxdkn_init, | 100 | .init_machine = nxdkn_init, |
101 | .restart = netx_restart, | ||
101 | MACHINE_END | 102 | MACHINE_END |
diff --git a/arch/arm/mach-netx/nxeb500hmi.c b/arch/arm/mach-netx/nxeb500hmi.c index 8f548ec83ad2..26255b2ce473 100644 --- a/arch/arm/mach-netx/nxeb500hmi.c +++ b/arch/arm/mach-netx/nxeb500hmi.c | |||
@@ -182,4 +182,5 @@ MACHINE_START(NXEB500HMI, "Hilscher nxeb500hmi") | |||
182 | .init_irq = netx_init_irq, | 182 | .init_irq = netx_init_irq, |
183 | .timer = &netx_timer, | 183 | .timer = &netx_timer, |
184 | .init_machine = nxeb500hmi_init, | 184 | .init_machine = nxeb500hmi_init, |
185 | .restart = netx_restart, | ||
185 | MACHINE_END | 186 | MACHINE_END |