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