summaryrefslogtreecommitdiff
path: root/src/soc/mediatek
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.com>2022-08-15 10:17:48 +0800
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-08-27 15:59:41 +0000
commitb1c3b9963b5627bab9b05ce0eabc1369afad591d (patch)
tree18818084e706600682a7e3d2a3e5591548c70653 /src/soc/mediatek
parentf83b7d494e3ceb6bec11027ae5f21999ee5ad196 (diff)
soc/mediatek: Move emi.c to common folder
The emi.c is the same for MT8186 and MT8188, so we could move it to the common folder and reuse it. TEST=build pass BUG=b:236331724 Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: I225f1d07c973129172f01bf7f4d7f5d5abe7c02b Reviewed-on: https://review.coreboot.org/c/coreboot/+/66328 Reviewed-by: Yidi Lin <yidilin@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r--src/soc/mediatek/common/emi.c (renamed from src/soc/mediatek/mt8186/emi.c)5
-rw-r--r--src/soc/mediatek/mt8186/Makefile.inc4
2 files changed, 2 insertions, 7 deletions
diff --git a/src/soc/mediatek/mt8186/emi.c b/src/soc/mediatek/common/emi.c
index 4f300da793..d5470d2fd3 100644
--- a/src/soc/mediatek/mt8186/emi.c
+++ b/src/soc/mediatek/common/emi.c
@@ -1,10 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-/*
- * This file is created based on MT8186 Functional Specification
- * Chapter number: 4.8
- */
-
#include <assert.h>
#include <cbmem.h>
#include <commonlib/bsd/mem_chip_info.h>
diff --git a/src/soc/mediatek/mt8186/Makefile.inc b/src/soc/mediatek/mt8186/Makefile.inc
index f214bbdaef..5f070a0b06 100644
--- a/src/soc/mediatek/mt8186/Makefile.inc
+++ b/src/soc/mediatek/mt8186/Makefile.inc
@@ -19,7 +19,7 @@ bootblock-y += ../common/wdt.c ../common/wdt_req.c wdt.c
romstage-y += ../common/cbmem.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
@@ -31,7 +31,7 @@ ramstage-y += ../common/ddp.c ddp.c
ramstage-y += devapc.c
ramstage-y += ../common/dfd.c
ramstage-y += ../common/dsi.c ../common/mtk_mipi_dphy.c
-ramstage-y += emi.c
+ramstage-y += ../common/emi.c
ramstage-y += ../common/mcu.c
ramstage-y += ../common/mmu_operations.c ../common/mmu_cmops.c
ramstage-$(CONFIG_COMMONLIB_STORAGE_MMC) += ../common/msdc.c msdc.c