2 * Renesas RCar Gen3 memory map tables
4 * Copyright (C) 2017 Marek Vasut <marek.vasut@gmail.com>
6 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/armv8/mmu.h>
12 static struct mm_region r8a7795_mem_map[] = {
17 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
23 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
25 PTE_BLOCK_PXN | PTE_BLOCK_UXN
32 static struct mm_region r8a7796_mem_map[] = {
37 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
43 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
45 PTE_BLOCK_PXN | PTE_BLOCK_UXN
52 struct mm_region *mem_map = r8a7795_mem_map;
54 void rcar_gen3_memmap_fixup(void)
56 u32 cpu_type = rmobile_get_cpu_type();
59 case RMOBILE_CPU_TYPE_R8A7795:
60 mem_map = r8a7795_mem_map;
62 case RMOBILE_CPU_TYPE_R8A7796:
63 mem_map = r8a7796_mem_map;