projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dca334
)
ARM: 6200/1: AT91: Define NR_BUILTIN_GPIO
author
Ryan Mallon
<ryan@bluewatersys.com>
Mon, 28 Jun 2010 21:03:25 +0000
(22:03 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Fri, 9 Jul 2010 11:31:51 +0000
(12:31 +0100)
Add definition for NR_BUILTIN_GPIO for AT91 family
Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91/include/mach/gpio.h
patch
|
blob
|
history
diff --git
a/arch/arm/mach-at91/include/mach/gpio.h
b/arch/arm/mach-at91/include/mach/gpio.h
index 04c91e31c9c5be8a7c20ca5a31b6ebef99963f89..bfdd8ab26dc8a2399a379058df2e9a04f41c2888 100644
(file)
--- a/
arch/arm/mach-at91/include/mach/gpio.h
+++ b/
arch/arm/mach-at91/include/mach/gpio.h
@@
-19,6
+19,7
@@
#define PIN_BASE NR_AIC_IRQS
#define MAX_GPIO_BANKS 5
+#define NR_BUILTIN_GPIO (PIN_BASE + (MAX_GPIO_BANKS * 32))
/* these pin numbers double as IRQ numbers, like AT91xxx_ID_* values */