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-bf533 | |
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-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 = { | |||
219 | }; | 219 | }; |
220 | #endif | 220 | #endif |
221 | 221 | ||
222 | static struct resource bfin_gpios_resources = { | ||
223 | .start = 0, | ||
224 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
225 | .flags = IORESOURCE_IRQ, | ||
226 | }; | ||
227 | |||
228 | static struct platform_device bfin_gpios_device = { | ||
229 | .name = "simple-gpio", | ||
230 | .id = -1, | ||
231 | .num_resources = 1, | ||
232 | .resource = &bfin_gpios_resources, | ||
233 | }; | ||
234 | |||
222 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 235 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
223 | static struct resource bfin_uart_resources[] = { | 236 | static struct resource bfin_uart_resources[] = { |
224 | { | 237 | { |
@@ -365,6 +378,8 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
365 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 378 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
366 | &bfin_spi0_device, | 379 | &bfin_spi0_device, |
367 | #endif | 380 | #endif |
381 | |||
382 | &bfin_gpios_device, | ||
368 | }; | 383 | }; |
369 | 384 | ||
370 | static int __init cm_bf533_init(void) | 385 | static int __init cm_bf533_init(void) |