With CONFIG_SPL_OS_BOOT enabled, U-Boot checks for the return value of
spl_start_uboot to select between falcon or the regular boot flow. With
a return value of 0 implying falcon mode.

This patch overrides the weak definition form common/spl/spl.c to allow
K3 devices to use falcon mode with SPL_OS_BOOT enabled.

Signed-off-by: Anshul Dalal <[email protected]>
---
 arch/arm/mach-k3/common.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 5483ac9906c..41c96cbd4c5 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -425,3 +425,10 @@ release_proc_ctrl:
        proc_ops->proc_release(ti_sci, PROC_ID_MCU_R5FSS0_CORE1);
        return ret;
 }
+
+#if CONFIG_IS_ENABLED(OS_BOOT)
+int spl_start_uboot(void)
+{
+       return 0;
+}
+#endif
-- 
2.51.0

Reply via email to