IB/mthca: Query port fix
[linux-2.6/verdex.git] / include / asm-arm / arch-ep93xx / system.h
blob79b718586746b23c4862c599ca222353804de0b8
1 /*
2 * linux/include/asm-arm/arch-ep93xx/system.h
3 */
5 #include <asm/hardware.h>
7 static inline void arch_idle(void)
9 cpu_do_idle();
12 static inline void arch_reset(char mode)
14 u32 devicecfg;
16 local_irq_disable();
18 devicecfg = __raw_readl(EP93XX_SYSCON_DEVICE_CONFIG);
19 __raw_writel(0xaa, EP93XX_SYSCON_SWLOCK);
20 __raw_writel(devicecfg | 0x80000000, EP93XX_SYSCON_DEVICE_CONFIG);
21 __raw_writel(0xaa, EP93XX_SYSCON_SWLOCK);
22 __raw_writel(devicecfg & ~0x80000000, EP93XX_SYSCON_DEVICE_CONFIG);
24 while (1)