summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-07-10 22:11:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-07-15 08:41:39 +0200
commiteab3467da7f5aa36b4ea4c5e119d1de74dd18fc4 (patch)
tree7a5cf6bf974cc59990013ebc27d24d86fddeec25
parent20f2c4ee27955bb43a629715de9734211885adf1 (diff)
downloadbarebox-eab3467da7f5aa36b4ea4c5e119d1de74dd18fc4.tar.gz
barebox-eab3467da7f5aa36b4ea4c5e119d1de74dd18fc4.tar.xz
ARM: stm32mp: set CONFIG_ARCH_NR_GPIO = (26 * 16)
The STM32MP1 GPIO bindings uses the range [400; 415] for the gpioz controller, which exceeds the barebox-wide ARCH_NR_GPIOS of 256. Therefore have the stm32mp define a subarch-specific max of 416. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-stm32mp/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
index be16294f5a..3bb8eb0096 100644
--- a/arch/arm/mach-stm32mp/Kconfig
+++ b/arch/arm/mach-stm32mp/Kconfig
@@ -1,5 +1,9 @@
if ARCH_STM32MP
+config ARCH_NR_GPIO
+ int
+ default 416
+
config ARCH_STM32MP1157
bool