diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-02-22 04:01:31 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-02-22 04:01:31 -0500 |
commit | cad2ab65dd1c7d65153ffccd71c90db028fd62f0 (patch) | |
tree | 3c3e7659ac41977a281bfa936a33f85954669287 /arch/blackfin/mach-bf527 | |
parent | edf056417d11fe9321ec15a55bd128e4f4c73796 (diff) |
[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-bf527')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index a28d5df20d71..770056b0e68b 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -818,6 +818,19 @@ static struct platform_device bfin_device_gpiokeys = { | |||
818 | }; | 818 | }; |
819 | #endif | 819 | #endif |
820 | 820 | ||
821 | static struct resource bfin_gpios_resources = { | ||
822 | .start = 0, | ||
823 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
824 | .flags = IORESOURCE_IRQ, | ||
825 | }; | ||
826 | |||
827 | static struct platform_device bfin_gpios_device = { | ||
828 | .name = "simple-gpio", | ||
829 | .id = -1, | ||
830 | .num_resources = 1, | ||
831 | .resource = &bfin_gpios_resources, | ||
832 | }; | ||
833 | |||
821 | static struct platform_device *stamp_devices[] __initdata = { | 834 | static struct platform_device *stamp_devices[] __initdata = { |
822 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) | 835 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) |
823 | &bf5xx_nand_device, | 836 | &bf5xx_nand_device, |
@@ -895,6 +908,8 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
895 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 908 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
896 | &bfin_device_gpiokeys, | 909 | &bfin_device_gpiokeys, |
897 | #endif | 910 | #endif |
911 | |||
912 | &bfin_gpios_device, | ||
898 | }; | 913 | }; |
899 | 914 | ||
900 | static int __init stamp_init(void) | 915 | static int __init stamp_init(void) |