]> asedeno.scripts.mit.edu Git - linux.git/commit
PM / OPP: Allow platform specific custom set_opp() callbacks
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 1 Dec 2016 10:58:21 +0000 (16:28 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 Dec 2016 01:27:59 +0000 (02:27 +0100)
commit4dab160eb1586f67e8ba7c55ffdd2373f7a5553e
tree661c8b2380f1483fb1ff3fde1b499e85e64f327e
parent947355850fcb3bb6549294316667d0f53bc03082
PM / OPP: Allow platform specific custom set_opp() callbacks

The generic set_opp() handler isn't sufficient for platforms with
complex DVFS.  For example, some TI platforms have multiple regulators
for a CPU device. The order in which various supplies need to be
programmed is only known to the platform code and its best to leave it
to it.

This patch implements APIs to register platform specific set_opp()
callback.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c
drivers/base/power/opp/opp.h
include/linux/pm_opp.h