1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <device/device.h>
6 #include <soc/devapc.h>
9 #include <soc/mmu_operations.h>
10 #include <soc/mtcmos.h>
14 void bootmem_platform_add_ranges(void)
17 bootmem_add_range(DFD_DUMP_ADDRESS
, DFD_DUMP_SIZE
, BM_MEM_RESERVED
);
20 static void soc_read_resources(struct device
*dev
)
22 ram_range(dev
, 0, (uintptr_t)_dram
, sdram_size());
25 static void soc_init(struct device
*dev
)
27 mtk_mmu_disable_l2c_sram();
30 /* ADSP is required for all MT8186 projects, so it's initialized in soc.c */
31 mtcmos_adsp_power_on();
32 mtcmos_protect_adsp_bus();
41 static struct device_operations soc_ops
= {
42 .read_resources
= soc_read_resources
,
43 .set_resources
= noop_set_resources
,
47 static void enable_soc_dev(struct device
*dev
)
52 struct chip_operations soc_mediatek_mt8186_ops
= {
53 .name
= "SOC Mediatek MT8186",
54 .enable_dev
= enable_soc_dev
,