diff options
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 15 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537.c | 15 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/tcm_bf537.c | 15 | ||||
-rw-r--r-- | arch/blackfin/mach-bf538/boards/ezkit.c | 15 | ||||
-rw-r--r-- | arch/blackfin/mach-bf548/boards/cm_bf548.c | 15 | ||||
-rw-r--r-- | arch/blackfin/mach-bf561/boards/cm_bf561.c | 15 |
6 files changed, 90 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c index 575843f6d9ef..411d4b84c39d 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 | { |
@@ -365,6 +378,8 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
365 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 378 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
366 | &bfin_spi0_device, | 379 | &bfin_spi0_device, |
367 | #endif | 380 | #endif |
381 | |||
382 | &bfin_gpios_device, | ||
368 | }; | 383 | }; |
369 | 384 | ||
370 | static int __init cm_bf533_init(void) | 385 | static int __init cm_bf533_init(void) |
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537.c b/arch/blackfin/mach-bf537/boards/cm_bf537.c index dde14720b0ea..f13556b22ff0 100644 --- a/arch/blackfin/mach-bf537/boards/cm_bf537.c +++ b/arch/blackfin/mach-bf537/boards/cm_bf537.c | |||
@@ -308,6 +308,19 @@ static struct platform_device net2272_bfin_device = { | |||
308 | }; | 308 | }; |
309 | #endif | 309 | #endif |
310 | 310 | ||
311 | static struct resource bfin_gpios_resources = { | ||
312 | .start = 0, | ||
313 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
314 | .flags = IORESOURCE_IRQ, | ||
315 | }; | ||
316 | |||
317 | static struct platform_device bfin_gpios_device = { | ||
318 | .name = "simple-gpio", | ||
319 | .id = -1, | ||
320 | .num_resources = 1, | ||
321 | .resource = &bfin_gpios_resources, | ||
322 | }; | ||
323 | |||
311 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) | 324 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) |
312 | static struct mtd_partition cm_partitions[] = { | 325 | static struct mtd_partition cm_partitions[] = { |
313 | { | 326 | { |
@@ -564,6 +577,8 @@ static struct platform_device *cm_bf537_devices[] __initdata = { | |||
564 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) | 577 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) |
565 | &cm_flash_device, | 578 | &cm_flash_device, |
566 | #endif | 579 | #endif |
580 | |||
581 | &bfin_gpios_device, | ||
567 | }; | 582 | }; |
568 | 583 | ||
569 | static int __init cm_bf537_init(void) | 584 | static int __init cm_bf537_init(void) |
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c index d5ff705a5129..f122c3c7158e 100644 --- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c +++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c | |||
@@ -308,6 +308,19 @@ static struct platform_device net2272_bfin_device = { | |||
308 | }; | 308 | }; |
309 | #endif | 309 | #endif |
310 | 310 | ||
311 | static struct resource bfin_gpios_resources = { | ||
312 | .start = 0, | ||
313 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
314 | .flags = IORESOURCE_IRQ, | ||
315 | }; | ||
316 | |||
317 | static struct platform_device bfin_gpios_device = { | ||
318 | .name = "simple-gpio", | ||
319 | .id = -1, | ||
320 | .num_resources = 1, | ||
321 | .resource = &bfin_gpios_resources, | ||
322 | }; | ||
323 | |||
311 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) | 324 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) |
312 | static struct mtd_partition cm_partitions[] = { | 325 | static struct mtd_partition cm_partitions[] = { |
313 | { | 326 | { |
@@ -564,6 +577,8 @@ static struct platform_device *cm_bf537_devices[] __initdata = { | |||
564 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) | 577 | #if defined(CONFIG_MTD_GPIO_ADDR) || defined(CONFIG_MTD_GPIO_ADDR_MODULE) |
565 | &cm_flash_device, | 578 | &cm_flash_device, |
566 | #endif | 579 | #endif |
580 | |||
581 | &bfin_gpios_device, | ||
567 | }; | 582 | }; |
568 | 583 | ||
569 | static int __init cm_bf537_init(void) | 584 | static int __init cm_bf537_init(void) |
diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-bf538/boards/ezkit.c index d7ce1dc50653..4b28261c66f5 100644 --- a/arch/blackfin/mach-bf538/boards/ezkit.c +++ b/arch/blackfin/mach-bf538/boards/ezkit.c | |||
@@ -434,6 +434,19 @@ static struct platform_device i2c_bfin_twi1_device = { | |||
434 | #endif | 434 | #endif |
435 | #endif | 435 | #endif |
436 | 436 | ||
437 | static struct resource bfin_gpios_resources = { | ||
438 | .start = 0, | ||
439 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
440 | .flags = IORESOURCE_IRQ, | ||
441 | }; | ||
442 | |||
443 | static struct platform_device bfin_gpios_device = { | ||
444 | .name = "simple-gpio", | ||
445 | .id = -1, | ||
446 | .num_resources = 1, | ||
447 | .resource = &bfin_gpios_resources, | ||
448 | }; | ||
449 | |||
437 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 450 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
438 | #include <linux/gpio_keys.h> | 451 | #include <linux/gpio_keys.h> |
439 | 452 | ||
@@ -520,6 +533,8 @@ static struct platform_device *cm_bf538_devices[] __initdata = { | |||
520 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 533 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
521 | &bfin_device_gpiokeys, | 534 | &bfin_device_gpiokeys, |
522 | #endif | 535 | #endif |
536 | |||
537 | &bfin_gpios_device, | ||
523 | }; | 538 | }; |
524 | 539 | ||
525 | static int __init ezkit_init(void) | 540 | static int __init ezkit_init(void) |
diff --git a/arch/blackfin/mach-bf548/boards/cm_bf548.c b/arch/blackfin/mach-bf548/boards/cm_bf548.c index 5857f3d7e515..d0065c37795e 100644 --- a/arch/blackfin/mach-bf548/boards/cm_bf548.c +++ b/arch/blackfin/mach-bf548/boards/cm_bf548.c | |||
@@ -303,6 +303,19 @@ static struct platform_device musb_device = { | |||
303 | }; | 303 | }; |
304 | #endif | 304 | #endif |
305 | 305 | ||
306 | static struct resource bfin_gpios_resources = { | ||
307 | .start = 0, | ||
308 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
309 | .flags = IORESOURCE_IRQ, | ||
310 | }; | ||
311 | |||
312 | static struct platform_device bfin_gpios_device = { | ||
313 | .name = "simple-gpio", | ||
314 | .id = -1, | ||
315 | .num_resources = 1, | ||
316 | .resource = &bfin_gpios_resources, | ||
317 | }; | ||
318 | |||
306 | #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) | 319 | #if defined(CONFIG_PATA_BF54X) || defined(CONFIG_PATA_BF54X_MODULE) |
307 | static struct resource bfin_atapi_resources[] = { | 320 | static struct resource bfin_atapi_resources[] = { |
308 | { | 321 | { |
@@ -733,6 +746,8 @@ static struct platform_device *cm_bf548_devices[] __initdata = { | |||
733 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | 746 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) |
734 | ¶_flash_device, | 747 | ¶_flash_device, |
735 | #endif | 748 | #endif |
749 | |||
750 | &bfin_gpios_device, | ||
736 | }; | 751 | }; |
737 | 752 | ||
738 | static int __init cm_bf548_init(void) | 753 | static int __init cm_bf548_init(void) |
diff --git a/arch/blackfin/mach-bf561/boards/cm_bf561.c b/arch/blackfin/mach-bf561/boards/cm_bf561.c index 8f40990eea2f..2ba5975790e9 100644 --- a/arch/blackfin/mach-bf561/boards/cm_bf561.c +++ b/arch/blackfin/mach-bf561/boards/cm_bf561.c | |||
@@ -230,6 +230,19 @@ static struct platform_device smc91x_device = { | |||
230 | }; | 230 | }; |
231 | #endif | 231 | #endif |
232 | 232 | ||
233 | static struct resource bfin_gpios_resources = { | ||
234 | .start = 0, | ||
235 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
236 | .flags = IORESOURCE_IRQ, | ||
237 | }; | ||
238 | |||
239 | static struct platform_device bfin_gpios_device = { | ||
240 | .name = "simple-gpio", | ||
241 | .id = -1, | ||
242 | .num_resources = 1, | ||
243 | .resource = &bfin_gpios_resources, | ||
244 | }; | ||
245 | |||
233 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | 246 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) |
234 | static struct resource isp1362_hcd_resources[] = { | 247 | static struct resource isp1362_hcd_resources[] = { |
235 | { | 248 | { |
@@ -400,6 +413,8 @@ static struct platform_device *cm_bf561_devices[] __initdata = { | |||
400 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | 413 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) |
401 | &bfin_pata_device, | 414 | &bfin_pata_device, |
402 | #endif | 415 | #endif |
416 | |||
417 | &bfin_gpios_device, | ||
403 | }; | 418 | }; |
404 | 419 | ||
405 | static int __init cm_bf561_init(void) | 420 | static int __init cm_bf561_init(void) |