mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-22 01:48:52 +09:00
![Rui Miguel Silva](/assets/img/avatar_default.png)
We may have, the not yet considered, scenario where OPTEE is loaded before u-boot and *not* by u-boot, e.g, the boot flow using the ARM Trusted Firmware (ATF), where in the 32bit flow is: BootRom->ATF(BL2)->Optee(BL32)->u-boot(BL33) In this case we need still to reserve the memory used by optee, to avoid for example to realocate ourself to the same address at the end of DRAM. So, we change here the dependencies on the OPTEE lib and we set the default size and base of TZRAM to zero. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Ryan Harkin <ryan.harkin@linaro.org> Cc: u-boot@lists.denx.de
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
config OPTEE
|
|
bool "Support OPTEE images"
|
|
help
|
|
U-Boot can be configured to boot OPTEE images.
|
|
Selecting this option will enable shared OPTEE library code and
|
|
enable an OPTEE specific bootm command that will perform additional
|
|
OPTEE specific checks before booting an OPTEE image created with
|
|
mkimage.
|
|
|
|
config OPTEE_LOAD_ADDR
|
|
hex "OPTEE load address"
|
|
default 0x00000000
|
|
depends on OPTEE
|
|
help
|
|
The load address of the bootable OPTEE binary.
|
|
|
|
config OPTEE_TZDRAM_SIZE
|
|
hex "Amount of Trust-Zone RAM for the OPTEE image"
|
|
default 0x0000000
|
|
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"
|
|
default 0x00000000
|
|
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
|
|
depends on OPTEE
|
|
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.
|