diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/cm_bf533.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c index 411d4b84c39d..e7061c7e8c42 100644 --- a/arch/blackfin/mach-bf533/boards/cm_bf533.c +++ b/arch/blackfin/mach-bf533/boards/cm_bf533.c | |||
@@ -250,23 +250,33 @@ static struct platform_device bfin_uart_device = { | |||
250 | #endif | 250 | #endif |
251 | 251 | ||
252 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 252 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
253 | static struct resource bfin_sir_resources[] = { | ||
254 | #ifdef CONFIG_BFIN_SIR0 | 253 | #ifdef CONFIG_BFIN_SIR0 |
254 | static struct resource bfin_sir0_resources[] = { | ||
255 | { | 255 | { |
256 | .start = 0xFFC00400, | 256 | .start = 0xFFC00400, |
257 | .end = 0xFFC004FF, | 257 | .end = 0xFFC004FF, |
258 | .flags = IORESOURCE_MEM, | 258 | .flags = IORESOURCE_MEM, |
259 | }, | 259 | }, |
260 | #endif | 260 | { |
261 | .start = IRQ_UART0_RX, | ||
262 | .end = IRQ_UART0_RX+1, | ||
263 | .flags = IORESOURCE_IRQ, | ||
264 | }, | ||
265 | { | ||
266 | .start = CH_UART0_RX, | ||
267 | .end = CH_UART0_RX+1, | ||
268 | .flags = IORESOURCE_DMA, | ||
269 | }, | ||
261 | }; | 270 | }; |
262 | 271 | ||
263 | static struct platform_device bfin_sir_device = { | 272 | static struct platform_device bfin_sir0_device = { |
264 | .name = "bfin_sir", | 273 | .name = "bfin_sir", |
265 | .id = 0, | 274 | .id = 0, |
266 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 275 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
267 | .resource = bfin_sir_resources, | 276 | .resource = bfin_sir0_resources, |
268 | }; | 277 | }; |
269 | #endif | 278 | #endif |
279 | #endif | ||
270 | 280 | ||
271 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 281 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
272 | static struct platform_device bfin_sport0_uart_device = { | 282 | static struct platform_device bfin_sport0_uart_device = { |
@@ -355,7 +365,9 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
355 | #endif | 365 | #endif |
356 | 366 | ||
357 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 367 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
358 | &bfin_sir_device, | 368 | #ifdef CONFIG_BFIN_SIR0 |
369 | &bfin_sir0_device, | ||
370 | #endif | ||
359 | #endif | 371 | #endif |
360 | 372 | ||
361 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 373 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |