[U-Boot] [PATCH v4 03/12] optee: Add CONFIG_OPTEE_TZDRAM_BASE
Bryan O'Donoghue
bryan.odonoghue at linaro.org
Mon Feb 26 12:35:57 UTC 2018
OPTEE is currently linked to a specific area of memory called the TrustZone
DRAM. This patch adds a CONFIG entry for the default address of TrustZone
DRAM that a board-port can over-ride. The region that U-Boot sets aside for
the OPTEE run-time should be verified before attempting to hand off to the
OPTEE run-time. Each board-port should carefully ensure that the TZDRAM
address specified in the OPTEE build and the TZDRAM address specified in
U-Boot match-up.
Further patches will use TZDRAM address with other defines and variables to
carry out a degree of automated verification in U-Boot prior to trying to
boot an OPTEE image.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue at linaro.org>
Cc: Harinarayan Bhatta <harinarayan at ti.com>
Cc: Andrew F. Davis <afd at ti.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: Kever Yang <kever.yang at rock-chips.com>
Cc: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
Cc: Peng Fan <peng.fan at nxp.com>
---
lib/optee/Kconfig | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig
index 2ca7be7..9e9ef39 100644
--- a/lib/optee/Kconfig
+++ b/lib/optee/Kconfig
@@ -13,3 +13,11 @@ config OPTEE_TZDRAM_SIZE
help
The size of pre-allocated Trust Zone DRAM to allocate for the OPTEE
runtime.
+
+config OPTEE_TZDRAM_BASE
+ hex "Base address of Trust-Zone RAM for the OPTEE image"
+ depends on OPTEE
+ default 0x9d000000
+ help
+ The base address of pre-allocated Trust Zone DRAM for
+ the OPTEE runtime.
--
2.7.4
More information about the U-Boot
mailing list