summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>2011-09-27 16:14:49 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:02:50 +0200
commite38029e2d7fce203cf2af29b24f0f487f475ac57 (patch)
tree011255f26b31e49d91fdeef2124babf3703471d8 /arch
parentfd0ba2d130f49f50be42c1ceb70c49e80daa0eac (diff)
ux500: gpio: move gpio base numbers to platform header
Gpio numbers starts with DB gpios followed by gpio-expander gpios and then AB gpios. Change-Id: Iba0d0c24d36278afeeaaffb509650b60084985b2 Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32346 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ux500/include/mach/gpio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/include/mach/gpio.h b/arch/arm/mach-ux500/include/mach/gpio.h
index 8571446b09b..6a9463dfd9c 100644
--- a/arch/arm/mach-ux500/include/mach/gpio.h
+++ b/arch/arm/mach-ux500/include/mach/gpio.h
@@ -14,4 +14,8 @@
#define NOMADIK_NR_GPIO 288
+#define MOP500_EGPIO(x) (NOMADIK_NR_GPIO + (x))
+#define MOP500_EGPIO_END MOP500_EGPIO(24)
+#define AB8500_GPIO_BASE MOP500_EGPIO_END
+
#endif /* __ASM_ARCH_GPIO_H */