Merge remote-tracking branch 'leds/for-mm'
[linux-2.6/next.git] / arch / arm / mach-kirkwood / include / mach / system.h
blob7568e95d279baeed920f8226ec2e73e703089118
1 /*
2 * arch/arm/mach-kirkwood/include/mach/system.h
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 */
9 #ifndef __ASM_ARCH_SYSTEM_H
10 #define __ASM_ARCH_SYSTEM_H
12 #include <mach/bridge-regs.h>
14 static inline void arch_idle(void)
16 cpu_do_idle();
19 static inline void arch_reset(char mode, const char *cmd)
22 * Enable soft reset to assert RSTOUTn.
24 writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK);
27 * Assert soft reset.
29 writel(SOFT_RESET, SYSTEM_SOFT_RESET);
31 while (1)
36 #endif