blob: 76414558379f2c5eeedbe9ace9a96688fc1e7581 [file] [log] [blame]
Yang Xiwendb1d1f42023-04-01 19:17:33 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Hisilicon HiSTB memory map
4 *
5 * (C) Copyright 2023 Yang Xiwen <forbidden405@outlook.com>
6 */
7
Yang Xiwendb1d1f42023-04-01 19:17:33 +08008#include <asm/armv8/mmu.h>
9
10static struct mm_region histb_mem_map[] = {
11 {
12 .virt = 0x0UL, /* DRAM */
13 .phys = 0x0UL,
14 .size = 0x80000000UL,
15 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
16 PTE_BLOCK_INNER_SHARE
17 }, {
18 .virt = 0x80000000UL, /* Peripheral block */
19 .phys = 0x80000000UL,
20 .size = 0x80000000UL,
21 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
22 PTE_BLOCK_NON_SHARE |
23 PTE_BLOCK_PXN | PTE_BLOCK_UXN
24 }, {
25 /* Terminator */
26 0,
27 }
28};
29
30struct mm_region *mem_map = histb_mem_map;