diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/hardware/clps7111.h | 59 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/cs89712.h | 49 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/ep7211.h | 31 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/ep7212.h | 71 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/Kconfig | 21 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/include/mach/hardware.h | 23 |
6 files changed, 63 insertions, 191 deletions
diff --git a/arch/arm/include/asm/hardware/clps7111.h b/arch/arm/include/asm/hardware/clps7111.h index 78e2856b06d..0998606920b 100644 --- a/arch/arm/include/asm/hardware/clps7111.h +++ b/arch/arm/include/asm/hardware/clps7111.h | |||
@@ -27,9 +27,11 @@ | |||
27 | 27 | ||
28 | #define PADR (0x0000) | 28 | #define PADR (0x0000) |
29 | #define PBDR (0x0001) | 29 | #define PBDR (0x0001) |
30 | #define PCDR (0x0002) | ||
30 | #define PDDR (0x0003) | 31 | #define PDDR (0x0003) |
31 | #define PADDR (0x0040) | 32 | #define PADDR (0x0040) |
32 | #define PBDDR (0x0041) | 33 | #define PBDDR (0x0041) |
34 | #define PCDDR (0x0042) | ||
33 | #define PDDDR (0x0043) | 35 | #define PDDDR (0x0043) |
34 | #define PEDR (0x0080) | 36 | #define PEDR (0x0080) |
35 | #define PEDDR (0x00c0) | 37 | #define PEDDR (0x00c0) |
@@ -76,6 +78,18 @@ | |||
76 | #define SS2POP (0x16c0) | 78 | #define SS2POP (0x16c0) |
77 | #define KBDEOI (0x1700) | 79 | #define KBDEOI (0x1700) |
78 | 80 | ||
81 | #define DAIR (0x2000) | ||
82 | #define DAIR0 (0x2040) | ||
83 | #define DAIDR1 (0x2080) | ||
84 | #define DAIDR2 (0x20c0) | ||
85 | #define DAISR (0x2100) | ||
86 | #define SYSCON3 (0x2200) | ||
87 | #define INTSR3 (0x2240) | ||
88 | #define INTMR3 (0x2280) | ||
89 | #define LEDFLSH (0x22c0) | ||
90 | #define SDCONF (0x2300) | ||
91 | #define SDRFPR (0x2340) | ||
92 | |||
79 | /* common bits: SYSCON1 / SYSCON2 */ | 93 | /* common bits: SYSCON1 / SYSCON2 */ |
80 | #define SYSCON_UARTEN (1 << 8) | 94 | #define SYSCON_UARTEN (1 << 8) |
81 | 95 | ||
@@ -172,4 +186,49 @@ | |||
172 | #define SYNCIO_SMCKEN (1 << 13) | 186 | #define SYNCIO_SMCKEN (1 << 13) |
173 | #define SYNCIO_TXFRMEN (1 << 14) | 187 | #define SYNCIO_TXFRMEN (1 << 14) |
174 | 188 | ||
189 | #define DAIR_DAIEN (1 << 16) | ||
190 | #define DAIR_ECS (1 << 17) | ||
191 | #define DAIR_LCTM (1 << 19) | ||
192 | #define DAIR_LCRM (1 << 20) | ||
193 | #define DAIR_RCTM (1 << 21) | ||
194 | #define DAIR_RCRM (1 << 22) | ||
195 | #define DAIR_LBM (1 << 23) | ||
196 | |||
197 | #define DAIDR2_FIFOEN (1 << 15) | ||
198 | #define DAIDR2_FIFOLEFT (0x0d << 16) | ||
199 | #define DAIDR2_FIFORIGHT (0x11 << 16) | ||
200 | |||
201 | #define DAISR_RCTS (1 << 0) | ||
202 | #define DAISR_RCRS (1 << 1) | ||
203 | #define DAISR_LCTS (1 << 2) | ||
204 | #define DAISR_LCRS (1 << 3) | ||
205 | #define DAISR_RCTU (1 << 4) | ||
206 | #define DAISR_RCRO (1 << 5) | ||
207 | #define DAISR_LCTU (1 << 6) | ||
208 | #define DAISR_LCRO (1 << 7) | ||
209 | #define DAISR_RCNF (1 << 8) | ||
210 | #define DAISR_RCNE (1 << 9) | ||
211 | #define DAISR_LCNF (1 << 10) | ||
212 | #define DAISR_LCNE (1 << 11) | ||
213 | #define DAISR_FIFO (1 << 12) | ||
214 | |||
215 | #define SYSCON3_ADCCON (1 << 0) | ||
216 | #define SYSCON3_DAISEL (1 << 3) | ||
217 | #define SYSCON3_ADCCKNSEN (1 << 4) | ||
218 | #define SYSCON3_FASTWAKE (1 << 8) | ||
219 | #define SYSCON3_DAIEN (1 << 9) | ||
220 | |||
221 | #define SDCONF_ACTIVE (1 << 10) | ||
222 | #define SDCONF_CLKCTL (1 << 9) | ||
223 | #define SDCONF_WIDTH_4 (0 << 7) | ||
224 | #define SDCONF_WIDTH_8 (1 << 7) | ||
225 | #define SDCONF_WIDTH_16 (2 << 7) | ||
226 | #define SDCONF_WIDTH_32 (3 << 7) | ||
227 | #define SDCONF_SIZE_16 (0 << 5) | ||
228 | #define SDCONF_SIZE_64 (1 << 5) | ||
229 | #define SDCONF_SIZE_128 (2 << 5) | ||
230 | #define SDCONF_SIZE_256 (3 << 5) | ||
231 | #define SDCONF_CASLAT_2 (2) | ||
232 | #define SDCONF_CASLAT_3 (3) | ||
233 | |||
175 | #endif /* __ASM_HARDWARE_CLPS7111_H */ | 234 | #endif /* __ASM_HARDWARE_CLPS7111_H */ |
diff --git a/arch/arm/include/asm/hardware/cs89712.h b/arch/arm/include/asm/hardware/cs89712.h deleted file mode 100644 index f75626933e9..00000000000 --- a/arch/arm/include/asm/hardware/cs89712.h +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/include/asm/hardware/cs89712.h | ||
3 | * | ||
4 | * This file contains the hardware definitions of the CS89712 | ||
5 | * additional internal registers. | ||
6 | * | ||
7 | * Copyright (C) 2001 Thomas Gleixner autronix automation <gleixner@autronix.de> | ||
8 | * | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | * GNU General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 | */ | ||
24 | #ifndef __ASM_HARDWARE_CS89712_H | ||
25 | #define __ASM_HARDWARE_CS89712_H | ||
26 | |||
27 | /* | ||
28 | * CS89712 additional registers | ||
29 | */ | ||
30 | |||
31 | #define PCDR 0x0002 /* Port C Data register ---------------------------- */ | ||
32 | #define PCDDR 0x0042 /* Port C Data Direction register ------------------ */ | ||
33 | #define SDCONF 0x2300 /* SDRAM Configuration register ---------------------*/ | ||
34 | #define SDRFPR 0x2340 /* SDRAM Refresh period register --------------------*/ | ||
35 | |||
36 | #define SDCONF_ACTIVE (1 << 10) | ||
37 | #define SDCONF_CLKCTL (1 << 9) | ||
38 | #define SDCONF_WIDTH_4 (0 << 7) | ||
39 | #define SDCONF_WIDTH_8 (1 << 7) | ||
40 | #define SDCONF_WIDTH_16 (2 << 7) | ||
41 | #define SDCONF_WIDTH_32 (3 << 7) | ||
42 | #define SDCONF_SIZE_16 (0 << 5) | ||
43 | #define SDCONF_SIZE_64 (1 << 5) | ||
44 | #define SDCONF_SIZE_128 (2 << 5) | ||
45 | #define SDCONF_SIZE_256 (3 << 5) | ||
46 | #define SDCONF_CASLAT_2 (2) | ||
47 | #define SDCONF_CASLAT_3 (3) | ||
48 | |||
49 | #endif /* __ASM_HARDWARE_CS89712_H */ | ||
diff --git a/arch/arm/include/asm/hardware/ep7211.h b/arch/arm/include/asm/hardware/ep7211.h deleted file mode 100644 index 4b3f86bf1bf..00000000000 --- a/arch/arm/include/asm/hardware/ep7211.h +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/include/asm/hardware/ep7211.h | ||
3 | * | ||
4 | * This file contains the hardware definitions of the EP7211 internal | ||
5 | * registers. | ||
6 | * | ||
7 | * Copyright (C) 2001 Blue Mug, Inc. All Rights Reserved. | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | */ | ||
23 | #ifndef __ASM_HARDWARE_EP7211_H | ||
24 | #define __ASM_HARDWARE_EP7211_H | ||
25 | |||
26 | /* | ||
27 | * XXX miket@bluemug.com: need to introduce EP7211 registers (those not | ||
28 | * present in 7212) here. | ||
29 | */ | ||
30 | |||
31 | #endif /* __ASM_HARDWARE_EP7211_H */ | ||
diff --git a/arch/arm/include/asm/hardware/ep7212.h b/arch/arm/include/asm/hardware/ep7212.h deleted file mode 100644 index aad07f77dcf..00000000000 --- a/arch/arm/include/asm/hardware/ep7212.h +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/include/asm/hardware/ep7212.h | ||
3 | * | ||
4 | * This file contains the hardware definitions of the EP7212 internal | ||
5 | * registers. | ||
6 | * | ||
7 | * Copyright (C) 2000 Deep Blue Solutions Ltd. | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | */ | ||
23 | #ifndef __ASM_HARDWARE_EP7212_H | ||
24 | #define __ASM_HARDWARE_EP7212_H | ||
25 | |||
26 | /* | ||
27 | * These registers are specific to the EP7212 only | ||
28 | */ | ||
29 | #define DAIR 0x2000 | ||
30 | #define DAIR0 0x2040 | ||
31 | #define DAIDR1 0x2080 | ||
32 | #define DAIDR2 0x20c0 | ||
33 | #define DAISR 0x2100 | ||
34 | #define SYSCON3 0x2200 | ||
35 | #define INTSR3 0x2240 | ||
36 | #define INTMR3 0x2280 | ||
37 | #define LEDFLSH 0x22c0 | ||
38 | |||
39 | #define DAIR_DAIEN (1 << 16) | ||
40 | #define DAIR_ECS (1 << 17) | ||
41 | #define DAIR_LCTM (1 << 19) | ||
42 | #define DAIR_LCRM (1 << 20) | ||
43 | #define DAIR_RCTM (1 << 21) | ||
44 | #define DAIR_RCRM (1 << 22) | ||
45 | #define DAIR_LBM (1 << 23) | ||
46 | |||
47 | #define DAIDR2_FIFOEN (1 << 15) | ||
48 | #define DAIDR2_FIFOLEFT (0x0d << 16) | ||
49 | #define DAIDR2_FIFORIGHT (0x11 << 16) | ||
50 | |||
51 | #define DAISR_RCTS (1 << 0) | ||
52 | #define DAISR_RCRS (1 << 1) | ||
53 | #define DAISR_LCTS (1 << 2) | ||
54 | #define DAISR_LCRS (1 << 3) | ||
55 | #define DAISR_RCTU (1 << 4) | ||
56 | #define DAISR_RCRO (1 << 5) | ||
57 | #define DAISR_LCTU (1 << 6) | ||
58 | #define DAISR_LCRO (1 << 7) | ||
59 | #define DAISR_RCNF (1 << 8) | ||
60 | #define DAISR_RCNE (1 << 9) | ||
61 | #define DAISR_LCNF (1 << 10) | ||
62 | #define DAISR_LCNE (1 << 11) | ||
63 | #define DAISR_FIFO (1 << 12) | ||
64 | |||
65 | #define SYSCON3_ADCCON (1 << 0) | ||
66 | #define SYSCON3_DAISEL (1 << 3) | ||
67 | #define SYSCON3_ADCCKNSEN (1 << 4) | ||
68 | #define SYSCON3_FASTWAKE (1 << 8) | ||
69 | #define SYSCON3_DAIEN (1 << 9) | ||
70 | |||
71 | #endif /* __ASM_HARDWARE_EP7212_H */ | ||
diff --git a/arch/arm/mach-clps711x/Kconfig b/arch/arm/mach-clps711x/Kconfig index eb34bd1251d..ea036d62158 100644 --- a/arch/arm/mach-clps711x/Kconfig +++ b/arch/arm/mach-clps711x/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | if ARCH_CLPS711X | 1 | if ARCH_CLPS711X |
2 | 2 | ||
3 | menu "CLPS711X/EP721X Implementations" | 3 | menu "CLPS711X/EP721X/EP731X Implementations" |
4 | 4 | ||
5 | config ARCH_AUTCPU12 | 5 | config ARCH_AUTCPU12 |
6 | bool "AUTCPU12" | 6 | bool "AUTCPU12" |
@@ -45,26 +45,13 @@ config ARCH_P720T | |||
45 | config ARCH_FORTUNET | 45 | config ARCH_FORTUNET |
46 | bool "FORTUNET" | 46 | bool "FORTUNET" |
47 | 47 | ||
48 | # XXX Maybe these should indicate register compatibility | ||
49 | # instead of being mutually exclusive. | ||
50 | config ARCH_EP7211 | ||
51 | bool | ||
52 | depends on ARCH_EDB7211 | ||
53 | default y | ||
54 | |||
55 | config ARCH_EP7212 | ||
56 | bool | ||
57 | depends on ARCH_P720T || ARCH_CEIVA | ||
58 | default y | ||
59 | |||
60 | config EP72XX_ROM_BOOT | 48 | config EP72XX_ROM_BOOT |
61 | bool "EP72xx ROM boot" | 49 | bool "EP721x/EP731x ROM boot" |
62 | depends on ARCH_EP7211 || ARCH_EP7212 | 50 | help |
63 | ---help--- | ||
64 | If you say Y here, your CLPS711x-based kernel will use the bootstrap | 51 | If you say Y here, your CLPS711x-based kernel will use the bootstrap |
65 | mode memory map instead of the normal memory map. | 52 | mode memory map instead of the normal memory map. |
66 | 53 | ||
67 | Processors derived from the Cirrus CLPS-711X core support two boot | 54 | Processors derived from the Cirrus CLPS711X core support two boot |
68 | modes. Normal mode boots from the external memory device at CS0. | 55 | modes. Normal mode boots from the external memory device at CS0. |
69 | Bootstrap mode rearranges parts of the memory map, placing an | 56 | Bootstrap mode rearranges parts of the memory map, placing an |
70 | internal 128 byte bootstrap ROM at CS0. This option performs the | 57 | internal 128 byte bootstrap ROM at CS0. This option performs the |
diff --git a/arch/arm/mach-clps711x/include/mach/hardware.h b/arch/arm/mach-clps711x/include/mach/hardware.h index 1026ac96870..d31fc791f51 100644 --- a/arch/arm/mach-clps711x/include/mach/hardware.h +++ b/arch/arm/mach-clps711x/include/mach/hardware.h | |||
@@ -61,32 +61,11 @@ | |||
61 | #define CS7_PHYS_BASE (0x00000000) | 61 | #define CS7_PHYS_BASE (0x00000000) |
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | #if defined (CONFIG_ARCH_EP7211) | ||
65 | |||
66 | #include <asm/hardware/ep7211.h> | ||
67 | |||
68 | #elif defined (CONFIG_ARCH_EP7212) | ||
69 | |||
70 | #include <asm/hardware/ep7212.h> | ||
71 | |||
72 | #endif | ||
73 | |||
74 | #define SYSPLD_VIRT_BASE 0xfe000000 | 64 | #define SYSPLD_VIRT_BASE 0xfe000000 |
75 | #define SYSPLD_BASE SYSPLD_VIRT_BASE | 65 | #define SYSPLD_BASE SYSPLD_VIRT_BASE |
76 | 66 | ||
77 | #if defined (CONFIG_ARCH_AUTCPU12) | ||
78 | |||
79 | #include <asm/hardware/ep7212.h> | ||
80 | #include <asm/hardware/cs89712.h> | ||
81 | |||
82 | #endif | ||
83 | |||
84 | |||
85 | #if defined (CONFIG_ARCH_CDB89712) | 67 | #if defined (CONFIG_ARCH_CDB89712) |
86 | 68 | ||
87 | #include <asm/hardware/ep7212.h> | ||
88 | #include <asm/hardware/cs89712.h> | ||
89 | |||
90 | #define ETHER_START 0x20000000 | 69 | #define ETHER_START 0x20000000 |
91 | #define ETHER_SIZE 0x1000 | 70 | #define ETHER_SIZE 0x1000 |
92 | #define ETHER_BASE 0xfe000000 | 71 | #define ETHER_BASE 0xfe000000 |
@@ -149,8 +128,6 @@ | |||
149 | 128 | ||
150 | #if defined (CONFIG_ARCH_CEIVA) | 129 | #if defined (CONFIG_ARCH_CEIVA) |
151 | 130 | ||
152 | #include <asm/hardware/ep7212.h> | ||
153 | |||
154 | /* | 131 | /* |
155 | * The two flash banks are wired to chip selects 0 and 1. This is the mapping | 132 | * The two flash banks are wired to chip selects 0 and 1. This is the mapping |
156 | * for them. | 133 | * for them. |