arm: socfpga: agilex5: Add MMU mapping region
authorTingting Meng <tingting.meng@altera.com>
Mon, 10 Mar 2025 07:29:41 +0000 (15:29 +0800)
committerTien Fong Chee <tien.fong.chee@intel.com>
Tue, 22 Apr 2025 03:47:40 +0000 (11:47 +0800)
MMU mapping regions were added for the second and third DDR memory banks.

Signed-off-by: Tingting Meng <tingting.meng@altera.com>
arch/arm/mach-socfpga/mmu-arm64_s10.c

index b8e40d9..1dc44ab 100644 (file)
@@ -57,6 +57,20 @@ static struct mm_region socfpga_agilex5_mem_map[] = {
                .size   = 0x80000000UL,
                .attrs  = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
                                PTE_BLOCK_INNER_SHARE,
+       }, {
+               /* MEM 30GB */
+               .virt   = 0x880000000UL,
+               .phys   = 0x880000000UL,
+               .size   = 0x780000000UL,
+               .attrs  = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+                               PTE_BLOCK_INNER_SHARE,
+       }, {
+               /* MEM 480GB */
+               .virt   = 0x8800000000UL,
+               .phys   = 0x8800000000UL,
+               .size   = 0x7800000000UL,
+               .attrs  = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+                               PTE_BLOCK_INNER_SHARE,
        }, {
                /* List terminator */
        },