From 909f2d04a0c86b6d3464a6cc4e48048e31b2b6ad Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Tue, 10 Aug 2021 16:17:09 +0800 Subject: soc/mediatek: revise the dependency of DVFS config options The MEDIATEK_DRAM_DVFS_LIMIT_FREQ_CNT only makes sense if DVFS is enabled (e.g., MEDIATEK_DRAM_DVFS) so we should change it to depend on that instead of selecting DVFS. Signed-off-by: Rex-BC Chen Change-Id: Ib81e4e48e863616ed1e36cd5c0000f4e2cfb5456 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56906 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/common/Kconfig | 2 +- src/soc/mediatek/mt8192/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc') diff --git a/src/soc/mediatek/common/Kconfig b/src/soc/mediatek/common/Kconfig index 7411e483f1..ab24617d86 100644 --- a/src/soc/mediatek/common/Kconfig +++ b/src/soc/mediatek/common/Kconfig @@ -17,7 +17,7 @@ config MEDIATEK_DRAM_DVFS config MEDIATEK_DRAM_DVFS_LIMIT_FREQ_CNT bool default y - select MEDIATEK_DRAM_DVFS + depends on MEDIATEK_DRAM_DVFS help This options limit DRAM frequency calibration count from total 7 to 3, other frequency will directly use the low frequency shu result. diff --git a/src/soc/mediatek/mt8192/Kconfig b/src/soc/mediatek/mt8192/Kconfig index 21dcc7c478..94e4bd3d14 100644 --- a/src/soc/mediatek/mt8192/Kconfig +++ b/src/soc/mediatek/mt8192/Kconfig @@ -10,6 +10,7 @@ config SOC_MEDIATEK_MT8192 select HAVE_DEBUG_RAM_SETUP select HAVE_UART_SPECIAL select SOC_MEDIATEK_COMMON + select MEDIATEK_DRAM_DVFS if SOC_MEDIATEK_MT8192 -- cgit v1.2.3