mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Michael Tretter <m.tretter@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
	 BAREBOX <barebox@lists.infradead.org>
Cc: Michael Tretter <m.tretter@pengutronix.de>
Subject: [PATCH 1/2] arm: socfpga: agilex5: select GPIOLIB
Date: Wed, 07 Oct 2026 16:57:15 +0200	[thread overview]
Message-ID: <20261007-socfpga-agilex5-gpiolib-v1-1-a2911b434fc0@pengutronix.de> (raw)
In-Reply-To: <20261007-socfpga-agilex5-gpiolib-v1-0-a2911b434fc0@pengutronix.de>

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 <m.tretter@pengutronix.de>
---
 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




  reply	other threads:[~2026-10-07 14:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-07 14:57 [PATCH 0/2] arm: socfpga: agilex5: remove custom GPIO toggle Michael Tretter
2026-10-07 14:57 ` Michael Tretter [this message]
2026-10-07 14:57 ` [PATCH 2/2] arm: socfpga: axe5-eagle: drop hard-coded PHY reset in board code Michael Tretter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261007-socfpga-agilex5-gpiolib-v1-1-a2911b434fc0@pengutronix.de \
    --to=m.tretter@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox