]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: ASPEED: update default ARCH_NR_GPIO for ARCH_ASPEED
authorTao Ren <rentao.bupt@gmail.com>
Thu, 31 Oct 2019 01:40:40 +0000 (18:40 -0700)
committerOlof Johansson <olof@lixom.net>
Mon, 4 Nov 2019 01:00:07 +0000 (17:00 -0800)
Increase the max number of GPIOs from default 512 to 1024 for ASPEED
platforms, because Facebook Yamp (AST2500) BMC platform has total 594
GPIO pins (232 provided by ASPEED SoC, and 362 by I/O Expanders).

Link: https://lore.kernel.org/r/20191031014040.12898-1-rentao.bupt@gmail.com
Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/Kconfig

index 8a50efb559f35a2c75f6fa379f34e4580e6c5a8d..074bc2113d3659dc27c1f8c668723a12bfcadce0 100644 (file)
@@ -1359,7 +1359,7 @@ config ARCH_NR_GPIO
        int
        default 2048 if ARCH_SOCFPGA
        default 1024 if ARCH_BRCMSTB || ARCH_RENESAS || ARCH_TEGRA || \
-               ARCH_ZYNQ
+               ARCH_ZYNQ || ARCH_ASPEED
        default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5 || \
                SOC_DRA7XX || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
        default 416 if ARCH_SUNXI