Add linux-next specific files for 20110831
[linux-2.6/next.git] / arch / arm / mach-u300 / include / mach / system.h
blob8daf13634ce030420e75a7b107b5af3471197877
1 /*
3 * arch/arm/mach-u300/include/mach/system.h
6 * Copyright (C) 2007-2009 ST-Ericsson AB
7 * License terms: GNU General Public License (GPL) version 2
8 * System shutdown and reset functions.
9 * Author: Linus Walleij <linus.walleij@stericsson.com>
11 #include <mach/hardware.h>
12 #include <asm/io.h>
13 #include <asm/hardware/vic.h>
14 #include <asm/irq.h>
16 /* Forward declare this function from the watchdog */
17 void coh901327_watchdog_reset(void);
19 static inline void arch_idle(void)
21 cpu_do_idle();
24 static void arch_reset(char mode, const char *cmd)
26 switch (mode) {
27 case 's':
28 case 'h':
29 printk(KERN_CRIT "RESET: shutting down/rebooting system\n");
30 /* Disable interrupts */
31 local_irq_disable();
32 #ifdef CONFIG_COH901327_WATCHDOG
33 coh901327_watchdog_reset();
34 #endif
35 break;
36 default:
37 /* Do nothing */
38 break;
40 /* Wait for system do die/reset. */
41 while (1);