diff options
author | Graf Yang <graf.yang@analog.com> | 2009-01-07 10:14:39 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:39 -0500 |
commit | 42bd8bcb2fa1853fda9c51d956f70bbe2329bdfb (patch) | |
tree | da6e1022ee8e19380444d026dc40e6e989489a85 /arch/blackfin/mach-bf537/boards/tcm_bf537.c | |
parent | c0948d3316eaf3fdacc461c2c9e18441022e9e63 (diff) |
Blackfin arch: Modify bfin_sir device configuration to board file
Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/tcm_bf537.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/tcm_bf537.c | 48 |
1 files changed, 41 insertions, 7 deletions
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c index f122c3c7158e..2f4b066153c5 100644 --- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c +++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c | |||
@@ -392,30 +392,59 @@ static struct platform_device bfin_uart_device = { | |||
392 | #endif | 392 | #endif |
393 | 393 | ||
394 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 394 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
395 | static struct resource bfin_sir_resources[] = { | ||
396 | #ifdef CONFIG_BFIN_SIR0 | 395 | #ifdef CONFIG_BFIN_SIR0 |
396 | static struct resource bfin_sir0_resources[] = { | ||
397 | { | 397 | { |
398 | .start = 0xFFC00400, | 398 | .start = 0xFFC00400, |
399 | .end = 0xFFC004FF, | 399 | .end = 0xFFC004FF, |
400 | .flags = IORESOURCE_MEM, | 400 | .flags = IORESOURCE_MEM, |
401 | }, | 401 | }, |
402 | { | ||
403 | .start = IRQ_UART0_RX, | ||
404 | .end = IRQ_UART0_RX+1, | ||
405 | .flags = IORESOURCE_IRQ, | ||
406 | }, | ||
407 | { | ||
408 | .start = CH_UART0_RX, | ||
409 | .end = CH_UART0_RX+1, | ||
410 | .flags = IORESOURCE_DMA, | ||
411 | }, | ||
412 | }; | ||
413 | |||
414 | static struct platform_device bfin_sir0_device = { | ||
415 | .name = "bfin_sir", | ||
416 | .id = 0, | ||
417 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
418 | .resource = bfin_sir0_resources, | ||
419 | }; | ||
402 | #endif | 420 | #endif |
403 | #ifdef CONFIG_BFIN_SIR1 | 421 | #ifdef CONFIG_BFIN_SIR1 |
422 | static struct resource bfin_sir1_resources[] = { | ||
404 | { | 423 | { |
405 | .start = 0xFFC02000, | 424 | .start = 0xFFC02000, |
406 | .end = 0xFFC020FF, | 425 | .end = 0xFFC020FF, |
407 | .flags = IORESOURCE_MEM, | 426 | .flags = IORESOURCE_MEM, |
408 | }, | 427 | }, |
409 | #endif | 428 | { |
429 | .start = IRQ_UART1_RX, | ||
430 | .end = IRQ_UART1_RX+1, | ||
431 | .flags = IORESOURCE_IRQ, | ||
432 | }, | ||
433 | { | ||
434 | .start = CH_UART1_RX, | ||
435 | .end = CH_UART1_RX+1, | ||
436 | .flags = IORESOURCE_DMA, | ||
437 | }, | ||
410 | }; | 438 | }; |
411 | 439 | ||
412 | static struct platform_device bfin_sir_device = { | 440 | static struct platform_device bfin_sir1_device = { |
413 | .name = "bfin_sir", | 441 | .name = "bfin_sir", |
414 | .id = 0, | 442 | .id = 1, |
415 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 443 | .num_resources = ARRAY_SIZE(bfin_sir1_resources), |
416 | .resource = bfin_sir_resources, | 444 | .resource = bfin_sir1_resources, |
417 | }; | 445 | }; |
418 | #endif | 446 | #endif |
447 | #endif | ||
419 | 448 | ||
420 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 449 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
421 | static struct resource bfin_twi0_resource[] = { | 450 | static struct resource bfin_twi0_resource[] = { |
@@ -538,7 +567,12 @@ static struct platform_device *cm_bf537_devices[] __initdata = { | |||
538 | #endif | 567 | #endif |
539 | 568 | ||
540 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 569 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
541 | &bfin_sir_device, | 570 | #ifdef CONFIG_BFIN_SIR0 |
571 | &bfin_sir0_device, | ||
572 | #endif | ||
573 | #ifdef CONFIG_BFIN_SIR1 | ||
574 | &bfin_sir1_device, | ||
575 | #endif | ||
542 | #endif | 576 | #endif |
543 | 577 | ||
544 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 578 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |