summaryrefslogtreecommitdiff
path: root/arch/arm/mach-histb/sysmap-histb.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-05-03 09:23:21 -0400
committerTom Rini <trini@konsulko.com>2023-05-03 09:23:21 -0400
commit1807c0c70a73c7697f32c04cad20ea9cd11b248e (patch)
tree258d2fa7d274ed5048640ceef121841d49494784 /arch/arm/mach-histb/sysmap-histb.c
parent021e303492ccfdf58425bedb13c1621367cc5cc7 (diff)
parent8144210e750d42941eb8028fdfc4e027ef043d8f (diff)
Merge branch '2023-05-02-assorted-platform-updates-and-additions'
- Updates for starqltechn and other qualcomm platforms, hi3798mv200, Broadcom Northstar, and mediatek platforms - Drop omap5_uevm, and assorted TI platform updates - Add MAX14526
Diffstat (limited to 'arch/arm/mach-histb/sysmap-histb.c')
-rw-r--r--arch/arm/mach-histb/sysmap-histb.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-histb/sysmap-histb.c b/arch/arm/mach-histb/sysmap-histb.c
new file mode 100644
index 00000000000..83a2bb94179
--- /dev/null
+++ b/arch/arm/mach-histb/sysmap-histb.c
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Hisilicon HiSTB memory map
+ *
+ * (C) Copyright 2023 Yang Xiwen <forbidden405@outlook.com>
+ */
+
+#include <common.h>
+#include <asm/armv8/mmu.h>
+
+static struct mm_region histb_mem_map[] = {
+ {
+ .virt = 0x0UL, /* DRAM */
+ .phys = 0x0UL,
+ .size = 0x80000000UL,
+ .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+ PTE_BLOCK_INNER_SHARE
+ }, {
+ .virt = 0x80000000UL, /* Peripheral block */
+ .phys = 0x80000000UL,
+ .size = 0x80000000UL,
+ .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+ PTE_BLOCK_NON_SHARE |
+ PTE_BLOCK_PXN | PTE_BLOCK_UXN
+ }, {
+ /* Terminator */
+ 0,
+ }
+};
+
+struct mm_region *mem_map = histb_mem_map;