blob: cb6d1e475ba0d27c4388b479917a6218487b9296 [file] [log] [blame]
Jorge Ramirez-Ortiz9f2d1b22018-01-10 11:33:50 +01001/*
2 * Qualcomm APQ8096 memory map
3 *
4 * (C) Copyright 2017 Jorge Ramirez Ortiz <jorge.ramirez-ortiz@linaro.org>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#include <common.h>
10#include <asm/armv8/mmu.h>
11
12static struct mm_region apq8096_mem_map[] = {
13 {
14 .virt = 0x0UL, /* Peripheral block */
15 .phys = 0x0UL, /* Peripheral block */
16 .size = 0x10000000UL,
17 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
18 PTE_BLOCK_NON_SHARE |
19 PTE_BLOCK_PXN | PTE_BLOCK_UXN
20 }, {
21 .virt = 0x80000000UL, /* DDR */
22 .phys = 0x80000000UL, /* DDR */
23 .size = 0xC0000000UL,
24 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
25 PTE_BLOCK_INNER_SHARE
26 }, {
27 /* List terminator */
28 0,
29 }
30};
31
32struct mm_region *mem_map = apq8096_mem_map;