Skip to content

Commit

Permalink
x86/platform: Increase maximum GPIO number for X86_64
Browse files Browse the repository at this point in the history
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20210826150317.29435-1-andriy.shevchenko@linux.intel.com
  • Loading branch information
andy-shev authored and KAGA-KOKO committed Sep 2, 2021
1 parent aeef8b5 commit d7109fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,11 @@ config NEED_PER_CPU_PAGE_FIRST_CHUNK
config ARCH_HIBERNATION_POSSIBLE
def_bool y

config ARCH_NR_GPIO
int
default 1024 if X86_64
default 512

config ARCH_SUSPEND_POSSIBLE
def_bool y

Expand Down

0 comments on commit d7109fe

Please sign in to comment.