| // SPDX-License-Identifier: GPL-2.0+ |
| * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ |
| * Lokesh Vutla <lokeshvutla@ti.com> |
| * (This file is derived from arch/arm/mach-zynqmp/cpu.c) |
| #include <asm/armv8/mmu.h> |
| /* NR_DRAM_BANKS + 32bit IO + 64bit IO + terminator */ |
| #define NR_MMU_REGIONS (CONFIG_NR_DRAM_BANKS + 3) |
| struct mm_region am654_mem_map[NR_MMU_REGIONS] = { |
| .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | |
| .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | |
| struct mm_region *mem_map = am654_mem_map; |