diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2009-01-07 16:14:38 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 16:14:38 +0100 |
commit | c97618d3b7b8ef86a966c4b67b54e5ca15814905 (patch) | |
tree | fb25aaa978f3fe17fe81b61686442d4de7602119 /arch/blackfin/mach-bf533 | |
parent | Blackfin arch: Allow a gpio pin be requested both as gpio and irq. (diff) | |
download | linux-c97618d3b7b8ef86a966c4b67b54e5ca15814905.tar.xz linux-c97618d3b7b8ef86a966c4b67b54e5ca15814905.zip |
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-bf533')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 15 |
1 files changed, 15 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 = { }; #endif +static struct resource bfin_gpios_resources = { + .start = 0, + .end = MAX_BLACKFIN_GPIOS - 1, + .flags = IORESOURCE_IRQ, +}; + +static struct platform_device bfin_gpios_device = { + .name = "simple-gpio", + .id = -1, + .num_resources = 1, + .resource = &bfin_gpios_resources, +}; + #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) static struct resource bfin_uart_resources[] = { { @@ -365,6 +378,8 @@ static struct platform_device *cm_bf533_devices[] __initdata = { #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) &bfin_spi0_device, #endif + + &bfin_gpios_device, }; static int __init cm_bf533_init(void) |