summaryrefslogtreecommitdiff
path: root/lib/optee
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2018-03-13 19:50:36 +0300
committerTom Rini <trini@konsulko.com>2018-03-19 23:14:25 +0300
commitc225e7cf54fcad44902488f0d07bf362a477adf8 (patch)
tree57a45fb68f3211b373f25c45b286e1ea9f863f14 /lib/optee
parent45b55712d45150a810950aae84355e54c945cfcb (diff)
downloadu-boot-c225e7cf54fcad44902488f0d07bf362a477adf8.tar.xz
bootm: optee: Add a bootm command for type IH_OS_TEE
This patch makes it possible to verify the contents and location of an OPTEE image in DRAM prior to handing off control to that image. If image verification fails we won't try to boot any further. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Suggested-by: Andrew F. Davis <afd@ti.com> 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> Cc: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'lib/optee')
-rw-r--r--lib/optee/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig
index cc73ec3fb5..1e5ab45c3d 100644
--- a/lib/optee/Kconfig
+++ b/lib/optee/Kconfig
@@ -28,3 +28,12 @@ config OPTEE_TZDRAM_BASE
help
The base address of pre-allocated Trust Zone DRAM for
the OPTEE runtime.
+
+config BOOTM_OPTEE
+ bool "Support OPTEE bootm command"
+ select BOOTM_LINUX
+ default n
+ help
+ Select this command to enable chain-loading of a Linux kernel
+ via an OPTEE firmware.
+ The bootflow is BootROM -> u-boot -> OPTEE -> Linux in this case.