1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2016 Samsung Electronics
4 * Thomas Abraham <thomas.ab@samsung.com>
8 #include <asm/armv8/mmu.h>
10 #ifdef CONFIG_EXYNOS7420
11 static struct mm_region exynos7420_mem_map[] = {
16 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
18 PTE_BLOCK_PXN | PTE_BLOCK_UXN,
23 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
24 PTE_BLOCK_INNER_SHARE,
30 struct mm_region *mem_map = exynos7420_mem_map;
33 #ifdef CONFIG_EXYNOS7870
34 static struct mm_region exynos7870_mem_map[] = {
39 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
41 PTE_BLOCK_PXN | PTE_BLOCK_UXN,
47 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
48 PTE_BLOCK_INNER_SHARE,
54 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
55 PTE_BLOCK_INNER_SHARE,
63 struct mm_region *mem_map = exynos7870_mem_map;
66 #ifdef CONFIG_EXYNOS7880
67 static struct mm_region exynos7880_mem_map[] = {
72 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
74 PTE_BLOCK_PXN | PTE_BLOCK_UXN,
80 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
81 PTE_BLOCK_INNER_SHARE,
87 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
88 PTE_BLOCK_INNER_SHARE,
96 struct mm_region *mem_map = exynos7880_mem_map;