| // SPDX-License-Identifier: GPL-2.0 |
| * Configuration for MediaTek MT8518 SoC |
| * Copyright (C) 2019 MediaTek Inc. |
| * Author: Mingming Lee <mingming.lee@mediatek.com> |
| #include <asm/arch/misc.h> |
| #include <asm/armv8/mmu.h> |
| #include <asm/global_data.h> |
| #include <asm/sections.h> |
| #include <dt-bindings/clock/mt8518-clk.h> |
| ret = fdtdec_setup_memory_banksize(); |
| return fdtdec_setup_mem_size_base(); |
| int dram_init_banksize(void) |
| gd->bd->bi_dram[0].start = gd->ram_base; |
| gd->bd->bi_dram[0].size = gd->ram_size; |
| printf("CPU: MediaTek MT8518\n"); |
| static struct mm_region mt8518_mem_map[] = { |
| .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE, |
| .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| struct mm_region *mem_map = mt8518_mem_map; |