ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-sa1100 / system.h
1 /*
2  * linux/include/asm-arm/arch-sa1100/system.h
3  *
4  * Copyright (c) 1999 Nicolas Pitre <nico@cam.org>
5  */
6 #include <linux/config.h>
7
8 static inline void arch_idle(void)
9 {
10         cpu_do_idle();
11 }
12
13 #ifdef CONFIG_SA1100_VICTOR
14
15 /* power off unconditionally */
16 #define arch_reset(x) machine_power_off()
17
18 #else
19
20 static inline void arch_reset(char mode)
21 {
22         if (mode == 's') {
23                 /* Jump into ROM at address 0 */
24                 cpu_reset(0);
25         } else {
26                 /* Use on-chip reset capability */
27                 RSRR = RSRR_SWR;
28         }
29 }
30
31 #endif