| // SPDX-License-Identifier: GPL-2.0 |
| * Copyright (C) 2021 MediaTek Inc. |
| * Copyright (C) 2021 BayLibre, SAS |
| * Author: Fabien Parent <fparent@baylibre.com> |
| #include <asm/arch/misc.h> |
| #include <asm/armv8/mmu.h> |
| #include <asm/sections.h> |
| #include <dt-bindings/clock/mt8516-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; |
| int mtk_pll_early_init(void) |
| int mtk_soc_early_init(void) |
| printf("CPU: MediaTek MT8183\n"); |
| static struct mm_region mt8183_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 = mt8183_mem_map; |