projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d24123b
)
[ARM] mmp: configure gpio pins from 128 to 192
author
Haojian Zhuang
<haojian.zhuang@marvell.com>
Wed, 28 Apr 2010 15:43:00 +0000
(11:43 -0400)
committer
Eric Miao
<eric.y.miao@gmail.com>
Tue, 11 May 2010 15:25:05 +0000
(17:25 +0200)
In mmp2, 6 banks of GPIO registers are supported. So we can support 192
GPIO pins at most.
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-mmp/include/mach/gpio.h
patch
|
blob
|
history
diff --git
a/arch/arm/mach-mmp/include/mach/gpio.h
b/arch/arm/mach-mmp/include/mach/gpio.h
index
ab26d13
..
ee8b02e
100644
(file)
--- a/
arch/arm/mach-mmp/include/mach/gpio.h
+++ b/
arch/arm/mach-mmp/include/mach/gpio.h
@@
-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 (1
28
)
+#define NR_BUILTIN_GPIO (1
92
)
#define gpio_to_bank(gpio) ((gpio) >> 5)
#define gpio_to_irq(gpio) (IRQ_GPIO_START + (gpio))