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/ezkit.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/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 48 |
1 files changed, 41 insertions, 7 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index dc0384d2b218..beea15041c2e 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -718,30 +718,59 @@ static struct platform_device bfin_uart_device = { | |||
718 | #endif | 718 | #endif |
719 | 719 | ||
720 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 720 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
721 | static struct resource bfin_sir_resources[] = { | ||
722 | #ifdef CONFIG_BFIN_SIR0 | 721 | #ifdef CONFIG_BFIN_SIR0 |
722 | static struct resource bfin_sir0_resources[] = { | ||
723 | { | 723 | { |
724 | .start = 0xFFC00400, | 724 | .start = 0xFFC00400, |
725 | .end = 0xFFC004FF, | 725 | .end = 0xFFC004FF, |
726 | .flags = IORESOURCE_MEM, | 726 | .flags = IORESOURCE_MEM, |
727 | }, | 727 | }, |
728 | { | ||
729 | .start = IRQ_UART0_RX, | ||
730 | .end = IRQ_UART0_RX+1, | ||
731 | .flags = IORESOURCE_IRQ, | ||
732 | }, | ||
733 | { | ||
734 | .start = CH_UART0_RX, | ||
735 | .end = CH_UART0_RX+1, | ||
736 | .flags = IORESOURCE_DMA, | ||
737 | }, | ||
738 | }; | ||
739 | |||
740 | static struct platform_device bfin_sir0_device = { | ||
741 | .name = "bfin_sir", | ||
742 | .id = 0, | ||
743 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
744 | .resource = bfin_sir0_resources, | ||
745 | }; | ||
728 | #endif | 746 | #endif |
729 | #ifdef CONFIG_BFIN_SIR1 | 747 | #ifdef CONFIG_BFIN_SIR1 |
748 | static struct resource bfin_sir1_resources[] = { | ||
730 | { | 749 | { |
731 | .start = 0xFFC02000, | 750 | .start = 0xFFC02000, |
732 | .end = 0xFFC020FF, | 751 | .end = 0xFFC020FF, |
733 | .flags = IORESOURCE_MEM, | 752 | .flags = IORESOURCE_MEM, |
734 | }, | 753 | }, |
735 | #endif | 754 | { |
755 | .start = IRQ_UART1_RX, | ||
756 | .end = IRQ_UART1_RX+1, | ||
757 | .flags = IORESOURCE_IRQ, | ||
758 | }, | ||
759 | { | ||
760 | .start = CH_UART1_RX, | ||
761 | .end = CH_UART1_RX+1, | ||
762 | .flags = IORESOURCE_DMA, | ||
763 | }, | ||
736 | }; | 764 | }; |
737 | 765 | ||
738 | static struct platform_device bfin_sir_device = { | 766 | static struct platform_device bfin_sir1_device = { |
739 | .name = "bfin_sir", | 767 | .name = "bfin_sir", |
740 | .id = 0, | 768 | .id = 1, |
741 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 769 | .num_resources = ARRAY_SIZE(bfin_sir1_resources), |
742 | .resource = bfin_sir_resources, | 770 | .resource = bfin_sir1_resources, |
743 | }; | 771 | }; |
744 | #endif | 772 | #endif |
773 | #endif | ||
745 | 774 | ||
746 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 775 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
747 | static struct resource bfin_twi0_resource[] = { | 776 | static struct resource bfin_twi0_resource[] = { |
@@ -951,7 +980,12 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
951 | #endif | 980 | #endif |
952 | 981 | ||
953 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 982 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
954 | &bfin_sir_device, | 983 | #ifdef CONFIG_BFIN_SIR0 |
984 | &bfin_sir0_device, | ||
985 | #endif | ||
986 | #ifdef CONFIG_BFIN_SIR1 | ||
987 | &bfin_sir1_device, | ||
988 | #endif | ||
955 | #endif | 989 | #endif |
956 | 990 | ||
957 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 991 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |