diff options
authorSilvano di Ninno <>2018-11-20 22:19:21 +0100
committerSilvano di Ninno <>2018-11-26 09:55:12 +0100
commitaf3a8301a1a88a4e66c6f3887ada2ce5c31ef9b8 (patch)
parent8907cbb2dd9acac6642d592231f6072d6e65677e (diff)
TEE-329-4: OP-TEE: Pass boot info to u-boot
If ATF loads OP-TEE, it will pass OP-TEE base address and size to the u-boot through boot information. This will help u-boot update device tree accordingly. Note that u-boot on i.MX 8QxP does not need this information to configure memory mapping. Query to the SC Firmware is used instead Signed-off-by: Silvano di Ninno <> (cherry picked from commit e80fe229192578120a3ba98ae26fd3dbf121538f)
1 files changed, 4 insertions, 0 deletions
diff --git a/plat/imx/imx8qxp/imx8qxp_bl31_setup.c b/plat/imx/imx8qxp/imx8qxp_bl31_setup.c
index 89ee64a3..d465b24b 100644
--- a/plat/imx/imx8qxp/imx8qxp_bl31_setup.c
+++ b/plat/imx/imx8qxp/imx8qxp_bl31_setup.c
@@ -415,6 +415,10 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
bl32_image_ep_info.args.arg0 = BL32_SIZE;
bl32_image_ep_info.args.arg1 = BL32_BASE;
+#ifdef SPD_opteed
+ bl33_image_ep_info.args.arg1 = BL32_BASE;
+ bl33_image_ep_info.args.arg2 = BL32_SIZE;
SET_SECURITY_STATE(bl33_image_ep_info.h.attr, NON_SECURE);