summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mmp/mmu.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-01-28 08:10:08 -0600
committerTom Rini <trini@konsulko.com>2025-01-28 08:10:08 -0600
commita2b489b170f8382f746202c36616eaf2bc38fe86 (patch)
treeb47e3e51f26ab40f8f39e4b10bae78d7e52b5a12 /arch/arm/mach-mmp/mmu.c
parenta517796cfa5d8f4ca2f0c11c78c24a08a102c047 (diff)
parent5983f0ff6128583ee2771d39d45a3e9a15caf470 (diff)
Merge https://source.denx.de/u-boot/custodians/u-boot-marvell
CI: https://dev.azure.com/sr0718/u-boot/_build/results?buildId=389&view=results - kirkwood: Enable bootstd and other modernization for OpenRD boards (Tony) - board: solidrun: clearfog: enable ddr odt0 on write for both chip-select (Josua) - configs: mvebu_espressobin_ultra-88f3720_defconfig: enable full bootflow functionality (Ben) - Initial support for PXA1908 and samsung-coreprimevelte (Duje)
Diffstat (limited to 'arch/arm/mach-mmp/mmu.c')
-rw-r--r--arch/arm/mach-mmp/mmu.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/mmu.c b/arch/arm/mach-mmp/mmu.c
new file mode 100644
index 00000000000..ad2f1e3d994
--- /dev/null
+++ b/arch/arm/mach-mmp/mmu.c
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2024
+ * Duje Mihanović <duje.mihanovic@skole.hr>
+ */
+#include <asm/armv8/mmu.h>
+#include <linux/sizes.h>
+
+static struct mm_region pxa1908_mem_map[] = {
+ {
+ .virt = 0x0UL,
+ .phys = 0x0UL,
+ .size = 2UL * SZ_1G,
+ .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+ PTE_BLOCK_INNER_SHARE
+ },
+ {
+ .virt = 0x80000000UL,
+ .phys = 0x80000000UL,
+ .size = 2UL * SZ_1G,
+ .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+ PTE_BLOCK_INNER_SHARE |
+ PTE_BLOCK_PXN | PTE_BLOCK_UXN
+ },
+ {
+ 0,
+ }
+};
+
+struct mm_region *mem_map = pxa1908_mem_map;