blob: 92c8f2e80db762ddc78f3702b9e85badf3201f74 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Marek Vasut23e239a2017-11-25 23:24:01 +01002/*
3 * Renesas RCar Gen3 memory map tables
4 *
5 * Copyright (C) 2017 Marek Vasut <marek.vasut@gmail.com>
Marek Vasut23e239a2017-11-25 23:24:01 +01006 */
7
8#include <common.h>
9#include <asm/armv8/mmu.h>
10
Marek Vasuta5abacc2018-02-15 13:19:33 +010011static struct mm_region gen3_mem_map[] = {
Marek Vasut23e239a2017-11-25 23:24:01 +010012 {
13 .virt = 0x0UL,
14 .phys = 0x0UL,
Marek Vasuta5abacc2018-02-15 13:19:33 +010015 .size = 0x40000000UL,
Marek Vasut23e239a2017-11-25 23:24:01 +010016 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
17 PTE_BLOCK_NON_SHARE |
18 PTE_BLOCK_PXN | PTE_BLOCK_UXN
19 }, {
Marek Vasuta5abacc2018-02-15 13:19:33 +010020 .virt = 0x40000000UL,
21 .phys = 0x40000000UL,
22 .size = 0x80000000UL,
Marek Vasut04cd2e22017-10-08 20:52:52 +020023 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
24 PTE_BLOCK_INNER_SHARE
25 }, {
Marek Vasuta5abacc2018-02-15 13:19:33 +010026 .virt = 0xc0000000UL,
27 .phys = 0xc0000000UL,
28 .size = 0x40000000UL,
Marek Vasut04cd2e22017-10-08 20:52:52 +020029 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
30 PTE_BLOCK_NON_SHARE |
31 PTE_BLOCK_PXN | PTE_BLOCK_UXN
32 }, {
Marek Vasut48bbd492018-10-02 21:42:49 +020033 .virt = 0x100000000UL,
34 .phys = 0x100000000UL,
35 .size = 0xf00000000UL,
36 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
37 PTE_BLOCK_INNER_SHARE
38 }, {
Marek Vasut04cd2e22017-10-08 20:52:52 +020039 /* List terminator */
40 0,
41 }
42};
43
Marek Vasuta5abacc2018-02-15 13:19:33 +010044struct mm_region *mem_map = gen3_mem_map;