summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/mediatek/mt8188/Kconfig1
-rw-r--r--src/soc/mediatek/mt8188/Makefile.inc4
-rw-r--r--src/soc/mediatek/mt8188/emi.c18
3 files changed, 3 insertions, 20 deletions
diff --git a/src/soc/mediatek/mt8188/Kconfig b/src/soc/mediatek/mt8188/Kconfig
index 193b078516..1c733d4918 100644
--- a/src/soc/mediatek/mt8188/Kconfig
+++ b/src/soc/mediatek/mt8188/Kconfig
@@ -10,6 +10,7 @@ config SOC_MEDIATEK_MT8188
select FLASH_DUAL_IO_READ
select CACHE_MRC_SETTINGS
select MEDIATEK_BLOB_FAST_INIT
+ select USE_CBMEM_DRAM_INFO
if SOC_MEDIATEK_MT8188
diff --git a/src/soc/mediatek/mt8188/Makefile.inc b/src/soc/mediatek/mt8188/Makefile.inc
index 63ac435368..c0f736dac6 100644
--- a/src/soc/mediatek/mt8188/Makefile.inc
+++ b/src/soc/mediatek/mt8188/Makefile.inc
@@ -17,7 +17,7 @@ romstage-y += ../common/cbmem.c
romstage-y += ../common/clkbuf.c
romstage-y += ../common/dram_init.c
romstage-y += ../common/dramc_param.c
-romstage-y += emi.c
+romstage-y += ../common/emi.c
romstage-y += ../common/memory.c
romstage-y += ../common/memory_test.c
romstage-y += ../common/mmu_operations.c ../common/mmu_cmops.c
@@ -30,7 +30,7 @@ romstage-y += ../common/rtc.c ../common/rtc_osc_init.c ../common/rtc_mt6359p.c
ramstage-y += ../common/auxadc.c
ramstage-y += ../common/dfd.c
-ramstage-y += emi.c
+ramstage-y += ../common/emi.c
ramstage-y += ../common/mcu.c
ramstage-y += ../common/mcupm.c
ramstage-y += ../common/mmu_operations.c ../common/mmu_cmops.c
diff --git a/src/soc/mediatek/mt8188/emi.c b/src/soc/mediatek/mt8188/emi.c
deleted file mode 100644
index eebc0d4bf2..0000000000
--- a/src/soc/mediatek/mt8188/emi.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
-
-/*
- * This file is created based on MT8188 Functional Specification
- * Chapter number: 3.7
- */
-
-#include <soc/emi.h>
-
-size_t sdram_size(void)
-{
- return (size_t)4 * GiB;
-}
-
-void mt_set_emi(struct dramc_param *dparam)
-{
- /* Do nothing */
-}