aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf548
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2009-01-07 10:14:38 -0500
committerBryan Wu <cooloney@kernel.org>2009-01-07 10:14:38 -0500
commitc97618d3b7b8ef86a966c4b67b54e5ca15814905 (patch)
treefb25aaa978f3fe17fe81b61686442d4de7602119 /arch/blackfin/mach-bf548
parent9570ff4af6920c5992eb91141d71fc94127d864b (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-bf548')
-rw-r--r--arch/blackfin/mach-bf548/boards/cm_bf548.c15
1 files changed, 15 insertions, 0 deletions
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
306static struct resource bfin_gpios_resources = {
307 .start = 0,
308 .end = MAX_BLACKFIN_GPIOS - 1,
309 .flags = IORESOURCE_IRQ,
310};
311
312static 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)
307static struct resource bfin_atapi_resources[] = { 320static 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 &para_flash_device, 747 &para_flash_device,
735#endif 748#endif
749
750 &bfin_gpios_device,
736}; 751};
737 752
738static int __init cm_bf548_init(void) 753static int __init cm_bf548_init(void)