diff options
author | Ye Li <ye.li@nxp.com> | 2017-06-07 03:41:22 -0500 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2018-06-08 17:34:09 +0300 |
commit | 6e04f50929ed302cda2a38910268a310d26e992b (patch) | |
tree | 8a0b07f70b75fc8852bff5376e8f773832c68120 /plat/imx/imx8qm/include | |
parent | 58a3f2e6155f5372dcc8b17e72e34779b460d548 (diff) |
iMX8QM/QXP: Allocate memory regions to NS partition
Not only the resources, but also the memory regions need to assign to
non-secure partition. Otherwise, when the boot partition is secured,
the OS non-secure partition can't access any memory.
This patch currently assign all memory to NS partition, since it is not
isolated, the current secure partition also can access them. In future,
may need to change the regions for reserving some memory in secure
partition for ATF and BL32.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'plat/imx/imx8qm/include')
-rw-r--r-- | plat/imx/imx8qm/include/sec_rsrc.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plat/imx/imx8qm/include/sec_rsrc.h b/plat/imx/imx8qm/include/sec_rsrc.h index b05f0aa0..fa72c4cf 100644 --- a/plat/imx/imx8qm/include/sec_rsrc.h +++ b/plat/imx/imx8qm/include/sec_rsrc.h @@ -23,3 +23,19 @@ sc_rsrc_t ns_access_allowed[] = { SC_R_GIC_SMMU, SC_R_CCI }; + +struct mem_region { + unsigned long start; + unsigned long end; +}; + +struct mem_region ns_mem_region[] = { + {0x000000000, 0x01BFFFFFF}, + {0x034000000, 0x037FFFFFF}, + {0x038000000, 0x03BFFFFFF}, + {0x060000000, 0x06FFFFFFF}, + {0x070000000, 0x07FFFFFFF}, + {0x080000000, 0x0FFFFFFFF}, + {0x400000000, 0x43FFFFFFF}, + {0x880000000, 0xFFFFFFFFF}, +}; |