mmp: configure gpio pins from 128 to 192
Subsystems (3)
PATCH 1/1 mmp: configure gpio pins from 128 to 192
In mmp2, 6 banks of GPIO registers are supported. So we can support 192 GPIO pins at most.
Signed-off-by Haojian Zhuang <[email protected]>
--- arch/arm/mach-mmp/include/mach/gpio.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0
b/arch/arm/mach-mmp/include/mach/gpio.h
index ab26d13..ee8b02e 100644
arch/arm/mach-mmp/include/mach/gpio.h +1 -1
@@ -10,7 +10,7 @@#define BANK_OFF (n) (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))#define GPIO_REG (x) (*((volatile u32 *)(GPIO_REGS_VIRT + (x)))) -#define NR_BUILTIN_GPIO (128) +#define NR_BUILTIN_GPIO (192)#define gpio_to_bank (gpio) ((gpio) >> 5)#define gpio_to_irq (gpio) (IRQ_GPIO_START + (gpio))
Signature · 1 line
1.5.6.5