opp: Add apis to retrieve opps with interconnect bandwidth
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 4 May 2022 08:17:32 +0000 (10:17 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 4 May 2022 10:08:06 +0000 (15:38 +0530)
commit00ce3873f730fb24c657854ec04374358e711838
tree9fb2fccf28d53878d742920a8b62f3087a14ad93
parent3e1fac9324f8feaeffc724fd9aca7709caa6d3cc
opp: Add apis to retrieve opps with interconnect bandwidth

Add dev_pm_opp_find_bw_ceil and dev_pm_opp_find_bw_floor to retrieve opps
based on interconnect associated with the opp and bandwidth. The index
variable is the index of the interconnect as specified in the opp table
in Devicetree.

Co-developed-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h