aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/gpio-em.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2012-05-17 15:22:23 +0900
committerRafael J. Wysocki <rjw@sisk.pl>2012-05-18 00:00:45 +0200
commita07e103ef08c6907d695a06467d7ee950796fccf (patch)
tree9670ebf990788fc46bd8ac3648b01eb8846bdc23 /include/linux/platform_data/gpio-em.h
parentARM: mach-shmobile: sh73a0: fixup PINT/IRQ16-IRQ31 irq number conflict (diff)
downloadlinux-dev-a07e103ef08c6907d695a06467d7ee950796fccf.tar.xz
linux-dev-a07e103ef08c6907d695a06467d7ee950796fccf.zip
gpio: Emma Mobile GPIO driver V2
This patch is V2 of the Emma Mobile GPIO driver. This driver is designed to be reusable between multiple SoCs that share the same basic building block, but so far it has only been used on Emma Mobile EV2. Each driver instance handles 32 GPIOs with individually maskable IRQs. The driver operates on two I/O memory ranges and the 32 GPIOs are hooked up to two interrupts. In the case of Emma Mobile EV2 this GPIO building block is used as main external interrupt controller hooking up 159 GPIOS as 159 interrupts via 5 driver instances and 10 interrupts to the GIC and the Cortex-A9 Dual. Signed-off-by: Magnus Damm <damm@opensource.se> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/platform_data/gpio-em.h')
-rw-r--r--include/linux/platform_data/gpio-em.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/platform_data/gpio-em.h b/include/linux/platform_data/gpio-em.h
new file mode 100644
index 000000000000..573edfb046c4
--- /dev/null
+++ b/include/linux/platform_data/gpio-em.h
@@ -0,0 +1,10 @@
+#ifndef __GPIO_EM_H__
+#define __GPIO_EM_H__
+
+struct gpio_em_config {
+ unsigned int gpio_base;
+ unsigned int irq_base;
+ unsigned int number_of_pins;
+};
+
+#endif /* __GPIO_EM_H__ */