]> git.sur5r.net Git - u-boot/blob - arch/arm/mach-tegra/arm64-mmu.c
ARM: uniphier: move spl_boot_mode() to a separate file
[u-boot] / arch / arm / mach-tegra / arm64-mmu.c
1 /*
2  * (C) Copyright 2014 - 2015 Xilinx, Inc.
3  * Michal Simek <michal.simek@xilinx.com>
4  * (This file derived from arch/arm/cpu/armv8/zynqmp/cpu.c)
5  *
6  * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
7  *
8  * SPDX-License-Identifier:     GPL-2.0+
9  */
10
11 #include <common.h>
12 #include <asm/system.h>
13 #include <asm/armv8/mmu.h>
14
15 static struct mm_region tegra_mem_map[] = {
16         {
17                 .virt = 0x0UL,
18                 .phys = 0x0UL,
19                 .size = 0x80000000UL,
20                 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
21                          PTE_BLOCK_NON_SHARE |
22                          PTE_BLOCK_PXN | PTE_BLOCK_UXN
23         }, {
24                 .virt = 0x80000000UL,
25                 .phys = 0x80000000UL,
26                 .size = 0x80000000UL,
27                 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
28                          PTE_BLOCK_INNER_SHARE
29         }, {
30                 /* List terminator */
31                 0,
32         }
33 };
34
35 struct mm_region *mem_map = tegra_mem_map;