PM / OPP: Support adjusting OPP voltages at runtime
authorFinley Xiao <finley.xiao@rock-chips.com>
Mon, 31 Oct 2016 10:10:59 +0000 (18:10 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 4 Nov 2016 11:48:23 +0000 (19:48 +0800)
commitd471e018c061f56e5d78d82e454b54c9beb576bc
tree0be382069e9d635ad5c6842544e4f56dd3fae427
parentb675a6dc9389d5ae4b77e4a852c8665df9d2825f
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.

Change-Id: Ia6dddc0976f116555965f784794b8eca37582737
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
drivers/base/power/opp/core.c
include/linux/pm_opp.h