Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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> |
Russell King | 674c045 | 2005-10-28 14:25:28 +0100 | [diff] [blame] | 7 | #include <asm/hardware.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
| 9 | static inline void arch_idle(void) |
| 10 | { |
| 11 | cpu_do_idle(); |
| 12 | } |
| 13 | |
| 14 | static inline void arch_reset(char mode) |
| 15 | { |
| 16 | if (mode == 's') { |
| 17 | /* Jump into ROM at address 0 */ |
| 18 | cpu_reset(0); |
| 19 | } else { |
| 20 | /* Use on-chip reset capability */ |
| 21 | RSRR = RSRR_SWR; |
| 22 | } |
| 23 | } |