diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/H8606.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/H8606.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf533/boards/H8606.c b/arch/blackfin/mach-bf533/boards/H8606.c index 72ac3ac8ef76..0c66bf44cfab 100644 --- a/arch/blackfin/mach-bf533/boards/H8606.c +++ b/arch/blackfin/mach-bf533/boards/H8606.c | |||
@@ -313,23 +313,33 @@ static struct platform_device bfin_uart_device = { | |||
313 | #endif | 313 | #endif |
314 | 314 | ||
315 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 315 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
316 | static struct resource bfin_sir_resources[] = { | ||
317 | #ifdef CONFIG_BFIN_SIR0 | 316 | #ifdef CONFIG_BFIN_SIR0 |
317 | static struct resource bfin_sir0_resources[] = { | ||
318 | { | 318 | { |
319 | .start = 0xFFC00400, | 319 | .start = 0xFFC00400, |
320 | .end = 0xFFC004FF, | 320 | .end = 0xFFC004FF, |
321 | .flags = IORESOURCE_MEM, | 321 | .flags = IORESOURCE_MEM, |
322 | }, | 322 | }, |
323 | #endif | 323 | { |
324 | .start = IRQ_UART0_RX, | ||
325 | .end = IRQ_UART0_RX+1, | ||
326 | .flags = IORESOURCE_IRQ, | ||
327 | }, | ||
328 | { | ||
329 | .start = CH_UART0_RX, | ||
330 | .end = CH_UART0_RX+1, | ||
331 | .flags = IORESOURCE_DMA, | ||
332 | }, | ||
324 | }; | 333 | }; |
325 | 334 | ||
326 | static struct platform_device bfin_sir_device = { | 335 | static struct platform_device bfin_sir0_device = { |
327 | .name = "bfin_sir", | 336 | .name = "bfin_sir", |
328 | .id = 0, | 337 | .id = 0, |
329 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 338 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
330 | .resource = bfin_sir_resources, | 339 | .resource = bfin_sir0_resources, |
331 | }; | 340 | }; |
332 | #endif | 341 | #endif |
342 | #endif | ||
333 | 343 | ||
334 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 344 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) |
335 | 345 | ||
@@ -431,7 +441,9 @@ static struct platform_device *h8606_devices[] __initdata = { | |||
431 | #endif | 441 | #endif |
432 | 442 | ||
433 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 443 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
434 | &bfin_sir_device, | 444 | #ifdef CONFIG_BFIN_SIR0 |
445 | &bfin_sir0_device, | ||
446 | #endif | ||
435 | #endif | 447 | #endif |
436 | 448 | ||
437 | #if defined(CONFIG_KEYBOARD_OPENCORES) || defined(CONFIG_KEYBOARD_OPENCORES_MODULE) | 449 | #if defined(CONFIG_KEYBOARD_OPENCORES) || defined(CONFIG_KEYBOARD_OPENCORES_MODULE) |