cpufreq: qcom-nvmem: add support for IPQ6018
authorRobert Marko <robimarko@gmail.com>
Wed, 25 Oct 2023 09:27:57 +0000 (14:57 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 25 Oct 2023 10:20:45 +0000 (15:50 +0530)
commit47e161a7873b0891f4e01a69a839f6161d816ea8
treed729559c77bf858bd887647d1cef208ab1d16a2c
parent4b55159b6668cf9c88b432401d22101dd6a10c12
cpufreq: qcom-nvmem: add support for IPQ6018

IPQ6018 SoC series comes in multiple SKU-s, and not all of them support
high frequency OPP points.

SoC itself does however have a single bit in QFPROM to indicate the CPU
speed-bin.
That bit is used to indicate frequency limit of 1.5GHz, but that alone is
not enough as IPQ6000 only goes up to 1.2GHz, but SMEM ID can be used to
limit it further.

IPQ6018 compatible is blacklisted from DT platdev as the cpufreq device
will get created by NVMEM CPUFreq driver.

Signed-off-by: Robert Marko <robimarko@gmail.com>
[ Viresh: Fixed rebase conflict. ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq-dt-platdev.c
drivers/cpufreq/qcom-cpufreq-nvmem.c