blob: 52cd000a171a3da7706ce298c7a07c411c2aa965 [file] [log] [blame]
Marek Vasut23e239a2017-11-25 23:24:01 +01001/*
2 * Renesas RCar Gen3 memory map tables
3 *
4 * Copyright (C) 2017 Marek Vasut <marek.vasut@gmail.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#include <common.h>
10#include <asm/armv8/mmu.h>
11
Marek Vasuta5abacc2018-02-15 13:19:33 +010012static struct mm_region gen3_mem_map[] = {
Marek Vasut23e239a2017-11-25 23:24:01 +010013 {
14 .virt = 0x0UL,
15 .phys = 0x0UL,
Marek Vasuta5abacc2018-02-15 13:19:33 +010016 .size = 0x40000000UL,
Marek Vasut23e239a2017-11-25 23:24:01 +010017 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
18 PTE_BLOCK_NON_SHARE |
19 PTE_BLOCK_PXN | PTE_BLOCK_UXN
20 }, {
Marek Vasuta5abacc2018-02-15 13:19:33 +010021 .virt = 0x40000000UL,
22 .phys = 0x40000000UL,
23 .size = 0x80000000UL,
Marek Vasut04cd2e22017-10-08 20:52:52 +020024 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
25 PTE_BLOCK_INNER_SHARE
26 }, {
Marek Vasuta5abacc2018-02-15 13:19:33 +010027 .virt = 0xc0000000UL,
28 .phys = 0xc0000000UL,
29 .size = 0x40000000UL,
Marek Vasut04cd2e22017-10-08 20:52:52 +020030 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
31 PTE_BLOCK_NON_SHARE |
32 PTE_BLOCK_PXN | PTE_BLOCK_UXN
33 }, {
34 /* List terminator */
35 0,
36 }
37};
38
Marek Vasuta5abacc2018-02-15 13:19:33 +010039struct mm_region *mem_map = gen3_mem_map;