[PATCH 07/11] arm: socfpga: agilex5: enable xload for bl33

Michael Tretter m.tretter at pengutronix.de
Wed Oct 7 03:55:52 PDT 2026


If SSBL loading is configured, barebox shall prefer the SSBL over the
running FSBL.

This may be surprising, if the FSBL is updated, but since the SSBL is
probably easier to update, preferring the SSBL is probably the more
useful behavior.

Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
 arch/arm/mach-socfpga/atf.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-socfpga/atf.c b/arch/arm/mach-socfpga/atf.c
index 4bf13a464657..6d036d20d4b6 100644
--- a/arch/arm/mach-socfpga/atf.c
+++ b/arch/arm/mach-socfpga/atf.c
@@ -58,6 +58,10 @@ static void agilex5_load_bl33(struct pbl_bio *bio, void *bl33)
 {
 	int ret;
 
+	ret = agilex5_xload_bl33(bio, bl33);
+	if (ret == 0)
+		return;
+
 	ret = agilex5_load_bl33_piggy(bl33);
 	if (ret == 0)
 		return;

-- 
2.47.3




More information about the barebox mailing list