Skip to contentSkip to conversation

arm: socfpga: agilex5: Define MMU mapping region for FPGA

PATCH New Jit Loon Lim 1 participant 1 message Jun 21, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: agilex5: Define MMU mapping region for FPGA

From: Sin Hui Kho <[email protected]>

Add MMU mapping region for FPGA including 512 MB LW HPS2FPGA and 1GB HPS2FPGA.

---
 arch/arm/mach-socfpga/mmu-arm64_s10.c | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/mach-socfpga/mmu-arm64_s10.c +8 -0
index 0951233cad..c88f0e8632 100644
@@ -36,6 +36,14 @@ static struct mm_region socfpga_agilex5_mem_map[] = {
 				PTE_BLOCK_NON_SHARE |
 				PTE_BLOCK_PXN | PTE_BLOCK_UXN,
 	}, {
+		/* FPGA 1.5GB */
+		.virt	= 0x20000000UL,
+		.phys	= 0x20000000UL,
+		.size	= 0x60000000UL,
+		.attrs	= PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+				PTE_BLOCK_NON_SHARE |
+				PTE_BLOCK_PXN | PTE_BLOCK_UXN,
+	},{
 		/* MEM 2GB */
 		.virt	= 0x80000000UL,
 		.phys	= 0x80000000UL,
Signature · 1 line
2.26.2