GPIOLIB is disabled on the Agilex 5 Board, because it adds about 1k to the piggy data for barebox proper. During experiments, this added about 1k to the FSBL image, which pushed the size over some undocumented limit that prevented the board from booting.
Since there is no actual size check for the barebox image, there is no guarantee that the socfpga-agilex5_defconfig will result in an image that meets the size restriction. Therefore, some tuning of the config and disabling of various driver is required for some specific board, anyway. Enabling the GPIOLIB for one board will also enable it for all other boards, unless there is a dependency that GPIOLIB is disabled and makes board mutually exclusive. If the piggy data is removed from the FSBL and loaded as SSBL, the size of the piggy data is not restricted anymore, and the option has not drawback anymore. Therefore, select and enable GPIOLIB because its features are very useful, and not having it causes more trouble for questionable gain. Signed-off-by: Michael Tretter <[email protected]> --- arch/arm/mach-socfpga/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig index a836711e6c40..38b9ed4dfb39 100644 --- a/arch/arm/mach-socfpga/Kconfig +++ b/arch/arm/mach-socfpga/Kconfig @@ -30,6 +30,7 @@ config ARCH_SOCFPGA_AGILEX5 select FIRMWARE_AGILEX5_ATF select ARM_ATF select ARM_SMCCC + select GPIOLIB if 32BIT -- 2.47.3
