diff options
Diffstat (limited to 'arch/arm/mach-sa1100/generic.c')
-rw-r--r-- | arch/arm/mach-sa1100/generic.c | 97 |
1 files changed, 18 insertions, 79 deletions
diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c index bb10ee2cb89f..2b33b4597468 100644 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c | |||
@@ -149,16 +149,8 @@ static void sa11x0_register_device(struct platform_device *dev, void *data) | |||
149 | 149 | ||
150 | 150 | ||
151 | static struct resource sa11x0udc_resources[] = { | 151 | static struct resource sa11x0udc_resources[] = { |
152 | [0] = { | 152 | [0] = DEFINE_RES_MEM(__PREG(Ser0UDCCR), SZ_64K), |
153 | .start = __PREG(Ser0UDCCR), | 153 | [1] = DEFINE_RES_IRQ(IRQ_Ser0UDC), |
154 | .end = __PREG(Ser0UDCCR) + 0xffff, | ||
155 | .flags = IORESOURCE_MEM, | ||
156 | }, | ||
157 | [1] = { | ||
158 | .start = IRQ_Ser0UDC, | ||
159 | .end = IRQ_Ser0UDC, | ||
160 | .flags = IORESOURCE_IRQ, | ||
161 | }, | ||
162 | }; | 154 | }; |
163 | 155 | ||
164 | static u64 sa11x0udc_dma_mask = 0xffffffffUL; | 156 | static u64 sa11x0udc_dma_mask = 0xffffffffUL; |
@@ -175,16 +167,8 @@ static struct platform_device sa11x0udc_device = { | |||
175 | }; | 167 | }; |
176 | 168 | ||
177 | static struct resource sa11x0uart1_resources[] = { | 169 | static struct resource sa11x0uart1_resources[] = { |
178 | [0] = { | 170 | [0] = DEFINE_RES_MEM(__PREG(Ser1UTCR0), SZ_64K), |
179 | .start = __PREG(Ser1UTCR0), | 171 | [1] = DEFINE_RES_IRQ(IRQ_Ser1UART), |
180 | .end = __PREG(Ser1UTCR0) + 0xffff, | ||
181 | .flags = IORESOURCE_MEM, | ||
182 | }, | ||
183 | [1] = { | ||
184 | .start = IRQ_Ser1UART, | ||
185 | .end = IRQ_Ser1UART, | ||
186 | .flags = IORESOURCE_IRQ, | ||
187 | }, | ||
188 | }; | 172 | }; |
189 | 173 | ||
190 | static struct platform_device sa11x0uart1_device = { | 174 | static struct platform_device sa11x0uart1_device = { |
@@ -195,16 +179,8 @@ static struct platform_device sa11x0uart1_device = { | |||
195 | }; | 179 | }; |
196 | 180 | ||
197 | static struct resource sa11x0uart3_resources[] = { | 181 | static struct resource sa11x0uart3_resources[] = { |
198 | [0] = { | 182 | [0] = DEFINE_RES_MEM(__PREG(Ser3UTCR0), SZ_64K), |
199 | .start = __PREG(Ser3UTCR0), | 183 | [1] = DEFINE_RES_IRQ(IRQ_Ser3UART), |
200 | .end = __PREG(Ser3UTCR0) + 0xffff, | ||
201 | .flags = IORESOURCE_MEM, | ||
202 | }, | ||
203 | [1] = { | ||
204 | .start = IRQ_Ser3UART, | ||
205 | .end = IRQ_Ser3UART, | ||
206 | .flags = IORESOURCE_IRQ, | ||
207 | }, | ||
208 | }; | 184 | }; |
209 | 185 | ||
210 | static struct platform_device sa11x0uart3_device = { | 186 | static struct platform_device sa11x0uart3_device = { |
@@ -215,16 +191,8 @@ static struct platform_device sa11x0uart3_device = { | |||
215 | }; | 191 | }; |
216 | 192 | ||
217 | static struct resource sa11x0mcp_resources[] = { | 193 | static struct resource sa11x0mcp_resources[] = { |
218 | [0] = { | 194 | [0] = DEFINE_RES_MEM(__PREG(Ser4MCCR0), SZ_64K), |
219 | .start = __PREG(Ser4MCCR0), | 195 | [1] = DEFINE_RES_IRQ(IRQ_Ser4MCP), |
220 | .end = __PREG(Ser4MCCR0) + 0xffff, | ||
221 | .flags = IORESOURCE_MEM, | ||
222 | }, | ||
223 | [1] = { | ||
224 | .start = IRQ_Ser4MCP, | ||
225 | .end = IRQ_Ser4MCP, | ||
226 | .flags = IORESOURCE_IRQ, | ||
227 | }, | ||
228 | }; | 196 | }; |
229 | 197 | ||
230 | static u64 sa11x0mcp_dma_mask = 0xffffffffUL; | 198 | static u64 sa11x0mcp_dma_mask = 0xffffffffUL; |
@@ -246,16 +214,8 @@ void sa11x0_register_mcp(struct mcp_plat_data *data) | |||
246 | } | 214 | } |
247 | 215 | ||
248 | static struct resource sa11x0ssp_resources[] = { | 216 | static struct resource sa11x0ssp_resources[] = { |
249 | [0] = { | 217 | [0] = DEFINE_RES_MEM(0x80070000, SZ_64K), |
250 | .start = 0x80070000, | 218 | [1] = DEFINE_RES_IRQ(IRQ_Ser4SSP), |
251 | .end = 0x8007ffff, | ||
252 | .flags = IORESOURCE_MEM, | ||
253 | }, | ||
254 | [1] = { | ||
255 | .start = IRQ_Ser4SSP, | ||
256 | .end = IRQ_Ser4SSP, | ||
257 | .flags = IORESOURCE_IRQ, | ||
258 | }, | ||
259 | }; | 219 | }; |
260 | 220 | ||
261 | static u64 sa11x0ssp_dma_mask = 0xffffffffUL; | 221 | static u64 sa11x0ssp_dma_mask = 0xffffffffUL; |
@@ -272,16 +232,8 @@ static struct platform_device sa11x0ssp_device = { | |||
272 | }; | 232 | }; |
273 | 233 | ||
274 | static struct resource sa11x0fb_resources[] = { | 234 | static struct resource sa11x0fb_resources[] = { |
275 | [0] = { | 235 | [0] = DEFINE_RES_MEM(0xb0100000, SZ_64K), |
276 | .start = 0xb0100000, | 236 | [1] = DEFINE_RES_IRQ(IRQ_LCD), |
277 | .end = 0xb010ffff, | ||
278 | .flags = IORESOURCE_MEM, | ||
279 | }, | ||
280 | [1] = { | ||
281 | .start = IRQ_LCD, | ||
282 | .end = IRQ_LCD, | ||
283 | .flags = IORESOURCE_IRQ, | ||
284 | }, | ||
285 | }; | 237 | }; |
286 | 238 | ||
287 | static struct platform_device sa11x0fb_device = { | 239 | static struct platform_device sa11x0fb_device = { |
@@ -314,23 +266,10 @@ void sa11x0_register_mtd(struct flash_platform_data *flash, | |||
314 | } | 266 | } |
315 | 267 | ||
316 | static struct resource sa11x0ir_resources[] = { | 268 | static struct resource sa11x0ir_resources[] = { |
317 | { | 269 | DEFINE_RES_MEM(__PREG(Ser2UTCR0), 0x24), |
318 | .start = __PREG(Ser2UTCR0), | 270 | DEFINE_RES_MEM(__PREG(Ser2HSCR0), 0x1c), |
319 | .end = __PREG(Ser2UTCR0) + 0x24 - 1, | 271 | DEFINE_RES_MEM(__PREG(Ser2HSCR2), 0x04), |
320 | .flags = IORESOURCE_MEM, | 272 | DEFINE_RES_IRQ(IRQ_Ser2ICP), |
321 | }, { | ||
322 | .start = __PREG(Ser2HSCR0), | ||
323 | .end = __PREG(Ser2HSCR0) + 0x1c - 1, | ||
324 | .flags = IORESOURCE_MEM, | ||
325 | }, { | ||
326 | .start = __PREG(Ser2HSCR2), | ||
327 | .end = __PREG(Ser2HSCR2) + 0x04 - 1, | ||
328 | .flags = IORESOURCE_MEM, | ||
329 | }, { | ||
330 | .start = IRQ_Ser2ICP, | ||
331 | .end = IRQ_Ser2ICP, | ||
332 | .flags = IORESOURCE_IRQ, | ||
333 | } | ||
334 | }; | 273 | }; |
335 | 274 | ||
336 | static struct platform_device sa11x0ir_device = { | 275 | static struct platform_device sa11x0ir_device = { |
@@ -428,7 +367,7 @@ void __init sa1100_map_io(void) | |||
428 | * the MBGNT signal false to ensure the SA1111 doesn't own the | 367 | * the MBGNT signal false to ensure the SA1111 doesn't own the |
429 | * SDRAM bus. | 368 | * SDRAM bus. |
430 | */ | 369 | */ |
431 | void __init sa1110_mb_disable(void) | 370 | void sa1110_mb_disable(void) |
432 | { | 371 | { |
433 | unsigned long flags; | 372 | unsigned long flags; |
434 | 373 | ||
@@ -447,7 +386,7 @@ void __init sa1110_mb_disable(void) | |||
447 | * If the system is going to use the SA-1111 DMA engines, set up | 386 | * If the system is going to use the SA-1111 DMA engines, set up |
448 | * the memory bus request/grant pins. | 387 | * the memory bus request/grant pins. |
449 | */ | 388 | */ |
450 | void __devinit sa1110_mb_enable(void) | 389 | void sa1110_mb_enable(void) |
451 | { | 390 | { |
452 | unsigned long flags; | 391 | unsigned long flags; |
453 | 392 | ||