Merge git://git.denx.de/u-boot-imx
[oweals/u-boot.git] / arch / arm / mach-rmobile / memmap-gen3.c
1 /*
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
12 static struct mm_region gen3_mem_map[] = {
13         {
14                 .virt = 0x0UL,
15                 .phys = 0x0UL,
16                 .size = 0x40000000UL,
17                 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
18                          PTE_BLOCK_NON_SHARE |
19                          PTE_BLOCK_PXN | PTE_BLOCK_UXN
20         }, {
21                 .virt = 0x40000000UL,
22                 .phys = 0x40000000UL,
23                 .size = 0x80000000UL,
24                 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
25                          PTE_BLOCK_INNER_SHARE
26         }, {
27                 .virt = 0xc0000000UL,
28                 .phys = 0xc0000000UL,
29                 .size = 0x40000000UL,
30                 .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
39 struct mm_region *mem_map = gen3_mem_map;