Skip to content

Commit d7109fe

Browse files
andy-shevKAGA-KOKO
authored andcommitted
x86/platform: Increase maximum GPIO number for X86_64
By default the 512 GPIOs is the maximum on any x86 platform. With, for example, Intel Tiger Lake-H the SoC based controller occupies up to 480 pins. This leaves only 32 available for GPIO expanders or other drivers, like PMIC. Hence, bump the maximum GPIO number to 1024 for X86_64 and leave 512 for X86_32. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Reviewed-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent aeef8b5 commit d7109fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/x86/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,11 @@ config NEED_PER_CPU_PAGE_FIRST_CHUNK
340340
config ARCH_HIBERNATION_POSSIBLE
341341
def_bool y
342342

343+
config ARCH_NR_GPIO
344+
int
345+
default 1024 if X86_64
346+
default 512
347+
343348
config ARCH_SUSPEND_POSSIBLE
344349
def_bool y
345350

0 commit comments

Comments
 (0)