]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: qcom-nvmem: Enable cpufreq for ipq5424
authorMd Sadre Alam <quic_mdalam@quicinc.com>
Wed, 6 Aug 2025 11:28:06 +0000 (16:58 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Aug 2025 07:00:46 +0000 (12:30 +0530)
commit2b5066a3a19a2870f353f8783f1ee63e61b8e371
tree982f354dfdd87c8f23746ede8ad43209fe8d40c8
parent16d39e2bf96075dc266fdcf0f2507fc075c33676
cpufreq: qcom-nvmem: Enable cpufreq for ipq5424

IPQ5424 have different OPPs available for the CPU based on
SoC variant. This can be determined through use of an eFuse
register present in the silicon.

Added support for ipq5424 on nvmem driver which helps to
determine OPPs at runtime based on the eFuse register which
has the CPU frequency limits. opp-supported-hw dt binding
can be used to indicate the available OPPs for each limit.

nvmem driver also creates the "cpufreq-dt" platform_device after
passing the version matching data to the OPP framework so that the
cpufreq-dt handles the actual cpufreq implementation.

Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Signed-off-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
[ Changed '!=' based check to '==' based check ]
Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq-dt-platdev.c
drivers/cpufreq/qcom-cpufreq-nvmem.c