summaryrefslogtreecommitdiff
path: root/plat/imx/imx8qm/include/platform_def.h
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-12-26 04:59:56 -0800
committerAnson Huang <Anson.Huang@nxp.com>2019-12-13 10:45:50 +0800
commitfdd8c22694528c072b0b06c0bb53d2d7c94d55f2 (patch)
tree12a04ff7c28c59ba16f8120d44d270a6cfb6143d /plat/imx/imx8qm/include/platform_def.h
parentb4b5674df40e281483702c1795cd2912fd437670 (diff)
imx8qm/qxp: Protect the lower 96K ocram used for SPL
Because the partition reboot won't reload the first level bootloader (SPL), the SPL won't be authenticated. Users can corrupt the SPL image to break the boot trust chain in secure boot if we don't protect that OCRAM area. This patch configures the memory area from 0x0 to 0x118000 only accessed by secure partition (ATF and OPTEE). Non-secure partitions (u-boot and kernel) can't access it. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 1eff7d3ef6f121782e56bb1807744ede48b8580b) (cherry picked from commit 96d33120bb57895db73e669ef0aeccde0d4875d5)
Diffstat (limited to 'plat/imx/imx8qm/include/platform_def.h')
-rw-r--r--plat/imx/imx8qm/include/platform_def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/imx/imx8qm/include/platform_def.h b/plat/imx/imx8qm/include/platform_def.h
index 9da04890..4b02a3f8 100644
--- a/plat/imx/imx8qm/include/platform_def.h
+++ b/plat/imx/imx8qm/include/platform_def.h
@@ -40,6 +40,9 @@
#define BL31_BASE 0x80000000
#define BL31_LIMIT 0x80020000
+#define OCRAM_BASE 0x100000
+#define OCRAM_ALIAS_SIZE 0x18000 /* The lower 96KB is in OCRAM alias from 0x0 */
+
#define PLAT_GICD_BASE 0x51a00000
#define PLAT_GICR_BASE 0x51b00000
#define PLAT_CCI_BASE 0x52090000