Merge remote-tracking branch 's5p/for-next'
[linux-2.6/next.git] / arch / arm / mach-iop13xx / include / mach / system.h
blobd0c66ef450a7398e08ee4fd5cd70c0f7a571c25f
1 /*
2 * arch/arm/mach-iop13xx/include/mach/system.h
4 * Copyright (C) 2004 Intel Corp.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10 #include <mach/iop13xx.h>
11 static inline void arch_idle(void)
13 cpu_do_idle();
16 static inline void arch_reset(char mode, const char *cmd)
19 * Reset the internal bus (warning both cores are reset)
21 write_wdtcr(IOP_WDTCR_EN_ARM);
22 write_wdtcr(IOP_WDTCR_EN);
23 write_wdtsr(IOP13XX_WDTSR_WRITE_EN | IOP13XX_WDTCR_IB_RESET);
24 write_wdtcr(0x1000);
26 for(;;);