[PATCH 4/5] spl: call ft_board_setup() and ft_system_setup() if enabled
Francesco Valla
francesco at valla.it
Tue Apr 28 22:24:45 CEST 2026
If board and system FDT setups are enabled by the corresponding
configuration options, perform them also in SPL. This aligns the
behavior of FIT loading from SPL and U-Boot proper in this aspect,
reducing the need for custom code in falcon boot setups.
Signed-off-by: Francesco Valla <francesco at valla.it>
---
common/spl/spl.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 722b18c98edc..a09ebac62c2a 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -156,6 +156,22 @@ void spl_fixup_fdt(void *fdt_blob)
printf(PHASE_PROMPT "arch_fixup_fdt err - %d\n", err);
return;
}
+
+ if (IS_ENABLED(CONFIG_OF_BOARD_SETUP)) {
+ err = ft_board_setup(fdt_blob, gd->bd);
+ if (err) {
+ printf(PHASE_PROMPT "ft_board_setup err - %d\n", err);
+ return;
+ }
+ }
+
+ if (IS_ENABLED(CONFIG_OF_SYSTEM_SETUP)) {
+ err = ft_system_setup(fdt_blob, gd->bd);
+ if (err) {
+ printf(PHASE_PROMPT "ft_system_setup err - %d\n", err);
+ return;
+ }
+ }
#endif
}
--
2.54.0
More information about the U-Boot
mailing list