summaryrefslogtreecommitdiff
path: root/plat/imx/imx8qm/include/platform_def.h
diff options
context:
space:
mode:
authorHaoran.Wang <elven.wang@nxp.com>2018-09-10 11:03:26 +0800
committerHaoran.Wang <elven.wang@nxp.com>2018-09-12 17:37:38 +0800
commitd305ece47bf3e90b5008bf5932583ee2a772650b (patch)
tree872ab845cbfa5f8884c7345a8ffd5c088a8b1bb2 /plat/imx/imx8qm/include/platform_def.h
parent102d081b3f9ac569cdff760ac7c7f7c402c3f5fe (diff)
MA-11015 Support Trusty OS on imx8qm/qxp
The Trusty OS binary will be installed into container.img and loaded into 0x84000000. Due Trusty OS addresss is in 0xfe000000 which ROM cannot reach, so use ATF to copy it into the target address. Mapped the BL32 code into MMU due the Trusty SPD need to check the code status and decide the CPU executing mode. To reserve and protect the memory for secure world, modify the partition code to keep BL32 spaces in secure_part. Signed-off-by: Haoran.Wang <elven.wang@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'plat/imx/imx8qm/include/platform_def.h')
-rw-r--r--plat/imx/imx8qm/include/platform_def.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/plat/imx/imx8qm/include/platform_def.h b/plat/imx/imx8qm/include/platform_def.h
index 5d949ec1..c68cbd16 100644
--- a/plat/imx/imx8qm/include/platform_def.h
+++ b/plat/imx/imx8qm/include/platform_def.h
@@ -31,6 +31,13 @@
#define BL31_BASE 0x80000000
#define BL31_LIMIT 0x80020000
+#ifdef SPD_trusty
+#define BL32_BASE 0xfe000000
+#define BL32_SIZE 0x00200000
+#define BL32_LIMIT 0x100000000
+#define PLAT_TEE_IMAGE_OFFSET 0x84000000
+#endif
+
/* non-secure uboot base */
#define PLAT_NS_IMAGE_OFFSET 0x80020000
@@ -61,5 +68,9 @@
#define COUNTER_FREQUENCY 8000000 /* 8MHz */
#define DEBUG_CONSOLE 0
+#ifdef SPD_trusty
+#define DEBUG_CONSOLE_A53 1
+#else
#define DEBUG_CONSOLE_A53 0
+#endif
#define PLAT_IMX8QM 1