riscv: Add CONFIG_SPL_OPTEE_LOAD_ADDR
authorYu-Chien Peter Lin <peter.lin@sifive.com>
Sat, 11 Jan 2025 01:55:26 +0000 (09:55 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 3 Feb 2025 07:26:00 +0000 (15:26 +0800)
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 <peter.lin@sifive.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/Kconfig

index f4e76db..b246235 100644 (file)
@@ -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