]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/armv8/zynqmp/cpu.c
arm64: zynqmp: Provide a Kconfig option to define OCM and TCM in MMU
[u-boot] / arch / arm / cpu / armv8 / zynqmp / cpu.c
index 94ecf9066028f1f4da7b0e0c9393bd65c44ee485..5fba0716ca0df2ece9d61b08d2d8e2237a3d830e 100644 (file)
@@ -38,6 +38,14 @@ static struct mm_region zynqmp_mem_map[] = {
                         PTE_BLOCK_NON_SHARE |
                         PTE_BLOCK_PXN | PTE_BLOCK_UXN
        }, {
+#if defined(CONFIG_DEFINE_TCM_OCM_MMAP)
+               .virt = 0xffe00000UL,
+               .phys = 0xffe00000UL,
+               .size = 0x00200000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+                        PTE_BLOCK_INNER_SHARE
+       }, {
+#endif
                .virt = 0x400000000UL,
                .phys = 0x400000000UL,
                .size = 0x200000000UL,