2 * Copyright (c) 2017 Tuomas Tynkkynen
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/armv8/mmu.h>
12 static struct mm_region qemu_arm64_mem_map[] = {
18 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
25 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
27 PTE_BLOCK_PXN | PTE_BLOCK_UXN
33 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
41 struct mm_region *mem_map = qemu_arm64_mem_map;
51 if (fdtdec_setup_memory_size() != 0)
57 int dram_init_banksize(void)
59 fdtdec_setup_memory_banksize();
64 void *board_fdt_blob_setup(void)
66 /* QEMU loads a generated DTB for us at the start of RAM. */
67 return (void *)CONFIG_SYS_SDRAM_BASE;