Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-kirkwood/include/mach/system.h |
| 3 | * |
| 4 | * This file is licensed under the terms of the GNU General Public |
| 5 | * License version 2. This program is licensed "as is" without any |
| 6 | * warranty of any kind, whether express or implied. |
| 7 | */ |
| 8 | |
| 9 | #ifndef __ASM_ARCH_SYSTEM_H |
| 10 | #define __ASM_ARCH_SYSTEM_H |
| 11 | |
Nicolas Pitre | fdd8b07 | 2009-04-22 20:08:17 +0100 | [diff] [blame] | 12 | #include <mach/bridge-regs.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 13 | |
| 14 | static inline void arch_idle(void) |
| 15 | { |
| 16 | cpu_do_idle(); |
| 17 | } |
| 18 | |
Russell King | be093be | 2009-03-19 16:20:24 +0000 | [diff] [blame] | 19 | static inline void arch_reset(char mode, const char *cmd) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 20 | { |
| 21 | /* |
| 22 | * Enable soft reset to assert RSTOUTn. |
| 23 | */ |
| 24 | writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK); |
| 25 | |
| 26 | /* |
| 27 | * Assert soft reset. |
| 28 | */ |
| 29 | writel(SOFT_RESET, SYSTEM_SOFT_RESET); |
| 30 | |
| 31 | while (1) |
| 32 | ; |
| 33 | } |
| 34 | |
| 35 | |
| 36 | #endif |