2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2017-11-25 22:24:01 +00:00
|
|
|
/*
|
|
|
|
* Renesas RCar Gen3 memory map tables
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Marek Vasut <marek.vasut@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <asm/armv8/mmu.h>
|
|
|
|
|
2018-02-15 12:19:33 +00:00
|
|
|
static struct mm_region gen3_mem_map[] = {
|
2017-11-25 22:24:01 +00:00
|
|
|
{
|
|
|
|
.virt = 0x0UL,
|
|
|
|
.phys = 0x0UL,
|
2018-02-15 12:19:33 +00:00
|
|
|
.size = 0x40000000UL,
|
2017-11-25 22:24:01 +00:00
|
|
|
.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
|
|
|
|
PTE_BLOCK_NON_SHARE |
|
|
|
|
PTE_BLOCK_PXN | PTE_BLOCK_UXN
|
|
|
|
}, {
|
2018-02-15 12:19:33 +00:00
|
|
|
.virt = 0x40000000UL,
|
|
|
|
.phys = 0x40000000UL,
|
|
|
|
.size = 0x80000000UL,
|
2017-10-08 18:52:52 +00:00
|
|
|
.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
|
|
|
|
PTE_BLOCK_INNER_SHARE
|
|
|
|
}, {
|
2018-02-15 12:19:33 +00:00
|
|
|
.virt = 0xc0000000UL,
|
|
|
|
.phys = 0xc0000000UL,
|
|
|
|
.size = 0x40000000UL,
|
2017-10-08 18:52:52 +00:00
|
|
|
.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
|
|
|
|
PTE_BLOCK_NON_SHARE |
|
|
|
|
PTE_BLOCK_PXN | PTE_BLOCK_UXN
|
|
|
|
}, {
|
|
|
|
/* List terminator */
|
|
|
|
0,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-02-15 12:19:33 +00:00
|
|
|
struct mm_region *mem_map = gen3_mem_map;
|