1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
6 #include <linux/types.h>
7 #include <asm/armv8/mmu.h>
11 static struct mm_region uniphier_mem_map[] = {
16 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
18 PTE_BLOCK_PXN | PTE_BLOCK_UXN
24 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
30 struct mm_region *mem_map = uniphier_mem_map;
32 void uniphier_mem_map_init(unsigned long dram_base, unsigned long dram_size)
34 uniphier_mem_map[0].size = dram_base;
35 uniphier_mem_map[1].virt = dram_base;
36 uniphier_mem_map[1].phys = dram_base;
37 uniphier_mem_map[1].size = dram_size;