diff options
Diffstat (limited to 'arch/arm/plat-mxc')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mx27.h | 147 |
1 files changed, 129 insertions, 18 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mx27.h b/arch/arm/plat-mxc/include/mach/mx27.h index b619aa4f27bc..e2ae19f51710 100644 --- a/arch/arm/plat-mxc/include/mach/mx27.h +++ b/arch/arm/plat-mxc/include/mach/mx27.h | |||
@@ -24,28 +24,69 @@ | |||
24 | #ifndef __ASM_ARCH_MXC_MX27_H__ | 24 | #ifndef __ASM_ARCH_MXC_MX27_H__ |
25 | #define __ASM_ARCH_MXC_MX27_H__ | 25 | #define __ASM_ARCH_MXC_MX27_H__ |
26 | 26 | ||
27 | #define MX27_MSHC_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x18000) | 27 | #define MX27_AIPI_BASE_ADDR 0x10000000 |
28 | #define MX27_GPT5_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x19000) | 28 | #define MX27_AIPI_BASE_ADDR_VIRT 0xf4000000 |
29 | #define MX27_GPT4_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x1a000) | 29 | #define MX27_AIPI_SIZE SZ_1M |
30 | #define MX27_UART5_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x1b000) | 30 | #define MX27_DMA_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x01000) |
31 | #define MX27_UART6_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x1c000) | 31 | #define MX27_WDOG_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x02000) |
32 | #define MX27_I2C2_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x1d000) | 32 | #define MX27_GPT1_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x03000) |
33 | #define MX27_SDHC3_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x1e000) | 33 | #define MX27_GPT2_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x04000) |
34 | #define MX27_GPT6_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x1f000) | 34 | #define MX27_GPT3_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x05000) |
35 | #define MX27_VPU_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x23000) | 35 | #define MX27_PWM_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x06000) |
36 | #define MX27_OTG_BASE_ADDR MX2x_USBOTG_BASE_ADDR | 36 | #define MX27_RTC_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x07000) |
37 | #define MX27_SAHARA_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x25000) | 37 | #define MX27_KPP_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x08000) |
38 | #define MX27_IIM_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x28000) | 38 | #define MX27_OWIRE_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x09000) |
39 | #define MX27_RTIC_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x2a000) | 39 | #define MX27_UART1_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x0a000) |
40 | #define MX27_FEC_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x2b000) | 40 | #define MX27_UART2_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x0b000) |
41 | #define MX27_SCC_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x2c000) | 41 | #define MX27_UART3_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x0c000) |
42 | #define MX27_ETB_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x3b000) | 42 | #define MX27_UART4_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x0d000) |
43 | #define MX27_ETB_RAM_BASE_ADDR (MX2x_AIPI_BASE_ADDR + 0x3c000) | 43 | #define MX27_CSPI1_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x0e000) |
44 | #define MX27_CSPI2_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x0f000) | ||
45 | #define MX27_SSI1_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x10000) | ||
46 | #define MX27_SSI2_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x11000) | ||
47 | #define MX27_I2C_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x12000) | ||
48 | #define MX27_SDHC1_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x13000) | ||
49 | #define MX27_SDHC2_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x14000) | ||
50 | #define MX27_GPIO_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x15000) | ||
51 | #define MX27_AUDMUX_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x16000) | ||
52 | #define MX27_CSPI3_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x17000) | ||
53 | #define MX27_MSHC_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x18000) | ||
54 | #define MX27_GPT5_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x19000) | ||
55 | #define MX27_GPT4_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x1a000) | ||
56 | #define MX27_UART5_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x1b000) | ||
57 | #define MX27_UART6_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x1c000) | ||
58 | #define MX27_I2C2_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x1d000) | ||
59 | #define MX27_SDHC3_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x1e000) | ||
60 | #define MX27_GPT6_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x1f000) | ||
61 | #define MX27_LCDC_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x21000) | ||
62 | #define MX27_SLCDC_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x22000) | ||
63 | #define MX27_VPU_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x23000) | ||
64 | #define MX27_USBOTG_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x24000) | ||
65 | #define MX27_OTG_BASE_ADDR MX27_USBOTG_BASE_ADDR | ||
66 | #define MX27_SAHARA_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x25000) | ||
67 | #define MX27_EMMA_PP_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x26000) | ||
68 | #define MX27_EMMA_PRP_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x26400) | ||
69 | #define MX27_CCM_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x27000) | ||
70 | #define MX27_SYSCTRL_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x27800) | ||
71 | #define MX27_IIM_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x28000) | ||
72 | #define MX27_RTIC_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x2a000) | ||
73 | #define MX27_FEC_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x2b000) | ||
74 | #define MX27_SCC_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x2c000) | ||
75 | #define MX27_ETB_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x3b000) | ||
76 | #define MX27_ETB_RAM_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x3c000) | ||
77 | #define MX27_JAM_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x3e000) | ||
78 | #define MX27_MAX_BASE_ADDR (MX27_AIPI_BASE_ADDR + 0x3f000) | ||
79 | |||
80 | #define MX27_AVIC_BASE_ADDR 0x10040000 | ||
44 | 81 | ||
45 | /* ROM patch */ | 82 | /* ROM patch */ |
46 | #define MX27_ROMP_BASE_ADDR 0x10041000 | 83 | #define MX27_ROMP_BASE_ADDR 0x10041000 |
47 | 84 | ||
48 | #define MX27_ATA_BASE_ADDR (MX2x_SAHB1_BASE_ADDR + 0x1000) | 85 | #define MX27_SAHB1_BASE_ADDR 0x80000000 |
86 | #define MX27_SAHB1_BASE_ADDR_VIRT 0xf4100000 | ||
87 | #define MX27_SAHB1_SIZE SZ_1M | ||
88 | #define MX27_CSI_BASE_ADDR (MX27_SAHB1_BASE_ADDR + 0x0000) | ||
89 | #define MX27_ATA_BASE_ADDR (MX27_SAHB1_BASE_ADDR + 0x1000) | ||
49 | 90 | ||
50 | /* Memory regions and CS */ | 91 | /* Memory regions and CS */ |
51 | #define MX27_SDRAM_BASE_ADDR 0xa0000000 | 92 | #define MX27_SDRAM_BASE_ADDR 0xa0000000 |
@@ -79,12 +120,53 @@ | |||
79 | #define MX27_INT_GPT5 3 | 120 | #define MX27_INT_GPT5 3 |
80 | #define MX27_INT_GPT4 4 | 121 | #define MX27_INT_GPT4 4 |
81 | #define MX27_INT_RTIC 5 | 122 | #define MX27_INT_RTIC 5 |
123 | #define MX27_INT_CSPI3 6 | ||
82 | #define MX27_INT_SDHC 7 | 124 | #define MX27_INT_SDHC 7 |
125 | #define MX27_INT_GPIO 8 | ||
83 | #define MX27_INT_SDHC3 9 | 126 | #define MX27_INT_SDHC3 9 |
127 | #define MX27_INT_SDHC2 10 | ||
128 | #define MX27_INT_SDHC1 11 | ||
129 | #define MX27_INT_I2C 12 | ||
130 | #define MX27_INT_SSI2 13 | ||
131 | #define MX27_INT_SSI1 14 | ||
132 | #define MX27_INT_CSPI2 15 | ||
133 | #define MX27_INT_CSPI1 16 | ||
134 | #define MX27_INT_UART4 17 | ||
135 | #define MX27_INT_UART3 18 | ||
136 | #define MX27_INT_UART2 19 | ||
137 | #define MX27_INT_UART1 20 | ||
138 | #define MX27_INT_KPP 21 | ||
139 | #define MX27_INT_RTC 22 | ||
140 | #define MX27_INT_PWM 23 | ||
141 | #define MX27_INT_GPT3 24 | ||
142 | #define MX27_INT_GPT2 25 | ||
143 | #define MX27_INT_GPT1 26 | ||
144 | #define MX27_INT_WDOG 27 | ||
145 | #define MX27_INT_PCMCIA 28 | ||
146 | #define MX27_INT_NANDFC 29 | ||
84 | #define MX27_INT_ATA 30 | 147 | #define MX27_INT_ATA 30 |
148 | #define MX27_INT_CSI 31 | ||
149 | #define MX27_INT_DMACH0 32 | ||
150 | #define MX27_INT_DMACH1 33 | ||
151 | #define MX27_INT_DMACH2 34 | ||
152 | #define MX27_INT_DMACH3 35 | ||
153 | #define MX27_INT_DMACH4 36 | ||
154 | #define MX27_INT_DMACH5 37 | ||
155 | #define MX27_INT_DMACH6 38 | ||
156 | #define MX27_INT_DMACH7 39 | ||
157 | #define MX27_INT_DMACH8 40 | ||
158 | #define MX27_INT_DMACH9 41 | ||
159 | #define MX27_INT_DMACH10 42 | ||
160 | #define MX27_INT_DMACH11 43 | ||
161 | #define MX27_INT_DMACH12 44 | ||
162 | #define MX27_INT_DMACH13 45 | ||
163 | #define MX27_INT_DMACH14 46 | ||
164 | #define MX27_INT_DMACH15 47 | ||
85 | #define MX27_INT_UART6 48 | 165 | #define MX27_INT_UART6 48 |
86 | #define MX27_INT_UART5 49 | 166 | #define MX27_INT_UART5 49 |
87 | #define MX27_INT_FEC 50 | 167 | #define MX27_INT_FEC 50 |
168 | #define MX27_INT_EMMAPRP 51 | ||
169 | #define MX27_INT_EMMAPP 52 | ||
88 | #define MX27_INT_VPU 53 | 170 | #define MX27_INT_VPU 53 |
89 | #define MX27_INT_USB1 54 | 171 | #define MX27_INT_USB1 54 |
90 | #define MX27_INT_USB2 55 | 172 | #define MX27_INT_USB2 55 |
@@ -92,13 +174,42 @@ | |||
92 | #define MX27_INT_SCC_SMN 57 | 174 | #define MX27_INT_SCC_SMN 57 |
93 | #define MX27_INT_SCC_SCM 58 | 175 | #define MX27_INT_SCC_SCM 58 |
94 | #define MX27_INT_SAHARA 59 | 176 | #define MX27_INT_SAHARA 59 |
177 | #define MX27_INT_SLCDC 60 | ||
178 | #define MX27_INT_LCDC 61 | ||
95 | #define MX27_INT_IIM 62 | 179 | #define MX27_INT_IIM 62 |
96 | #define MX27_INT_CCM 63 | 180 | #define MX27_INT_CCM 63 |
97 | 181 | ||
98 | /* fixed DMA request numbers */ | 182 | /* fixed DMA request numbers */ |
183 | #define MX27_DMA_REQ_CSPI3_RX 1 | ||
184 | #define MX27_DMA_REQ_CSPI3_TX 2 | ||
185 | #define MX27_DMA_REQ_EXT 3 | ||
99 | #define MX27_DMA_REQ_MSHC 4 | 186 | #define MX27_DMA_REQ_MSHC 4 |
187 | #define MX27_DMA_REQ_SDHC2 6 | ||
188 | #define MX27_DMA_REQ_SDHC1 7 | ||
189 | #define MX27_DMA_REQ_SSI2_RX0 8 | ||
190 | #define MX27_DMA_REQ_SSI2_TX0 9 | ||
191 | #define MX27_DMA_REQ_SSI2_RX1 10 | ||
192 | #define MX27_DMA_REQ_SSI2_TX1 11 | ||
193 | #define MX27_DMA_REQ_SSI1_RX0 12 | ||
194 | #define MX27_DMA_REQ_SSI1_TX0 13 | ||
195 | #define MX27_DMA_REQ_SSI1_RX1 14 | ||
196 | #define MX27_DMA_REQ_SSI1_TX1 15 | ||
197 | #define MX27_DMA_REQ_CSPI2_RX 16 | ||
198 | #define MX27_DMA_REQ_CSPI2_TX 17 | ||
199 | #define MX27_DMA_REQ_CSPI1_RX 18 | ||
200 | #define MX27_DMA_REQ_CSPI1_TX 19 | ||
201 | #define MX27_DMA_REQ_UART4_RX 20 | ||
202 | #define MX27_DMA_REQ_UART4_TX 21 | ||
203 | #define MX27_DMA_REQ_UART3_RX 22 | ||
204 | #define MX27_DMA_REQ_UART3_TX 23 | ||
205 | #define MX27_DMA_REQ_UART2_RX 24 | ||
206 | #define MX27_DMA_REQ_UART2_TX 25 | ||
207 | #define MX27_DMA_REQ_UART1_RX 26 | ||
208 | #define MX27_DMA_REQ_UART1_TX 27 | ||
100 | #define MX27_DMA_REQ_ATA_TX 28 | 209 | #define MX27_DMA_REQ_ATA_TX 28 |
101 | #define MX27_DMA_REQ_ATA_RCV 29 | 210 | #define MX27_DMA_REQ_ATA_RCV 29 |
211 | #define MX27_DMA_REQ_CSI_STAT 30 | ||
212 | #define MX27_DMA_REQ_CSI_RX 31 | ||
102 | #define MX27_DMA_REQ_UART5_TX 32 | 213 | #define MX27_DMA_REQ_UART5_TX 32 |
103 | #define MX27_DMA_REQ_UART5_RX 33 | 214 | #define MX27_DMA_REQ_UART5_RX 33 |
104 | #define MX27_DMA_REQ_UART6_TX 34 | 215 | #define MX27_DMA_REQ_UART6_TX 34 |