Commit 00e9967e authored by Russell King's avatar Russell King

ARM: restart: highbank: use new restart hook

Hook these platforms restart code into the new restart hook rather
than using arch_reset().
Acked-by: default avatarRob Herring <rob.herring@calxeda.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0d68370b
extern void highbank_set_cpu_jump(int cpu, void *jump_addr); extern void highbank_set_cpu_jump(int cpu, void *jump_addr);
extern void highbank_clocks_init(void); extern void highbank_clocks_init(void);
extern void highbank_restart(char, const char *);
extern void __iomem *scu_base_addr; extern void __iomem *scu_base_addr;
#ifdef CONFIG_DEBUG_HIGHBANK_UART #ifdef CONFIG_DEBUG_HIGHBANK_UART
extern void highbank_lluart_map_io(void); extern void highbank_lluart_map_io(void);
......
...@@ -146,4 +146,5 @@ DT_MACHINE_START(HIGHBANK, "Highbank") ...@@ -146,4 +146,5 @@ DT_MACHINE_START(HIGHBANK, "Highbank")
.timer = &highbank_timer, .timer = &highbank_timer,
.init_machine = highbank_init, .init_machine = highbank_init,
.dt_compat = highbank_match, .dt_compat = highbank_match,
.restart = highbank_restart,
MACHINE_END MACHINE_END
...@@ -21,6 +21,8 @@ static inline void arch_idle(void) ...@@ -21,6 +21,8 @@ static inline void arch_idle(void)
cpu_do_idle(); cpu_do_idle();
} }
extern void arch_reset(char mode, const char *cmd); static inline void arch_reset(char mode, const char *cmd)
{
}
#endif #endif
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "core.h" #include "core.h"
#include "sysregs.h" #include "sysregs.h"
void arch_reset(char mode, const char *cmd) void highbank_restart(char mode, const char *cmd)
{ {
if (mode == 'h') if (mode == 'h')
hignbank_set_pwr_hard_reset(); hignbank_set_pwr_hard_reset();
......
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