1 // SPDX-License-Identifier: GPL-2.0
3 * Configuration for MediaTek MT8518 SoC
5 * Copyright (C) 2019 MediaTek Inc.
6 * Author: Mingming Lee <mingming.lee@mediatek.com>
15 #include <asm/arch/misc.h>
16 #include <asm/armv8/mmu.h>
17 #include <asm/sections.h>
18 #include <dm/uclass.h>
19 #include <dt-bindings/clock/mt8518-clk.h>
21 DECLARE_GLOBAL_DATA_PTR;
27 ret = fdtdec_setup_memory_banksize();
31 return fdtdec_setup_mem_size_base();
34 int dram_init_banksize(void)
36 gd->bd->bi_dram[0].start = gd->ram_base;
37 gd->bd->bi_dram[0].size = gd->ram_size;
42 void reset_cpu(ulong addr)
47 int print_cpuinfo(void)
49 printf("CPU: MediaTek MT8518\n");
53 static struct mm_region mt8518_mem_map[] = {
59 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
64 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
66 PTE_BLOCK_PXN | PTE_BLOCK_UXN
72 struct mm_region *mem_map = mt8518_mem_map;