diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-08-05 11:14:15 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-08-07 04:55:48 -0400 |
commit | a09e64fbc0094e3073dbb09c3b4bfe4ab669244b (patch) | |
tree | 69689f467179891b498bd7423fcf61925173db31 /arch/arm/mach-ixp2000/include/mach/system.h | |
parent | a1b81a84fff05dbfef45b7012c26e1fee9973e5d (diff) |
[ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach
This just leaves include/asm-arm/plat-* to deal with.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp2000/include/mach/system.h')
-rw-r--r-- | arch/arm/mach-ixp2000/include/mach/system.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/arch/arm/mach-ixp2000/include/mach/system.h b/arch/arm/mach-ixp2000/include/mach/system.h new file mode 100644 index 000000000000..2e9c68f95a24 --- /dev/null +++ b/arch/arm/mach-ixp2000/include/mach/system.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-ixp2000/include/mach/system.h | ||
3 | * | ||
4 | * Copyright (C) 2002 Intel Corp. | ||
5 | * Copyricht (C) 2003-2005 MontaVista Software, Inc. | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #include <mach/hardware.h> | ||
13 | #include <asm/mach-types.h> | ||
14 | |||
15 | static inline void arch_idle(void) | ||
16 | { | ||
17 | cpu_do_idle(); | ||
18 | } | ||
19 | |||
20 | static inline void arch_reset(char mode) | ||
21 | { | ||
22 | local_irq_disable(); | ||
23 | |||
24 | /* | ||
25 | * Reset flash banking register so that we are pointing at | ||
26 | * RedBoot bank. | ||
27 | */ | ||
28 | if (machine_is_ixdp2401()) { | ||
29 | ixp2000_reg_write(IXDP2X01_CPLD_FLASH_REG, | ||
30 | ((0 >> IXDP2X01_FLASH_WINDOW_BITS) | ||
31 | | IXDP2X01_CPLD_FLASH_INTERN)); | ||
32 | ixp2000_reg_wrb(IXDP2X01_CPLD_RESET_REG, 0xffffffff); | ||
33 | } | ||
34 | |||
35 | /* | ||
36 | * On IXDP2801 we need to write this magic sequence to the CPLD | ||
37 | * to cause a complete reset of the CPU and all external devices | ||
38 | * and move the flash bank register back to 0. | ||
39 | */ | ||
40 | if (machine_is_ixdp2801() || machine_is_ixdp28x5()) { | ||
41 | unsigned long reset_reg = *IXDP2X01_CPLD_RESET_REG; | ||
42 | |||
43 | reset_reg = 0x55AA0000 | (reset_reg & 0x0000FFFF); | ||
44 | ixp2000_reg_write(IXDP2X01_CPLD_RESET_REG, reset_reg); | ||
45 | ixp2000_reg_wrb(IXDP2X01_CPLD_RESET_REG, 0x80000000); | ||
46 | } | ||
47 | |||
48 | ixp2000_reg_wrb(IXP2000_RESET0, RSTALL); | ||
49 | } | ||