cpufreq: qcom-nvmem: Enable cpufreq for ipq53xx
authorVaradarajan Narayanan <quic_varada@quicinc.com>
Tue, 31 Oct 2023 07:11:38 +0000 (12:41 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 2 Nov 2023 05:34:53 +0000 (11:04 +0530)
commitba5a61a08d83b18b99c461b4ddb9009947a4aa0e
treec1817280d9e5662693af9248e53d5ac2cab829a3
parent0b9cd949136f1b63f7aa9424b6e583a1ab261e36
cpufreq: qcom-nvmem: Enable cpufreq for ipq53xx

IPQ53xx 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 ipq53xx 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.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
[ Viresh: Fixed subject ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq-dt-platdev.c
drivers/cpufreq/qcom-cpufreq-nvmem.c