summaryrefslogtreecommitdiff
path: root/plat/imx/imx8mq/platform.mk
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-10-18 15:55:06 +0800
committerAbel Vesa <abel.vesa@nxp.com>2018-06-11 10:08:40 +0300
commitf5062a6d91f7ddadb519793e3f1432d7a1a70abd (patch)
treebff71fb61c28e5e614ccb057bdcd1c00200c662d /plat/imx/imx8mq/platform.mk
parent6fb035381ce6857444af4860a095a1552764abb0 (diff)
imx8mq: add TEE support
TEE entry is defined as 0xFE000000. When there is SPD passed to makefile , TEE_IMX8 will be defined. Compiling OP-TEE support using "make PLAT=imx8mq bl31 SPD=opteed" Note: Since TEE image is located at DRAM 0xFE000000, so need to reserve this space in UBoot and Kernel, by using gd->dram_size = PHYS_SDRAM_SIZE - SZ_32M or else. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'plat/imx/imx8mq/platform.mk')
-rw-r--r--plat/imx/imx8mq/platform.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/imx/imx8mq/platform.mk b/plat/imx/imx8mq/platform.mk
index 1327ab0c..743dd514 100644
--- a/plat/imx/imx8mq/platform.mk
+++ b/plat/imx/imx8mq/platform.mk
@@ -28,4 +28,7 @@ MULTI_CONSOLE_API := 1
RESET_TO_BL31 := 1
ERROR_DEPRECATED := 1
XLAT_TABLE_IN_OCRAM_S := 1
+ifneq (${SPD},none)
+$(eval $(call add_define,TEE_IMX8))
+endif
$(eval $(call add_define,XLAT_TABLE_IN_OCRAM_S))