2005-04-16 18:20:36 -04:00
|
|
|
/*
|
2008-08-05 11:14:15 -04:00
|
|
|
* arch/arm/mach-sa1100/include/mach/system.h
|
2005-04-16 18:20:36 -04:00
|
|
|
*
|
|
|
|
* Copyright (c) 1999 Nicolas Pitre <nico@cam.org>
|
|
|
|
*/
|
2008-08-05 11:14:15 -04:00
|
|
|
#include <mach/hardware.h>
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
static inline void arch_idle(void)
|
|
|
|
{
|
|
|
|
cpu_do_idle();
|
|
|
|
}
|
|
|
|
|
2009-03-19 12:20:24 -04:00
|
|
|
static inline void arch_reset(char mode, const char *cmd)
|
2005-04-16 18:20:36 -04:00
|
|
|
{
|
|
|
|
if (mode == 's') {
|
|
|
|
/* Jump into ROM at address 0 */
|
|
|
|
cpu_reset(0);
|
|
|
|
} else {
|
|
|
|
/* Use on-chip reset capability */
|
|
|
|
RSRR = RSRR_SWR;
|
|
|
|
}
|
|
|
|
}
|