cpufreq: qcom: Read voltage LUT and populate OPP
authorTaniya Das <tdas@codeaurora.org>
Thu, 31 Jan 2019 17:32:50 +0000 (23:02 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 Feb 2019 04:06:25 +0000 (09:36 +0530)
commit55538fbc79e926f159a5abcc571ba1c02529a3d1
treeff892474f019be1a4655478c7c2161ffefb203b0
parentf896d06665ec8ae09f6412a47b97863d9ef8ff64
cpufreq: qcom: Read voltage LUT and populate OPP

Add support to read the voltage look up table and populate OPP for all
corresponding CPUS for consumers like the energy model could use the
frequency and voltage from the OPP tables. Also update the logic to not add
duplicate OPPs.

Tested-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c