summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-08-10 16:17:09 +0800
committerNick Vaccaro <nvaccaro@google.com>2021-08-12 17:58:21 +0000
commit909f2d04a0c86b6d3464a6cc4e48048e31b2b6ad (patch)
treef9eef9f5d0774233e2cf500c00ab08c646116e6a /src
parentb6f6e01bcb8561628af122f2b84c67e53cdc5545 (diff)
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 <rex-bc.chen@mediatek.com> Change-Id: Ib81e4e48e863616ed1e36cd5c0000f4e2cfb5456 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56906 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/mediatek/common/Kconfig2
-rw-r--r--src/soc/mediatek/mt8192/Kconfig1
2 files changed, 2 insertions, 1 deletions
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