1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
6 * Lokesh Vutla <lokeshvutla@ti.com>
7 * (This file is derived from arch/arm/mach-zynqmp/cpu.c)
12 #include <asm/system.h>
13 #include <asm/armv8/mmu.h>
15 /* NR_DRAM_BANKS + 32bit IO + 64bit IO + terminator */
16 #define NR_MMU_REGIONS (CONFIG_NR_DRAM_BANKS + 3)
18 /* ToDo: Add 64bit IO */
19 struct mm_region am654_mem_map[NR_MMU_REGIONS] = {
24 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
26 PTE_BLOCK_PXN | PTE_BLOCK_UXN
31 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
34 .virt = 0x880000000UL,
35 .phys = 0x880000000UL,
37 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
45 struct mm_region *mem_map = am654_mem_map;