Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copied from linux/include/asm-arm/arch-sa1100/system.h |
| 3 | * Copyright (c) 1999 Nicolas Pitre <nico@cam.org> |
| 4 | */ |
| 5 | #ifndef __ASM_ARCH_SYSTEM_H |
| 6 | #define __ASM_ARCH_SYSTEM_H |
| 7 | #include <linux/config.h> |
Tony Lindgren | af973d2 | 2005-07-10 19:58:06 +0100 | [diff] [blame^] | 8 | #include <asm/mach-types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | #include <asm/arch/hardware.h> |
Tony Lindgren | af973d2 | 2005-07-10 19:58:06 +0100 | [diff] [blame^] | 10 | #include <asm/mach-types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
| 12 | static inline void arch_idle(void) |
| 13 | { |
| 14 | cpu_do_idle(); |
| 15 | } |
| 16 | |
| 17 | static inline void arch_reset(char mode) |
| 18 | { |
Tony Lindgren | af973d2 | 2005-07-10 19:58:06 +0100 | [diff] [blame^] | 19 | |
| 20 | #ifdef CONFIG_ARCH_OMAP16XX |
| 21 | /* |
| 22 | * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28 |
| 23 | * "Global Software Reset Affects Traffic Controller Frequency". |
| 24 | */ |
| 25 | if (cpu_is_omap5912()) { |
| 26 | omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4), |
| 27 | DPLL_CTL); |
| 28 | omap_writew(0x8, ARM_RSTCT1); |
| 29 | } |
| 30 | #endif |
| 31 | #ifdef CONFIG_MACH_VOICEBLUE |
| 32 | if (machine_is_voiceblue()) |
| 33 | voiceblue_reset(); |
| 34 | else |
| 35 | #endif |
| 36 | omap_writew(1, ARM_RSTCT1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | #endif |