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>
This commit is contained in:
Rex-BC Chen 2021-08-10 16:17:09 +08:00 committed by Nick Vaccaro
parent b6f6e01bcb
commit 909f2d04a0
2 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ config MEDIATEK_DRAM_DVFS
config MEDIATEK_DRAM_DVFS_LIMIT_FREQ_CNT config MEDIATEK_DRAM_DVFS_LIMIT_FREQ_CNT
bool bool
default y default y
select MEDIATEK_DRAM_DVFS depends on MEDIATEK_DRAM_DVFS
help help
This options limit DRAM frequency calibration count from total 7 to 3, This options limit DRAM frequency calibration count from total 7 to 3,
other frequency will directly use the low frequency shu result. other frequency will directly use the low frequency shu result.

View File

@ -10,6 +10,7 @@ config SOC_MEDIATEK_MT8192
select HAVE_DEBUG_RAM_SETUP select HAVE_DEBUG_RAM_SETUP
select HAVE_UART_SPECIAL select HAVE_UART_SPECIAL
select SOC_MEDIATEK_COMMON select SOC_MEDIATEK_COMMON
select MEDIATEK_DRAM_DVFS
if SOC_MEDIATEK_MT8192 if SOC_MEDIATEK_MT8192