blob: 35e75e2ab2d2903ffa24aeb87264d8667989b63a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Masahiro Yamada063eb1e2016-04-21 14:43:18 +09002/*
3 * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada063eb1e2016-04-21 14:43:18 +09004 */
5
6#include <common.h>
7#include <linux/types.h>
8#include <asm/armv8/mmu.h>
9
10static struct mm_region uniphier_mem_map[] = {
11 {
York Sunc7104e52016-06-24 16:46:22 -070012 .virt = 0x00000000,
13 .phys = 0x00000000,
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090014 .size = 0x80000000,
15 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
16 PTE_BLOCK_NON_SHARE |
17 PTE_BLOCK_PXN | PTE_BLOCK_UXN
18 },
19 {
York Sunc7104e52016-06-24 16:46:22 -070020 .virt = 0x80000000,
21 .phys = 0x80000000,
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090022 .size = 0xc0000000,
23 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
24 PTE_BLOCK_INNER_SHARE
25 },
26 { /* sentinel */ }
27};
28
29struct mm_region *mem_map = uniphier_mem_map;