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-bf527/boards/ezbrd.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-bf527/boards/ezbrd.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezbrd.c | 48 |
1 files changed, 41 insertions, 7 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c index dab58a702c8e..4e67f587a141 100644 --- a/arch/blackfin/mach-bf527/boards/ezbrd.c +++ b/arch/blackfin/mach-bf527/boards/ezbrd.c | |||
@@ -478,30 +478,59 @@ static struct platform_device bfin_uart_device = { | |||
478 | #endif | 478 | #endif |
479 | 479 | ||
480 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 480 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
481 | static struct resource bfin_sir_resources[] = { | ||
482 | #ifdef CONFIG_BFIN_SIR0 | 481 | #ifdef CONFIG_BFIN_SIR0 |
482 | static struct resource bfin_sir0_resources[] = { | ||
483 | { | 483 | { |
484 | .start = 0xFFC00400, | 484 | .start = 0xFFC00400, |
485 | .end = 0xFFC004FF, | 485 | .end = 0xFFC004FF, |
486 | .flags = IORESOURCE_MEM, | 486 | .flags = IORESOURCE_MEM, |
487 | }, | 487 | }, |
488 | { | ||
489 | .start = IRQ_UART0_RX, | ||
490 | .end = IRQ_UART0_RX+1, | ||
491 | .flags = IORESOURCE_IRQ, | ||
492 | }, | ||
493 | { | ||
494 | .start = CH_UART0_RX, | ||
495 | .end = CH_UART0_RX+1, | ||
496 | .flags = IORESOURCE_DMA, | ||
497 | }, | ||
498 | }; | ||
499 | |||
500 | static struct platform_device bfin_sir0_device = { | ||
501 | .name = "bfin_sir", | ||
502 | .id = 0, | ||
503 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
504 | .resource = bfin_sir0_resources, | ||
505 | }; | ||
488 | #endif | 506 | #endif |
489 | #ifdef CONFIG_BFIN_SIR1 | 507 | #ifdef CONFIG_BFIN_SIR1 |
508 | static struct resource bfin_sir1_resources[] = { | ||
490 | { | 509 | { |
491 | .start = 0xFFC02000, | 510 | .start = 0xFFC02000, |
492 | .end = 0xFFC020FF, | 511 | .end = 0xFFC020FF, |
493 | .flags = IORESOURCE_MEM, | 512 | .flags = IORESOURCE_MEM, |
494 | }, | 513 | }, |
495 | #endif | 514 | { |
515 | .start = IRQ_UART1_RX, | ||
516 | .end = IRQ_UART1_RX+1, | ||
517 | .flags = IORESOURCE_IRQ, | ||
518 | }, | ||
519 | { | ||
520 | .start = CH_UART1_RX, | ||
521 | .end = CH_UART1_RX+1, | ||
522 | .flags = IORESOURCE_DMA, | ||
523 | }, | ||
496 | }; | 524 | }; |
497 | 525 | ||
498 | static struct platform_device bfin_sir_device = { | 526 | static struct platform_device bfin_sir1_device = { |
499 | .name = "bfin_sir", | 527 | .name = "bfin_sir", |
500 | .id = 0, | 528 | .id = 1, |
501 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 529 | .num_resources = ARRAY_SIZE(bfin_sir1_resources), |
502 | .resource = bfin_sir_resources, | 530 | .resource = bfin_sir1_resources, |
503 | }; | 531 | }; |
504 | #endif | 532 | #endif |
533 | #endif | ||
505 | 534 | ||
506 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 535 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
507 | static struct resource bfin_twi0_resource[] = { | 536 | static struct resource bfin_twi0_resource[] = { |
@@ -671,7 +700,12 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
671 | #endif | 700 | #endif |
672 | 701 | ||
673 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 702 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
674 | &bfin_sir_device, | 703 | #ifdef CONFIG_BFIN_SIR0 |
704 | &bfin_sir0_device, | ||
705 | #endif | ||
706 | #ifdef CONFIG_BFIN_SIR1 | ||
707 | &bfin_sir1_device, | ||
708 | #endif | ||
675 | #endif | 709 | #endif |
676 | 710 | ||
677 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 711 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |