diff options
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/stamp.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 48 |
1 files changed, 41 insertions, 7 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 8facba669553..980121b7e084 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -905,30 +905,59 @@ static struct platform_device bfin_uart_device = { | |||
905 | #endif | 905 | #endif |
906 | 906 | ||
907 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 907 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
908 | static struct resource bfin_sir_resources[] = { | ||
909 | #ifdef CONFIG_BFIN_SIR0 | 908 | #ifdef CONFIG_BFIN_SIR0 |
909 | static struct resource bfin_sir0_resources[] = { | ||
910 | { | 910 | { |
911 | .start = 0xFFC00400, | 911 | .start = 0xFFC00400, |
912 | .end = 0xFFC004FF, | 912 | .end = 0xFFC004FF, |
913 | .flags = IORESOURCE_MEM, | 913 | .flags = IORESOURCE_MEM, |
914 | }, | 914 | }, |
915 | { | ||
916 | .start = IRQ_UART0_RX, | ||
917 | .end = IRQ_UART0_RX+1, | ||
918 | .flags = IORESOURCE_IRQ, | ||
919 | }, | ||
920 | { | ||
921 | .start = CH_UART0_RX, | ||
922 | .end = CH_UART0_RX+1, | ||
923 | .flags = IORESOURCE_DMA, | ||
924 | }, | ||
925 | }; | ||
926 | |||
927 | static struct platform_device bfin_sir0_device = { | ||
928 | .name = "bfin_sir", | ||
929 | .id = 0, | ||
930 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
931 | .resource = bfin_sir0_resources, | ||
932 | }; | ||
915 | #endif | 933 | #endif |
916 | #ifdef CONFIG_BFIN_SIR1 | 934 | #ifdef CONFIG_BFIN_SIR1 |
935 | static struct resource bfin_sir1_resources[] = { | ||
917 | { | 936 | { |
918 | .start = 0xFFC02000, | 937 | .start = 0xFFC02000, |
919 | .end = 0xFFC020FF, | 938 | .end = 0xFFC020FF, |
920 | .flags = IORESOURCE_MEM, | 939 | .flags = IORESOURCE_MEM, |
921 | }, | 940 | }, |
922 | #endif | 941 | { |
942 | .start = IRQ_UART1_RX, | ||
943 | .end = IRQ_UART1_RX+1, | ||
944 | .flags = IORESOURCE_IRQ, | ||
945 | }, | ||
946 | { | ||
947 | .start = CH_UART1_RX, | ||
948 | .end = CH_UART1_RX+1, | ||
949 | .flags = IORESOURCE_DMA, | ||
950 | }, | ||
923 | }; | 951 | }; |
924 | 952 | ||
925 | static struct platform_device bfin_sir_device = { | 953 | static struct platform_device bfin_sir1_device = { |
926 | .name = "bfin_sir", | 954 | .name = "bfin_sir", |
927 | .id = 0, | 955 | .id = 1, |
928 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 956 | .num_resources = ARRAY_SIZE(bfin_sir1_resources), |
929 | .resource = bfin_sir_resources, | 957 | .resource = bfin_sir1_resources, |
930 | }; | 958 | }; |
931 | #endif | 959 | #endif |
960 | #endif | ||
932 | 961 | ||
933 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 962 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
934 | static struct resource bfin_twi0_resource[] = { | 963 | static struct resource bfin_twi0_resource[] = { |
@@ -1216,7 +1245,12 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
1216 | #endif | 1245 | #endif |
1217 | 1246 | ||
1218 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 1247 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
1219 | &bfin_sir_device, | 1248 | #ifdef CONFIG_BFIN_SIR0 |
1249 | &bfin_sir0_device, | ||
1250 | #endif | ||
1251 | #ifdef CONFIG_BFIN_SIR1 | ||
1252 | &bfin_sir1_device, | ||
1253 | #endif | ||
1220 | #endif | 1254 | #endif |
1221 | 1255 | ||
1222 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) | 1256 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |