From 3729b1c2a8b35265dad2d1e327ca39a8a95b296f Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Mon, 15 Aug 2022 10:18:04 +0800 Subject: soc/mediatek/mt8188: Enable USE_CBMEM_DRAM_INFO The feature "USE_CBMEM_DRAM_INFO" is supported in MT8188. Therefore, we select this configuration to enable it. TEST=build pass BUG=b:233720142 Signed-off-by: Xi Chen Change-Id: I14f3d971fe861cbd09cc86c8a5a1fb531bfe78d7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66280 Reviewed-by: Yidi Lin Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) --- src/soc/mediatek/mt8188/Kconfig | 1 + src/soc/mediatek/mt8188/Makefile.inc | 4 ++-- src/soc/mediatek/mt8188/emi.c | 18 ------------------ 3 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 src/soc/mediatek/mt8188/emi.c (limited to 'src') 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 - -size_t sdram_size(void) -{ - return (size_t)4 * GiB; -} - -void mt_set_emi(struct dramc_param *dparam) -{ - /* Do nothing */ -} -- cgit v1.2.3