MLK-15930-2 imx8m: refine mmu table
authorPeng Fan <peng.fan@nxp.com>
Mon, 10 Jul 2017 06:03:49 +0000 (14:03 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:02 +0000 (02:37 +0800)
Refine mmu table. Map TCML/TCMU as non-cachable.
Remove the map of CAAM secure ram and OCRAM_S.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/cpu/armv8/imx8m/soc.c

index 2c7dc1b..67877b6 100644 (file)
@@ -70,7 +70,20 @@ static struct mm_region imx8m_mem_map[] = {
        {
                .virt = 0x0UL,
                .phys = 0x0UL,
-               .size = 0xB00000UL,
+               .size = 0x100000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+                        PTE_BLOCK_OUTER_SHARE
+       }, {
+               .virt = 0x7C0000UL,
+               .phys = 0x7C0000UL,
+               .size = 0x80000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+                        PTE_BLOCK_NON_SHARE |
+                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
+       }, {
+               .virt = 0x900000UL,
+               .phys = 0x900000UL,
+               .size = 0x200000UL,
                .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
                         PTE_BLOCK_OUTER_SHARE
        }, {