summaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorHector Martin <marcan@marcan.st>2022-05-02 11:14:27 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2022-05-04 17:33:48 +0200
commit5028fbad2d57910e8c776ba1c868da0e4f64978f (patch)
tree5c55d31a06e91d70ca421b1518aad9729c7cf006 /arch/arm64/Kconfig
parentarm64: cputype: Avoid overflow using MIDR_IMPLEMENTOR_MASK (diff)
downloadlinux-5028fbad2d57910e8c776ba1c868da0e4f64978f.tar.xz
linux-5028fbad2d57910e8c776ba1c868da0e4f64978f.zip
arm64: Set ARCH_NR_GPIO to 2048 for ARCH_APPLE
We're already running into the 512 GPIO limit on t600[01] depending on how many SMC GPIOs we allocate, and a 2-die version could double that. Let's make it 2K to be safe for now. Signed-off-by: Hector Martin <marcan@marcan.st> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220502091427.28416-1-marcan@marcan.st Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r--arch/arm64/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 57c4c995965f..764433588fdd 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -2041,6 +2041,18 @@ config STACKPROTECTOR_PER_TASK
def_bool y
depends on STACKPROTECTOR && CC_HAVE_STACKPROTECTOR_SYSREG
+# The GPIO number here must be sorted by descending number. In case of
+# a multiplatform kernel, we just want the highest value required by the
+# selected platforms.
+config ARCH_NR_GPIO
+ int
+ default 2048 if ARCH_APPLE
+ default 0
+ help
+ Maximum number of GPIOs in the system.
+
+ If unsure, leave the default value.
+
endmenu
menu "Boot options"