diff options
author | Mike Rapoport <mike@compulab.co.il> | 2010-11-15 12:48:32 +0300 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2010-12-15 18:32:12 +0300 |
commit | 8d4ce4cd7480ccd8412d4391d063733d6fc52f5c (patch) | |
tree | 2af05a1ba982f596931de726805850e5c227b1dd /arch/arm/mach-dove/include/mach/gpio.h | |
parent | ce56d169976488e888878eed5f1bc304cf116c43 (diff) | |
download | linux-8d4ce4cd7480ccd8412d4391d063733d6fc52f5c.tar.xz |
[ARM] Dove: add support for GPIOs 64-71
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/mach-dove/include/mach/gpio.h')
-rw-r--r-- | arch/arm/mach-dove/include/mach/gpio.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-dove/include/mach/gpio.h b/arch/arm/mach-dove/include/mach/gpio.h index 0ee70ff39e11..340bb7af529d 100644 --- a/arch/arm/mach-dove/include/mach/gpio.h +++ b/arch/arm/mach-dove/include/mach/gpio.h @@ -14,12 +14,14 @@ #include <plat/gpio.h> #include <asm-generic/gpio.h> /* cansleep wrappers */ -#define GPIO_MAX 64 +#define GPIO_MAX 72 #define GPIO_BASE_LO (DOVE_GPIO_VIRT_BASE + 0x00) #define GPIO_BASE_HI (DOVE_GPIO_VIRT_BASE + 0x20) -#define GPIO_BASE(pin) ((pin < 32) ? GPIO_BASE_LO : GPIO_BASE_HI) +#define GPIO_BASE(pin) ((pin < 32) ? GPIO_BASE_LO : \ + ((pin < 64) ? GPIO_BASE_HI : \ + DOVE_GPIO2_VIRT_BASE)) #define GPIO_OUT(pin) (GPIO_BASE(pin) + 0x00) #define GPIO_IO_CONF(pin) (GPIO_BASE(pin) + 0x04) |