blob: 3a126bdec4ccfb097e551b6605a312fbe252ddd1 [file] [log] [blame]
Stephen Warren9e549802015-10-05 12:09:01 -06001/*
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
Stephen Warren5ab72a22018-01-04 11:07:14 -070015/* size: IO + NR_DRAM_BANKS + terminator */
16struct mm_region tegra_mem_map[1 + CONFIG_NR_DRAM_BANKS + 1] = {
Alexander Grafda6cfe12016-03-04 01:09:50 +010017 {
York Sunc7104e52016-06-24 16:46:22 -070018 .virt = 0x0UL,
19 .phys = 0x0UL,
Alexander Grafda6cfe12016-03-04 01:09:50 +010020 .size = 0x80000000UL,
21 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
22 PTE_BLOCK_NON_SHARE |
23 PTE_BLOCK_PXN | PTE_BLOCK_UXN
24 }, {
York Sunc7104e52016-06-24 16:46:22 -070025 .virt = 0x80000000UL,
26 .phys = 0x80000000UL,
Stephen Warrenfc23c1d2016-10-10 09:50:55 -060027 .size = 0x80000000UL,
Alexander Grafda6cfe12016-03-04 01:09:50 +010028 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
29 PTE_BLOCK_INNER_SHARE
30 }, {
31 /* List terminator */
32 0,
Stephen Warren9e549802015-10-05 12:09:01 -060033 }
Alexander Grafda6cfe12016-03-04 01:09:50 +010034};
Stephen Warren9e549802015-10-05 12:09:01 -060035
Alexander Grafda6cfe12016-03-04 01:09:50 +010036struct mm_region *mem_map = tegra_mem_map;