mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
ARM: restart: highbank: use new restart hook
Hook these platforms restart code into the new restart hook rather than using arch_reset(). Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
0d68370b24
commit
00e9967e0d
@ -1,5 +1,6 @@
|
||||
extern void highbank_set_cpu_jump(int cpu, void *jump_addr);
|
||||
extern void highbank_clocks_init(void);
|
||||
extern void highbank_restart(char, const char *);
|
||||
extern void __iomem *scu_base_addr;
|
||||
#ifdef CONFIG_DEBUG_HIGHBANK_UART
|
||||
extern void highbank_lluart_map_io(void);
|
||||
|
@ -146,4 +146,5 @@ DT_MACHINE_START(HIGHBANK, "Highbank")
|
||||
.timer = &highbank_timer,
|
||||
.init_machine = highbank_init,
|
||||
.dt_compat = highbank_match,
|
||||
.restart = highbank_restart,
|
||||
MACHINE_END
|
||||
|
@ -21,6 +21,8 @@ static inline void arch_idle(void)
|
||||
cpu_do_idle();
|
||||
}
|
||||
|
||||
extern void arch_reset(char mode, const char *cmd);
|
||||
static inline void arch_reset(char mode, const char *cmd)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "core.h"
|
||||
#include "sysregs.h"
|
||||
|
||||
void arch_reset(char mode, const char *cmd)
|
||||
void highbank_restart(char mode, const char *cmd)
|
||||
{
|
||||
if (mode == 'h')
|
||||
hignbank_set_pwr_hard_reset();
|
||||
|
Loading…
Reference in New Issue
Block a user