Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * DaVinci system defines |
| 3 | * |
| 4 | * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com> |
| 5 | * |
| 6 | * 2007 (c) MontaVista Software, Inc. This file is licensed under |
| 7 | * the terms of the GNU General Public License version 2. This program |
| 8 | * is licensed "as is" without any warranty of any kind, whether express |
| 9 | * or implied. |
| 10 | */ |
| 11 | #ifndef __ASM_ARCH_SYSTEM_H |
| 12 | #define __ASM_ARCH_SYSTEM_H |
| 13 | |
Cyril Chemparathy | c78a5bc | 2010-05-01 18:38:28 -0400 | [diff] [blame] | 14 | #include <mach/common.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 15 | |
Sekhar Nori | 6077d26 | 2009-07-09 20:26:38 +0530 | [diff] [blame] | 16 | static inline void arch_idle(void) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 17 | { |
| 18 | cpu_do_idle(); |
| 19 | } |
| 20 | |
Sekhar Nori | 6077d26 | 2009-07-09 20:26:38 +0530 | [diff] [blame] | 21 | static inline void arch_reset(char mode, const char *cmd) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 22 | { |
Cyril Chemparathy | c78a5bc | 2010-05-01 18:38:28 -0400 | [diff] [blame] | 23 | if (davinci_soc_info.reset) |
| 24 | davinci_soc_info.reset(davinci_soc_info.reset_device); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | #endif /* __ASM_ARCH_SYSTEM_H */ |