diff options
| author | Anshul Dalal <[email protected]> | 2025-10-24 13:44:06 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-03 11:52:29 -0600 |
| commit | f5119b38ff0d13f58a9af4d9f7f48dbc3f6f6a93 (patch) | |
| tree | b24df2691c110fb5795ed186d765b6b123bb25d6 | |
| parent | d99688d26e697a52ceccea8231e085a79ee63771 (diff) | |
arm: mach-k3: enable support for falcon mode
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. Where
a return value of 0 means 'boot to linux'.
This patch overrides the weak definition form common/spl/spl.c to allow
K3 devices to use falcon mode with SPL_OS_BOOT_SECURE enabled for the
A-Core SPL.
Signed-off-by: Anshul Dalal <[email protected]>
| -rw-r--r-- | arch/arm/mach-k3/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index 7c06764af82..04a0f232d84 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -480,3 +480,11 @@ release_proc_ctrl: proc_ops->proc_release(ti_sci, PROC_ID_MCU_R5FSS0_CORE1); return ret; } + +#if IS_ENABLED(CONFIG_ARM64) && IS_ENABLED(CONFIG_SPL_OS_BOOT_SECURE) +int spl_start_uboot(void) +{ + /* Always boot to linux on Cortex-A SPL with CONFIG_SPL_OS_BOOT set */ + return 0; +} +#endif |
