From 99654e1b9665de0245c0fd606760aa7d1e9b8810 Mon Sep 17 00:00:00 2001 From: Yu-Chien Peter Lin Date: Sat, 11 Jan 2025 09:55:26 +0800 Subject: [PATCH] riscv: Add CONFIG_SPL_OPTEE_LOAD_ADDR Allow specifying load address of OP-TEE binary. It is recommended that the specified address aligns with the base address of an PMP-protected NAPOT region and matches the CFG_TDDRAM_START configuration in OP-TEE. Signed-off-by: Yu-Chien Peter Lin Reviewed-by: Leo Yu-Chi Liang --- arch/riscv/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index f4e76db3df4..b24623590f2 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -588,4 +588,10 @@ config SPL_LOAD_FIT_OPENSBI_OS_BOOT This is a shortcut boot flow, from u-boot SPL -> OpenSBI -> u-boot proper -> linux to u-boot SPL -> OpenSBI -> linux. +config SPL_OPTEE_LOAD_ADDR + hex "OP-TEE Trusted OS image load address" + depends on OPTEE + help + Load address of the OP-TEE binary. + endmenu -- 2.39.5