提交 da908260 编写于 作者: R Russell King

ARM: restart: ebsa110: use new restart hook

Hook the EBSA110 platform restart code into the new restart hook rather
than using arch_reset().
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 6ca6ff97
...@@ -278,6 +278,11 @@ static int __init ebsa110_init(void) ...@@ -278,6 +278,11 @@ static int __init ebsa110_init(void)
arch_initcall(ebsa110_init); arch_initcall(ebsa110_init);
static void ebsa110_restart(char mode, const char *cmd)
{
soft_restart(0x80000000);
}
MACHINE_START(EBSA110, "EBSA110") MACHINE_START(EBSA110, "EBSA110")
/* Maintainer: Russell King */ /* Maintainer: Russell King */
.atag_offset = 0x400, .atag_offset = 0x400,
...@@ -287,4 +292,5 @@ MACHINE_START(EBSA110, "EBSA110") ...@@ -287,4 +292,5 @@ MACHINE_START(EBSA110, "EBSA110")
.map_io = ebsa110_map_io, .map_io = ebsa110_map_io,
.init_irq = ebsa110_init_irq, .init_irq = ebsa110_init_irq,
.timer = &ebsa110_timer, .timer = &ebsa110_timer,
.restart = ebsa110_restart,
MACHINE_END MACHINE_END
...@@ -34,6 +34,8 @@ static inline void arch_idle(void) ...@@ -34,6 +34,8 @@ static inline void arch_idle(void)
asm volatile ("mcr p15, 0, ip, c15, c1, 2" : : : "cc"); asm volatile ("mcr p15, 0, ip, c15, c1, 2" : : : "cc");
} }
#define arch_reset(mode, cmd) soft_restart(0x80000000) static inline void arch_reset(char mode, const char *cmd)
{
}
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册