blob: 83a2bb94179906282a0f6f57160aa49f92270e91 [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
8#include <common.h>
9#include <asm/armv8/mmu.h>
10
11static struct mm_region histb_mem_map[] = {
12 {
13 .virt = 0x0UL, /* DRAM */
14 .phys = 0x0UL,
15 .size = 0x80000000UL,
16 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
17 PTE_BLOCK_INNER_SHARE
18 }, {
19 .virt = 0x80000000UL, /* Peripheral block */
20 .phys = 0x80000000UL,
21 .size = 0x80000000UL,
22 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
23 PTE_BLOCK_NON_SHARE |
24 PTE_BLOCK_PXN | PTE_BLOCK_UXN
25 }, {
26 /* Terminator */
27 0,
28 }
29};
30
31struct mm_region *mem_map = histb_mem_map;