blob: 4fbe47a91e1e24bd795fba2132aeb66d689ca242 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stephen Warren9e549802015-10-05 12:09:01 -06002/*
3 * (C) Copyright 2014 - 2015 Xilinx, Inc.
Michal Simeka8c94362023-07-10 14:35:49 +02004 * Michal Simek <michal.simek@amd.com>
Michal Simek7f60b232019-01-17 08:22:43 +01005 * (This file derived from arch/arm/mach-zynqmp/cpu.c)
Stephen Warren9e549802015-10-05 12:09:01 -06006 *
7 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
Stephen Warren9e549802015-10-05 12:09:01 -06008 */
9
Stephen Warren9e549802015-10-05 12:09:01 -060010#include <asm/system.h>
11#include <asm/armv8/mmu.h>
12
Stephen Warren5ab72a22018-01-04 11:07:14 -070013/* size: IO + NR_DRAM_BANKS + terminator */
14struct mm_region tegra_mem_map[1 + CONFIG_NR_DRAM_BANKS + 1] = {
Alexander Grafda6cfe12016-03-04 01:09:50 +010015 {
York Sunc7104e52016-06-24 16:46:22 -070016 .virt = 0x0UL,
17 .phys = 0x0UL,
Alexander Grafda6cfe12016-03-04 01:09:50 +010018 .size = 0x80000000UL,
19 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
20 PTE_BLOCK_NON_SHARE |
21 PTE_BLOCK_PXN | PTE_BLOCK_UXN
22 }, {
York Sunc7104e52016-06-24 16:46:22 -070023 .virt = 0x80000000UL,
24 .phys = 0x80000000UL,
Stephen Warrenfc23c1d2016-10-10 09:50:55 -060025 .size = 0x80000000UL,
Alexander Grafda6cfe12016-03-04 01:09:50 +010026 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
27 PTE_BLOCK_INNER_SHARE
28 }, {
29 /* List terminator */
30 0,
Stephen Warren9e549802015-10-05 12:09:01 -060031 }
Alexander Grafda6cfe12016-03-04 01:09:50 +010032};
Stephen Warren9e549802015-10-05 12:09:01 -060033
Alexander Grafda6cfe12016-03-04 01:09:50 +010034struct mm_region *mem_map = tegra_mem_map;