blob: 67bc4f1209b6670b20f34a3f85e2e264aae92d42 [file] [log] [blame]
Masahiro Yamada063eb1e2016-04-21 14:43:18 +09001/*
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
11static struct mm_region uniphier_mem_map[] = {
12 {
York Sunc7104e52016-06-24 16:46:22 -070013 .virt = 0x00000000,
14 .phys = 0x00000000,
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090015 .size = 0x80000000,
16 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
17 PTE_BLOCK_NON_SHARE |
18 PTE_BLOCK_PXN | PTE_BLOCK_UXN
19 },
20 {
York Sunc7104e52016-06-24 16:46:22 -070021 .virt = 0x80000000,
22 .phys = 0x80000000,
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090023 .size = 0xc0000000,
24 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
25 PTE_BLOCK_INNER_SHARE
26 },
27 { /* sentinel */ }
28};
29
30struct mm_region *mem_map = uniphier_mem_map;