aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/opp/of.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2017-11-29 15:21:51 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2018-05-09 10:15:20 +0530
commit6e41766a6a504b605a105cc5ab8d276ea20052ba (patch)
tree23af704f99df7a70dd572efced4904b9f9246311 /drivers/opp/of.c
parentPM / Domain: Add support to parse domain's OPP table (diff)
downloadlinux-dev-6e41766a6a504b605a105cc5ab8d276ea20052ba.tar.xz
linux-dev-6e41766a6a504b605a105cc5ab8d276ea20052ba.zip
PM / Domain: Implement of_genpd_opp_to_performance_state()
This implements of_genpd_opp_to_performance_state() which can be used from the device drivers or the OPP core to find the performance state encoded in the "required-opps" property of a node. Normally this would be called only once for each OPP of the device for which the OPP table of the device is getting generated. Different platforms may encode the performance state differently using the OPP table (they may simply return value of opp-hz or opp-microvolt, or apply some algorithm on top of those values) and so a new callback ->opp_to_performance_state() is implemented to allow platform specific drivers to convert the power domain OPP to a performance state value. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/opp/of.c')
0 files changed, 0 insertions, 0 deletions