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 <[email protected]>
---
 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


Reply via email to