|
@@ -8,33 +8,11 @@
|
|
* System shutdown and reset functions.
|
|
* System shutdown and reset functions.
|
|
* Author: Linus Walleij <linus.walleij@stericsson.com>
|
|
* Author: Linus Walleij <linus.walleij@stericsson.com>
|
|
*/
|
|
*/
|
|
-#include <mach/hardware.h>
|
|
|
|
-#include <asm/io.h>
|
|
|
|
-#include <asm/hardware/vic.h>
|
|
|
|
-#include <asm/irq.h>
|
|
|
|
-
|
|
|
|
-/* Forward declare this function from the watchdog */
|
|
|
|
-void coh901327_watchdog_reset(void);
|
|
|
|
-
|
|
|
|
static inline void arch_idle(void)
|
|
static inline void arch_idle(void)
|
|
{
|
|
{
|
|
cpu_do_idle();
|
|
cpu_do_idle();
|
|
}
|
|
}
|
|
|
|
|
|
-static void arch_reset(char mode, const char *cmd)
|
|
|
|
|
|
+static inline void arch_reset(char mode, const char *cmd)
|
|
{
|
|
{
|
|
- switch (mode) {
|
|
|
|
- case 's':
|
|
|
|
- case 'h':
|
|
|
|
- printk(KERN_CRIT "RESET: shutting down/rebooting system\n");
|
|
|
|
-#ifdef CONFIG_COH901327_WATCHDOG
|
|
|
|
- coh901327_watchdog_reset();
|
|
|
|
-#endif
|
|
|
|
- break;
|
|
|
|
- default:
|
|
|
|
- /* Do nothing */
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- /* Wait for system do die/reset. */
|
|
|
|
- while (1);
|
|
|
|
}
|
|
}
|