diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/cm_bf533.c')
| -rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c index 575843f6d9ef..e7061c7e8c42 100644 --- a/arch/blackfin/mach-bf533/boards/cm_bf533.c +++ b/arch/blackfin/mach-bf533/boards/cm_bf533.c | |||
| @@ -219,6 +219,19 @@ static struct platform_device smc91x_device = { | |||
| 219 | }; | 219 | }; |
| 220 | #endif | 220 | #endif |
| 221 | 221 | ||
| 222 | static struct resource bfin_gpios_resources = { | ||
| 223 | .start = 0, | ||
| 224 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
| 225 | .flags = IORESOURCE_IRQ, | ||
| 226 | }; | ||
| 227 | |||
| 228 | static struct platform_device bfin_gpios_device = { | ||
| 229 | .name = "simple-gpio", | ||
| 230 | .id = -1, | ||
| 231 | .num_resources = 1, | ||
| 232 | .resource = &bfin_gpios_resources, | ||
| 233 | }; | ||
| 234 | |||
| 222 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 235 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
| 223 | static struct resource bfin_uart_resources[] = { | 236 | static struct resource bfin_uart_resources[] = { |
| 224 | { | 237 | { |
| @@ -237,23 +250,33 @@ static struct platform_device bfin_uart_device = { | |||
| 237 | #endif | 250 | #endif |
| 238 | 251 | ||
| 239 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 252 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
| 240 | static struct resource bfin_sir_resources[] = { | ||
| 241 | #ifdef CONFIG_BFIN_SIR0 | 253 | #ifdef CONFIG_BFIN_SIR0 |
| 254 | static struct resource bfin_sir0_resources[] = { | ||
| 242 | { | 255 | { |
| 243 | .start = 0xFFC00400, | 256 | .start = 0xFFC00400, |
| 244 | .end = 0xFFC004FF, | 257 | .end = 0xFFC004FF, |
| 245 | .flags = IORESOURCE_MEM, | 258 | .flags = IORESOURCE_MEM, |
| 246 | }, | 259 | }, |
| 247 | #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 | }, | ||
| 248 | }; | 270 | }; |
| 249 | 271 | ||
| 250 | static struct platform_device bfin_sir_device = { | 272 | static struct platform_device bfin_sir0_device = { |
| 251 | .name = "bfin_sir", | 273 | .name = "bfin_sir", |
| 252 | .id = 0, | 274 | .id = 0, |
| 253 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 275 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
| 254 | .resource = bfin_sir_resources, | 276 | .resource = bfin_sir0_resources, |
| 255 | }; | 277 | }; |
| 256 | #endif | 278 | #endif |
| 279 | #endif | ||
| 257 | 280 | ||
| 258 | #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) |
| 259 | static struct platform_device bfin_sport0_uart_device = { | 282 | static struct platform_device bfin_sport0_uart_device = { |
| @@ -342,7 +365,9 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
| 342 | #endif | 365 | #endif |
| 343 | 366 | ||
| 344 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 367 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
| 345 | &bfin_sir_device, | 368 | #ifdef CONFIG_BFIN_SIR0 |
| 369 | &bfin_sir0_device, | ||
| 370 | #endif | ||
| 346 | #endif | 371 | #endif |
| 347 | 372 | ||
| 348 | #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) |
| @@ -365,6 +390,8 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
| 365 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 390 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
| 366 | &bfin_spi0_device, | 391 | &bfin_spi0_device, |
| 367 | #endif | 392 | #endif |
| 393 | |||
| 394 | &bfin_gpios_device, | ||
| 368 | }; | 395 | }; |
| 369 | 396 | ||
| 370 | static int __init cm_bf533_init(void) | 397 | static int __init cm_bf533_init(void) |
