Skip to content

Commit 5028fba

Browse files
marcanctmarinas
authored andcommitted
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 <[email protected]> Acked-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 48e6f22 commit 5028fba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/arm64/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,18 @@ config STACKPROTECTOR_PER_TASK
20412041
def_bool y
20422042
depends on STACKPROTECTOR && CC_HAVE_STACKPROTECTOR_SYSREG
20432043

2044+
# The GPIO number here must be sorted by descending number. In case of
2045+
# a multiplatform kernel, we just want the highest value required by the
2046+
# selected platforms.
2047+
config ARCH_NR_GPIO
2048+
int
2049+
default 2048 if ARCH_APPLE
2050+
default 0
2051+
help
2052+
Maximum number of GPIOs in the system.
2053+
2054+
If unsure, leave the default value.
2055+
20442056
endmenu
20452057

20462058
menu "Boot options"

0 commit comments

Comments
 (0)