Commit 5028fbad authored by Hector Martin's avatar Hector Martin Committed by Catalin Marinas
Browse files

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: default avatarHector Martin <marcan@marcan.st>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220502091427.28416-1-marcan@marcan.st


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 48e6f22e
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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"