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 | |
Russell King | fced80c | 2008-09-06 12:10:45 +0100 | [diff] [blame] | 14 | #include <linux/io.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 15 | #include <mach/hardware.h> |
| 16 | |
| 17 | extern void davinci_watchdog_reset(void); |
| 18 | |
Sekhar Nori | 6077d26 | 2009-07-09 20:26:38 +0530 | [diff] [blame] | 19 | static inline void arch_idle(void) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 20 | { |
| 21 | cpu_do_idle(); |
| 22 | } |
| 23 | |
Sekhar Nori | 6077d26 | 2009-07-09 20:26:38 +0530 | [diff] [blame] | 24 | static inline void arch_reset(char mode, const char *cmd) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 25 | { |
| 26 | davinci_watchdog_reset(); |
| 27 | } |
| 28 | |
| 29 | #endif /* __ASM_ARCH_SYSTEM_H */ |