From 20aad28ba5d62f1618408c264384d0b2ad7417db Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 22 May 2023 23:25:48 +0100 Subject: [PATCH] cpufreq: mediatek: don't request unsupported voltage PMICs on MT7622 and MT7623 boards only support up to 1350000uV despite the SoC's processor and SRAM voltage can be up to 1360000uV. As a work-around specify max. processor and SRAM voltage as 1350000uV to avoid requesting an unsupported voltage from the regulator. Signed-off-by: Daniel Golle --- drivers/cpufreq/mediatek-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -696,9 +696,9 @@ static const struct mtk_cpufreq_platform static const struct mtk_cpufreq_platform_data mt7622_platform_data = { .min_volt_shift = 100000, .max_volt_shift = 200000, - .proc_max_volt = 1360000, + .proc_max_volt = 1350000, .sram_min_volt = 0, - .sram_max_volt = 1360000, + .sram_max_volt = 1350000, .ccifreq_supported = false, };