[PATCH v2] pxa/hx4700: Fix PXA_GPIO_IRQ_BASE/IRQ_NUM values

Paul Parsons lost.distance at yahoo.com
Mon Jan 30 18:42:25 EST 2012


The hx4700 platform has 70 board gpios: 64 ASIC3 gpios numbered 192..255, and
8 EGPIO gpios numbered 256..263 (plus a 9th which is not used).
Thus the new CONFIG_ARCH_NR_GPIO config option must be set to 264.

Signed-off-by: Paul Parsons <lost.distance at yahoo.com>
---

V2:
Use new CONFIG_ARCH_NR_GPIO config option instead of modifying PXA_GPIO_IRQ_BASE
and PXA_GPIO_IRQ_NUM #defines.
Rebased to linux-3.3-rc1.

diff -ru clean-3.3-rc1/arch/arm/Kconfig linux-3.3-rc1/arch/arm/Kconfig
--- clean-3.3-rc1/arch/arm/Kconfig	2012-01-19 23:04:48.000000000 +0000
+++ linux-3.3-rc1/arch/arm/Kconfig	2012-01-30 17:11:35.897518763 +0000
@@ -1580,6 +1580,7 @@
 	int
 	default 1024 if ARCH_SHMOBILE || ARCH_TEGRA
 	default 350 if ARCH_U8500
+	default 264 if MACH_H4700
 	default 0
 	help
 	  Maximum number of GPIOs in the system.




More information about the linux-arm-kernel mailing list