diff options
author | Magnus Damm <damm@opensource.se> | 2012-05-16 15:45:34 +0900 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-05-18 00:14:02 +0200 |
commit | 088efd9273b5076a0aead479aa31f1066d182b3e (patch) | |
tree | 17f7972d2134719a36d9527cfeea154fca409b24 /arch/arm/mach-shmobile/include | |
parent | bd5a875d90c878be4d23f54ea565253734ae2377 (diff) | |
download | linux-088efd9273b5076a0aead479aa31f1066d182b3e.tar.gz linux-088efd9273b5076a0aead479aa31f1066d182b3e.tar.bz2 linux-088efd9273b5076a0aead479aa31f1066d182b3e.zip |
mach-shmobile: Emma Mobile EV2 GPIO support V3
Tie in the Emma Mobile GPIO driver "em-gio" to
support the GPIOs on Emma Mobile EV2.
A static IRQ range is used to allow boards to
hook up their platform devices to the GPIOs.
DT support is still on the TODO for the GPIO driver,
so only platform device support is included here.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/include')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/emev2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/emev2.h b/arch/arm/mach-shmobile/include/mach/emev2.h index 3fc718419854..e6b0c1bf4b7e 100644 --- a/arch/arm/mach-shmobile/include/mach/emev2.h +++ b/arch/arm/mach-shmobile/include/mach/emev2.h @@ -13,4 +13,7 @@ extern void emev2_secondary_init(unsigned int cpu); extern int emev2_boot_secondary(unsigned int cpu); extern void emev2_smp_prepare_cpus(void); +#define EMEV2_GPIO_BASE 200 +#define EMEV2_GPIO_IRQ(n) (EMEV2_GPIO_BASE + (n)) + #endif /* __ASM_EMEV2_H__ */ |