diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2009-01-07 10:14:38 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:38 -0500 |
commit | c97618d3b7b8ef86a966c4b67b54e5ca15814905 (patch) | |
tree | fb25aaa978f3fe17fe81b61686442d4de7602119 /arch/blackfin/mach-bf538 | |
parent | 9570ff4af6920c5992eb91141d71fc94127d864b (diff) |
Blackfin arch: add simple-gpio resources to all adi/tinyboards
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf538')
-rw-r--r-- | arch/blackfin/mach-bf538/boards/ezkit.c | 15 |
1 files changed, 15 insertions, 0 deletions
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) |