Skip to contentSkip to conversation

ARM: hip04: set ARCH_NR_GPIO to 128

PATCH Superseded Zhou Wang 1 participant 3 messages Apr 23, 2014 – May 13, 2014 Arm (32-bit)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Zhou Wang

author
#0 lore raw

PATCH 1/2 ARM: hip04: set ARCH_NR_GPIO to 128

set ARCH_NR_GPIO for Hisilicon Soc hip04, which has 4 GPIO controllers with 32 GPIOs each.

---
 arch/arm/Kconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
index 2961627..bb00e65 100644
@@ -1664,6 +1664,7 @@ config ARCH_NR_GPIO
 	default 352 if ARCH_VT8500
 	default 288 if ARCH_SUNXI
 	default 264 if MACH_H4700
+	default 128 if ARCH_HIP04
 	default 0
 	help
 	  Maximum number of GPIOs in the system.

-- 1.7.9.5

author
#1 lore raw
Quoted 14 lines · Zhou Wang

set ARCH_NR_GPIO for Hisilicon Soc hip04, which has 4 GPIO controllers with 32 GPIOs each.

---
 arch/arm/Kconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +0 -0
index 2961627..bb00e65 100644

arch/arm/Kconfig config ARCH_NR_GPIO

Quoted 8 lines
arch/arm/Kconfig +1 -1
@@ -1664,6 +1664,7 @@ config ARCH_NR_GPIO
 	default 352 if ARCH_VT8500
 	default 288 if ARCH_SUNXI
 	default 264 if MACH_H4700
+	default 128 if ARCH_HIP04
 	default 0
 	help
 	  Maximum number of GPIOs in the system.
-- 1.7.9.5

Hi Russell

Is there anything I should pay attention to about this patch?

Best regards
Zhou Wang

author
#2 lore raw
Quoted 25 lines · Zhou Wang
Quoted 14 lines · Zhou Wang

set ARCH_NR_GPIO for Hisilicon Soc hip04, which has 4 GPIO controllers with 32 GPIOs each.

---
 arch/arm/Kconfig |    1 +
 1 file changed, 1 insertion(+)
arch/arm/Kconfig +0 -0
index 2961627..bb00e65 100644

arch/arm/Kconfig config ARCH_NR_GPIO

Quoted 8 lines
arch/arm/Kconfig +1 -1
@@ -1664,6 +1664,7 @@ config ARCH_NR_GPIO
 	default 352 if ARCH_VT8500
 	default 288 if ARCH_SUNXI
 	default 264 if MACH_H4700
+	default 128 if ARCH_HIP04
 	default 0
 	help
 	  Maximum number of GPIOs in the system.
-- 1.7.9.5

Hi Russell

Quoted 5 lines

Is there anything I should pay attention to about this patch?

Best regards
Zhou Wang

Hi Russell,

Would you like to apply this patch? if there is some problem ,please tell me.

Best regards,
Zhou Wang