diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-02-22 10:01:31 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-02-22 10:01:31 +0100 |
commit | cad2ab65dd1c7d65153ffccd71c90db028fd62f0 (patch) | |
tree | 3c3e7659ac41977a281bfa936a33f85954669287 /arch/blackfin/mach-bf533/boards/ezkit.c | |
parent | [Blackfin] arch: fix bug - set right partition size in the board files (diff) | |
download | linux-cad2ab65dd1c7d65153ffccd71c90db028fd62f0.tar.xz linux-cad2ab65dd1c7d65153ffccd71c90db028fd62f0.zip |
[Blackfin] arch: add board resources for new simple-gpio char driver
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ezkit.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf533/boards/ezkit.c b/arch/blackfin/mach-bf533/boards/ezkit.c index 73f76af73e96..241b5a20a36a 100644 --- a/arch/blackfin/mach-bf533/boards/ezkit.c +++ b/arch/blackfin/mach-bf533/boards/ezkit.c @@ -298,6 +298,19 @@ static struct platform_device bfin_device_gpiokeys = { }; #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_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) #include <linux/i2c-gpio.h> @@ -350,6 +363,8 @@ static struct platform_device *ezkit_devices[] __initdata = { #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE) &i2c_gpio_device, #endif + + &bfin_gpios_device, }; static int __init ezkit_init(void) |