cpufreq: mediatek: Raise proc and sram max voltage for MT7622/7623
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fri, 24 Mar 2023 10:11:30 +0000 (18:11 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 30 Mar 2023 03:50:02 +0000 (09:20 +0530)
commit0883426fd07e39355362e3f2eb9aee1a154dcaf6
tree869a14b2f483c75ded9fc392bf714ea016c687e3
parentd3296bb4cafd4bad4a5cf2eeab9d19cc94f9e30e
cpufreq: mediatek: Raise proc and sram max voltage for MT7622/7623

During the addition of SRAM voltage tracking for CCI scaling, this
driver got some voltage limits set for the vtrack algorithm: these
were moved to platform data first, then enforced in a later commit
6a17b3876bc8 ("cpufreq: mediatek: Refine mtk_cpufreq_voltage_tracking()")
using these as max values for the regulator_set_voltage() calls.

In this case, the vsram/vproc constraints for MT7622 and MT7623
were supposed to be the same as MT2701 (and a number of other SoCs),
but that turned out to be a mistake because the aforementioned two
SoCs' maximum voltage for both VPROC and VPROC_SRAM is 1.36V.

Fix that by adding new platform data for MT7622/7623 declaring the
right {proc,sram}_max_volt parameter.

Fixes: ead858bd128d ("cpufreq: mediatek: Move voltage limits to platform data")
Fixes: 6a17b3876bc8 ("cpufreq: mediatek: Refine mtk_cpufreq_voltage_tracking()")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Jia-Wei Chang <jia-wei.chang@mediatek.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq.c