Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-prima2/include/mach/system.h |
| 3 | * |
| 4 | * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. |
| 5 | * |
| 6 | * Licensed under GPLv2 or later. |
| 7 | */ |
| 8 | |
| 9 | #ifndef __MACH_SYSTEM_H__ |
| 10 | #define __MACH_SYSTEM_H__ |
| 11 | |
| 12 | #include <linux/bitops.h> |
| 13 | #include <mach/hardware.h> |
| 14 | |
| 15 | #define SIRFSOC_SYS_RST_BIT BIT(31) |
| 16 | |
| 17 | extern void __iomem *sirfsoc_rstc_base; |
| 18 | |
| 19 | static inline void arch_idle(void) |
| 20 | { |
| 21 | cpu_do_idle(); |
| 22 | } |
| 23 | |
| 24 | static inline void arch_reset(char mode, const char *cmd) |
| 25 | { |
| 26 | writel(SIRFSOC_SYS_RST_BIT, sirfsoc_rstc_base); |
| 27 | } |
| 28 | |
| 29 | #endif |