blob: 46b8169d19d5a220923efc39e50d16d1f9826959 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Thomas Abrahame39448e2016-04-23 22:18:13 +05302/*
3 * Copyright (C) 2016 Samsung Electronics
4 * Thomas Abraham <thomas.ab@samsung.com>
Thomas Abrahame39448e2016-04-23 22:18:13 +05305 */
6
7#include <common.h>
8#include <asm/armv8/mmu.h>
9
Thomas Abrahame39448e2016-04-23 22:18:13 +053010#ifdef CONFIG_EXYNOS7420
11static struct mm_region exynos7420_mem_map[] = {
12 {
York Suncd4b0c52016-06-24 16:46:22 -070013 .virt = 0x10000000UL,
14 .phys = 0x10000000UL,
Thomas Abrahame39448e2016-04-23 22:18:13 +053015 .size = 0x10000000UL,
16 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
17 PTE_BLOCK_NON_SHARE |
18 PTE_BLOCK_PXN | PTE_BLOCK_UXN,
19 }, {
York Suncd4b0c52016-06-24 16:46:22 -070020 .virt = 0x40000000UL,
21 .phys = 0x40000000UL,
Thomas Abrahame39448e2016-04-23 22:18:13 +053022 .size = 0x80000000UL,
23 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
24 PTE_BLOCK_INNER_SHARE,
25 }, {
26 /* List terminator */
Thomas Abrahame39448e2016-04-23 22:18:13 +053027 },
28};
29
30struct mm_region *mem_map = exynos7420_mem_map;
31#endif