blob: d45b1faaa2c2d8ae0a09a0d44b6d01ee1a5c37ed [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stephen Warren376cb1a2015-10-05 12:09:01 -06002/*
3 * (C) Copyright 2014 - 2015 Xilinx, Inc.
4 * Michal Simek <michal.simek@xilinx.com>
Michal Simek274ccb52019-01-17 08:22:43 +01005 * (This file derived from arch/arm/mach-zynqmp/cpu.c)
Stephen Warren376cb1a2015-10-05 12:09:01 -06006 *
7 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
Stephen Warren376cb1a2015-10-05 12:09:01 -06008 */
9
10#include <common.h>
11#include <asm/system.h>
12#include <asm/armv8/mmu.h>
13
Stephen Warrencdcf5552018-01-04 11:07:14 -070014/* size: IO + NR_DRAM_BANKS + terminator */
15struct mm_region tegra_mem_map[1 + CONFIG_NR_DRAM_BANKS + 1] = {
Alexander Grafb30291a2016-03-04 01:09:50 +010016 {
York Suncd4b0c52016-06-24 16:46:22 -070017 .virt = 0x0UL,
18 .phys = 0x0UL,
Alexander Grafb30291a2016-03-04 01:09:50 +010019 .size = 0x80000000UL,
20 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
21 PTE_BLOCK_NON_SHARE |
22 PTE_BLOCK_PXN | PTE_BLOCK_UXN
23 }, {
York Suncd4b0c52016-06-24 16:46:22 -070024 .virt = 0x80000000UL,
25 .phys = 0x80000000UL,
Stephen Warrend40d69e2016-10-10 09:50:55 -060026 .size = 0x80000000UL,
Alexander Grafb30291a2016-03-04 01:09:50 +010027 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
28 PTE_BLOCK_INNER_SHARE
29 }, {
30 /* List terminator */
31 0,
Stephen Warren376cb1a2015-10-05 12:09:01 -060032 }
Alexander Grafb30291a2016-03-04 01:09:50 +010033};
Stephen Warren376cb1a2015-10-05 12:09:01 -060034
Alexander Grafb30291a2016-03-04 01:09:50 +010035struct mm_region *mem_map = tegra_mem_map;