1 /*
2  * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #include <common.h>
8 #include <linux/types.h>
9 #include <asm/armv8/mmu.h>
10 
11 static struct mm_region uniphier_mem_map[] = {
12 	{
13 		.base = 0x00000000,
14 		.size = 0x80000000,
15 		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
16 			 PTE_BLOCK_NON_SHARE |
17 			 PTE_BLOCK_PXN | PTE_BLOCK_UXN
18 	},
19 	{
20 		.base = 0x80000000,
21 		.size = 0xc0000000,
22 		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
23 			 PTE_BLOCK_INNER_SHARE
24 	},
25 	{ /* sentinel */ }
26 };
27 
28 struct mm_region *mem_map = uniphier_mem_map;
29