]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: Add OCRAM_S into iMX8M MMU tables
authorMarek Vasut <marex@denx.de>
Thu, 25 Feb 2021 20:52:26 +0000 (21:52 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 18:29:53 +0000 (20:29 +0200)
The OCRAM_S is regular memory, just like the OCRAM, add it to the MMU
tables so it can be used and cached.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/imx8m/soc.c

index f3b9f2ddd61f906ae503c21751580e704e76ade4..36abb2e57f0f69221fe7287e39acb86c8d1b00d2 100644 (file)
@@ -104,6 +104,13 @@ static struct mm_region imx8m_mem_map[] = {
                .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
                         PTE_BLOCK_NON_SHARE |
                         PTE_BLOCK_PXN | PTE_BLOCK_UXN
+       }, {
+               /* OCRAM_S */
+               .virt = 0x180000UL,
+               .phys = 0x180000UL,
+               .size = 0x8000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+                        PTE_BLOCK_OUTER_SHARE
        }, {
                /* TCM */
                .virt = 0x7C0000UL,