diff options
Diffstat (limited to 'arch/blackfin/mach-bf561/boards/cm_bf561.c')
-rw-r--r-- | arch/blackfin/mach-bf561/boards/cm_bf561.c | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf561/boards/cm_bf561.c b/arch/blackfin/mach-bf561/boards/cm_bf561.c index 8f40990eea2f..6880d1ebfe60 100644 --- a/arch/blackfin/mach-bf561/boards/cm_bf561.c +++ b/arch/blackfin/mach-bf561/boards/cm_bf561.c | |||
@@ -230,6 +230,19 @@ static struct platform_device smc91x_device = { | |||
230 | }; | 230 | }; |
231 | #endif | 231 | #endif |
232 | 232 | ||
233 | static struct resource bfin_gpios_resources = { | ||
234 | .start = 0, | ||
235 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
236 | .flags = IORESOURCE_IRQ, | ||
237 | }; | ||
238 | |||
239 | static struct platform_device bfin_gpios_device = { | ||
240 | .name = "simple-gpio", | ||
241 | .id = -1, | ||
242 | .num_resources = 1, | ||
243 | .resource = &bfin_gpios_resources, | ||
244 | }; | ||
245 | |||
233 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | 246 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) |
234 | static struct resource isp1362_hcd_resources[] = { | 247 | static struct resource isp1362_hcd_resources[] = { |
235 | { | 248 | { |
@@ -287,23 +300,33 @@ static struct platform_device bfin_uart_device = { | |||
287 | #endif | 300 | #endif |
288 | 301 | ||
289 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 302 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
290 | static struct resource bfin_sir_resources[] = { | ||
291 | #ifdef CONFIG_BFIN_SIR0 | 303 | #ifdef CONFIG_BFIN_SIR0 |
304 | static struct resource bfin_sir0_resources[] = { | ||
292 | { | 305 | { |
293 | .start = 0xFFC00400, | 306 | .start = 0xFFC00400, |
294 | .end = 0xFFC004FF, | 307 | .end = 0xFFC004FF, |
295 | .flags = IORESOURCE_MEM, | 308 | .flags = IORESOURCE_MEM, |
296 | }, | 309 | }, |
297 | #endif | 310 | { |
311 | .start = IRQ_UART0_RX, | ||
312 | .end = IRQ_UART0_RX+1, | ||
313 | .flags = IORESOURCE_IRQ, | ||
314 | }, | ||
315 | { | ||
316 | .start = CH_UART0_RX, | ||
317 | .end = CH_UART0_RX+1, | ||
318 | .flags = IORESOURCE_DMA, | ||
319 | }, | ||
298 | }; | 320 | }; |
299 | 321 | ||
300 | static struct platform_device bfin_sir_device = { | 322 | static struct platform_device bfin_sir0_device = { |
301 | .name = "bfin_sir", | 323 | .name = "bfin_sir", |
302 | .id = 0, | 324 | .id = 0, |
303 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 325 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
304 | .resource = bfin_sir_resources, | 326 | .resource = bfin_sir0_resources, |
305 | }; | 327 | }; |
306 | #endif | 328 | #endif |
329 | #endif | ||
307 | 330 | ||
308 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | 331 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) |
309 | #define PATA_INT IRQ_PF46 | 332 | #define PATA_INT IRQ_PF46 |
@@ -382,7 +405,9 @@ static struct platform_device *cm_bf561_devices[] __initdata = { | |||
382 | #endif | 405 | #endif |
383 | 406 | ||
384 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 407 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
385 | &bfin_sir_device, | 408 | #ifdef CONFIG_BFIN_SIR0 |
409 | &bfin_sir0_device, | ||
410 | #endif | ||
386 | #endif | 411 | #endif |
387 | 412 | ||
388 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | 413 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) |
@@ -400,6 +425,8 @@ static struct platform_device *cm_bf561_devices[] __initdata = { | |||
400 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | 425 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) |
401 | &bfin_pata_device, | 426 | &bfin_pata_device, |
402 | #endif | 427 | #endif |
428 | |||
429 | &bfin_gpios_device, | ||
403 | }; | 430 | }; |
404 | 431 | ||
405 | static int __init cm_bf561_init(void) | 432 | static int __init cm_bf561_init(void) |