ARM: add optee early loading function
Add a OP-TEE early loading function which expects a pointer to a valid
tee binary and the device tree. OP-TEE will then be started and barebox
will continue to run in normal mode.

The function start_optee_early should be used in a boards lowlevel.c
file. Ensure that barebox has been relocated and a proper c environment
has been setup beforehand. Depending on the OP-TEE configuration, the
fdt will be modified. If the internal barebox device tree is passed,
OP-TEE will overwrite barebox PBL memory during this modification. Copy
the fdt to a save memory location beforehand to avoid a corruption of
barebox PBL memory.

This also moves the OP-TEE Kconfig symbols into a separate menu.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 7e73f9a commit 4b7c346be3b9ced3166a6290d8c2a5fac691d3f2
@Rouven Czerwinski Rouven Czerwinski authored on 28 Jan 2020
Sascha Hauer committed on 30 Jan 2020
Showing 7 changed files
View
arch/arm/include/asm/barebox-arm.h
View
arch/arm/lib32/Makefile
View
arch/arm/lib32/optee-early.c 0 → 100644
View
common/Kconfig
View
common/Makefile
View
include/asm-generic/memory_layout.h
View
include/tee/optee.h