blob: ffa3f9aa353299046d8d08a551823920e8be63af [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Mateusz Kulikowski08592132016-03-31 23:12:32 +02002/*
3 * Qualcomm APQ8016 memory map
4 *
5 * (C) Copyright 2016 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mateusz Kulikowski08592132016-03-31 23:12:32 +02006 */
7
8#include <common.h>
9#include <asm/armv8/mmu.h>
10
11static struct mm_region apq8016_mem_map[] = {
12 {
York Suncd4b0c52016-06-24 16:46:22 -070013 .virt = 0x0UL, /* Peripheral block */
14 .phys = 0x0UL, /* Peripheral block */
Mateusz Kulikowski08592132016-03-31 23:12:32 +020015 .size = 0x8000000UL,
16 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
17 PTE_BLOCK_NON_SHARE |
18 PTE_BLOCK_PXN | PTE_BLOCK_UXN
19 }, {
York Suncd4b0c52016-06-24 16:46:22 -070020 .virt = 0x80000000UL, /* DDR */
21 .phys = 0x80000000UL, /* DDR */
Mateusz Kulikowski08592132016-03-31 23:12:32 +020022 .size = 0x80000000UL,
23 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
24 PTE_BLOCK_INNER_SHARE
25 }, {
26 /* List terminator */
27 0,
28 }
29};
30
31struct mm_region *mem_map = apq8016_mem_map;