Commit 6c000712 authored by Russell King's avatar Russell King

ARM: restart: clps711x: use new restart hook

Hook these platforms restart code into the new restart hook rather
than using arch_reset().
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d1fce9c1
...@@ -68,5 +68,6 @@ MACHINE_START(AUTCPU12, "autronix autcpu12") ...@@ -68,5 +68,6 @@ MACHINE_START(AUTCPU12, "autronix autcpu12")
.map_io = autcpu12_map_io, .map_io = autcpu12_map_io,
.init_irq = clps711x_init_irq, .init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END MACHINE_END
...@@ -59,4 +59,5 @@ MACHINE_START(CDB89712, "Cirrus-CDB89712") ...@@ -59,4 +59,5 @@ MACHINE_START(CDB89712, "Cirrus-CDB89712")
.map_io = cdb89712_map_io, .map_io = cdb89712_map_io,
.init_irq = clps711x_init_irq, .init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END MACHINE_END
...@@ -60,4 +60,5 @@ MACHINE_START(CEIVA, "CEIVA/Polaroid Photo MAX Digital Picture Frame") ...@@ -60,4 +60,5 @@ MACHINE_START(CEIVA, "CEIVA/Polaroid Photo MAX Digital Picture Frame")
.map_io = ceiva_map_io, .map_io = ceiva_map_io,
.init_irq = clps711x_init_irq, .init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END MACHINE_END
...@@ -41,5 +41,6 @@ MACHINE_START(CLEP7212, "Cirrus Logic 7212/7312") ...@@ -41,5 +41,6 @@ MACHINE_START(CLEP7212, "Cirrus Logic 7212/7312")
.map_io = clps711x_map_io, .map_io = clps711x_map_io,
.init_irq = clps711x_init_irq, .init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END MACHINE_END
...@@ -220,3 +220,8 @@ struct sys_timer clps711x_timer = { ...@@ -220,3 +220,8 @@ struct sys_timer clps711x_timer = {
.init = clps711x_timer_init, .init = clps711x_timer_init,
.offset = clps711x_gettimeoffset, .offset = clps711x_gettimeoffset,
}; };
void clps711x_restart(char mode, const char *cmd)
{
soft_restart(0);
}
...@@ -9,3 +9,4 @@ struct sys_timer; ...@@ -9,3 +9,4 @@ struct sys_timer;
extern void clps711x_map_io(void); extern void clps711x_map_io(void);
extern void clps711x_init_irq(void); extern void clps711x_init_irq(void);
extern struct sys_timer clps711x_timer; extern struct sys_timer clps711x_timer;
extern void clps711x_restart(char mode, const char *cmd);
...@@ -62,4 +62,5 @@ MACHINE_START(EDB7211, "CL-EDB7211 (EP7211 eval board)") ...@@ -62,4 +62,5 @@ MACHINE_START(EDB7211, "CL-EDB7211 (EP7211 eval board)")
.reserve = edb7211_reserve, .reserve = edb7211_reserve,
.init_irq = clps711x_init_irq, .init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END MACHINE_END
...@@ -78,4 +78,5 @@ MACHINE_START(FORTUNET, "ARM-FortuNet") ...@@ -78,4 +78,5 @@ MACHINE_START(FORTUNET, "ARM-FortuNet")
.map_io = clps711x_map_io, .map_io = clps711x_map_io,
.init_irq = clps711x_init_irq, .init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END MACHINE_END
...@@ -34,7 +34,6 @@ static inline void arch_idle(void) ...@@ -34,7 +34,6 @@ static inline void arch_idle(void)
static inline void arch_reset(char mode, const char *cmd) static inline void arch_reset(char mode, const char *cmd)
{ {
soft_restart(0);
} }
#endif #endif
...@@ -93,6 +93,7 @@ MACHINE_START(P720T, "ARM-Prospector720T") ...@@ -93,6 +93,7 @@ MACHINE_START(P720T, "ARM-Prospector720T")
.map_io = p720t_map_io, .map_io = p720t_map_io,
.init_irq = clps711x_init_irq, .init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
.restart = clps711x_restart,
MACHINE_END MACHINE_END
static int p720t_hw_init(void) static int p720t_hw_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment