]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: Parse 'opp-<prop>-<name>' bindings
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 Dec 2015 02:31:47 +0000 (08:01 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Dec 2015 22:08:51 +0000 (23:08 +0100)
commit6ba1abe2d489884304a888a95bc2202a8a78f8bc
treeb19abc542391b4c9d0e0280b1cc6064a43030572
parentb263734bb69cb0145ef6e7c7c65e09f6ade1db0b
PM / OPP: Parse 'opp-<prop>-<name>' bindings

OPP bindings (for few properties) allow a platform to choose a
value/range among a set of available options. The options are present as
opp-<prop>-<name>, where the platform needs to supply the <name> string.

The OPP properties which allow such an option are: opp-microvolt and
opp-microamp.

Add support to the OPP-core to parse these bindings, by introducing
dev_pm_opp_{set|put}_prop_name() APIs.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Lee Jones <lee.jones@linaro.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