forked from Minki/linux
ARM: restart: sa1100: 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>
This commit is contained in:
parent
1f34f0e2fb
commit
d9ca5839fd
@ -455,4 +455,5 @@ MACHINE_START(ASSABET, "Intel-Assabet")
|
||||
#ifdef CONFIG_SA1111
|
||||
.dma_zone_size = SZ_1M,
|
||||
#endif
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -309,4 +309,5 @@ MACHINE_START(BADGE4, "Hewlett-Packard Laboratories BadgePAD 4")
|
||||
#ifdef CONFIG_SA1111
|
||||
.dma_zone_size = SZ_1M,
|
||||
#endif
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -139,4 +139,5 @@ MACHINE_START(CERF, "Intrinsyc CerfBoard/CerfCube")
|
||||
.init_irq = cerf_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.init_machine = cerf_init,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -387,4 +387,5 @@ MACHINE_START(COLLIE, "Sharp-Collie")
|
||||
.init_irq = sa1100_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.init_machine = collie_init,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -126,6 +126,17 @@ static void sa1100_power_off(void)
|
||||
PMCR = PMCR_SF;
|
||||
}
|
||||
|
||||
void sa11x0_restart(char mode, const char *cmd)
|
||||
{
|
||||
if (mode == 's') {
|
||||
/* Jump into ROM at address 0 */
|
||||
soft_restart(0);
|
||||
} else {
|
||||
/* Use on-chip reset capability */
|
||||
RSRR = RSRR_SWR;
|
||||
}
|
||||
}
|
||||
|
||||
static void sa11x0_register_device(struct platform_device *dev, void *data)
|
||||
{
|
||||
int err;
|
||||
|
@ -10,6 +10,7 @@ extern struct sys_timer sa1100_timer;
|
||||
extern void __init sa1100_map_io(void);
|
||||
extern void __init sa1100_init_irq(void);
|
||||
extern void __init sa1100_init_gpio(void);
|
||||
extern void sa11x0_restart(char, const char *);
|
||||
|
||||
#define SET_BANK(__nr,__start,__size) \
|
||||
mi->bank[__nr].start = (__start), \
|
||||
|
@ -89,5 +89,6 @@ MACHINE_START(H3100, "Compaq iPAQ H3100")
|
||||
.init_irq = sa1100_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.init_machine = h3100_mach_init,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
||||
|
@ -130,5 +130,6 @@ MACHINE_START(H3600, "Compaq iPAQ H3600")
|
||||
.init_irq = sa1100_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.init_machine = h3600_mach_init,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
||||
|
@ -200,4 +200,5 @@ MACHINE_START(HACKKIT, "HackKit Cpu Board")
|
||||
.init_irq = sa1100_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.init_machine = hackkit_init,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -3,8 +3,6 @@
|
||||
*
|
||||
* Copyright (c) 1999 Nicolas Pitre <nico@fluxnic.net>
|
||||
*/
|
||||
#include <mach/hardware.h>
|
||||
|
||||
static inline void arch_idle(void)
|
||||
{
|
||||
cpu_do_idle();
|
||||
@ -12,11 +10,4 @@ static inline void arch_idle(void)
|
||||
|
||||
static inline void arch_reset(char mode, const char *cmd)
|
||||
{
|
||||
if (mode == 's') {
|
||||
/* Jump into ROM at address 0 */
|
||||
soft_restart(0);
|
||||
} else {
|
||||
/* Use on-chip reset capability */
|
||||
RSRR = RSRR_SWR;
|
||||
}
|
||||
}
|
||||
|
@ -373,4 +373,5 @@ MACHINE_START(JORNADA720, "HP Jornada 720")
|
||||
#ifdef CONFIG_SA1111
|
||||
.dma_zone_size = SZ_1M,
|
||||
#endif
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -66,4 +66,5 @@ MACHINE_START(LART, "LART")
|
||||
.init_irq = sa1100_init_irq,
|
||||
.init_machine = lart_init,
|
||||
.timer = &sa1100_timer,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -116,4 +116,5 @@ MACHINE_START(NANOENGINE, "BSE nanoEngine")
|
||||
.init_irq = sa1100_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.init_machine = nanoengine_init,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -150,4 +150,5 @@ MACHINE_START(PLEB, "PLEB")
|
||||
.init_irq = sa1100_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.init_machine = pleb_init,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -87,4 +87,5 @@ MACHINE_START(SHANNON, "Shannon (AKA: Tuxscreen)")
|
||||
.init_irq = sa1100_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.init_machine = shannon_init,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
@ -396,4 +396,5 @@ MACHINE_START(SIMPAD, "Simpad")
|
||||
.map_io = simpad_map_io,
|
||||
.init_irq = sa1100_init_irq,
|
||||
.timer = &sa1100_timer,
|
||||
.restart = sa11x0_restart,
|
||||
MACHINE_END
|
||||
|
Loading…
Reference in New Issue
Block a user