diff options
author | Bryan O'Donoghue | 2018-03-13 16:50:29 +0000 |
---|---|---|
committer | Tom Rini | 2018-03-19 16:14:24 -0400 |
commit | 35499baf3b3c6b9e5e9df0ed676a2cdae131946a (patch) | |
tree | fa2fe1f906f93ac606fc3df6c089020364a514fa /lib/optee/Kconfig | |
parent | d89a5aa6d086e4b3242dbdbe97183f5b25468299 (diff) |
optee: Add CONFIG_OPTEE_TZDRAM_BASE
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@linaro.org>
Cc: Harinarayan Bhatta <harinarayan@ti.com>
Cc: Andrew F. Davis <afd@ti.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'lib/optee/Kconfig')
-rw-r--r-- | lib/optee/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index 41c0ab71b19..a3b73321746 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -14,3 +14,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. |