opp: Add support for parsing interconnect bandwidth
authorGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 12 May 2020 12:53:21 +0000 (15:53 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 29 May 2020 04:45:08 +0000 (10:15 +0530)
commit6d3f922c46f2e91f63c92f8dd28381f097082912
tree96d8512a0b37295ca4aa3d688d907b8643c74916
parent90562c8182702058f9c8e562e067ec43cd3953dd
opp: Add support for parsing interconnect bandwidth

The OPP bindings now support bandwidth values, so add support to parse it
from device tree and store it into the new dev_pm_opp_icc_bw struct, which
is part of the dev_pm_opp.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
[ Viresh: Create _read_bw() and use it, renamed _of_find_icc_paths() to
  dev_pm_opp_of_find_icc_paths(), exported it and made opp_table
  argument optional. Also drop the depends on from Kconfig. ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/of.c
drivers/opp/opp.h
include/linux/pm_opp.h