diff options
author | Xi Chen <xixi.chen@mediatek.com> | 2022-08-15 10:18:04 +0800 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-08-27 16:00:18 +0000 |
commit | 3729b1c2a8b35265dad2d1e327ca39a8a95b296f (patch) | |
tree | 63ba361e34236621ddb05b54b4b0c528b08e92d4 | |
parent | b1c3b9963b5627bab9b05ce0eabc1369afad591d (diff) |
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 <xixi.chen@mediatek.com>
Change-Id: I14f3d971fe861cbd09cc86c8a5a1fb531bfe78d7
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66280
Reviewed-by: Yidi Lin <yidilin@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/soc/mediatek/mt8188/Kconfig | 1 | ||||
-rw-r--r-- | src/soc/mediatek/mt8188/Makefile.inc | 4 | ||||
-rw-r--r-- | src/soc/mediatek/mt8188/emi.c | 18 |
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 */ -} |