Commit 7fdbc34e authored by Stephen Boyd's avatar Stephen Boyd Committed by Niklas Cassel
Browse files

PM / OPP: Support adjusting OPP voltages at runtime



On some SoCs the Adaptive Voltage Scaling (AVS) technique is
employed to optimize the operating voltage of a device. At a
given frequency, the hardware monitors dynamic factors and either
makes a suggestion for how much to adjust a voltage for the
current frequency, or it automatically adjusts the voltage
without software intervention. Add an API to the OPP library for
the former case, so that AVS type devices can update the voltages
for an OPP when the hardware determines the voltage should
change. The assumption is that drivers like CPUfreq or devfreq
will register for the OPP notifiers and adjust the voltage
according to suggestions that AVS makes.

Cc: Nishanth Menon <nm@ti.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
[georgi.djakov@linaro.org: drop RCU usage in dev_pm_opp_adjust_voltage()]
Signed-off-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
parent fb143f29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment