Commit 8b17f17a authored by Georgi Djakov's avatar Georgi Djakov Committed by Viresh Kumar

cpufreq: dt: Add support for interconnect bandwidth scaling

In addition to clocks and regulators, some devices can scale the bandwidth
of their on-chip interconnect - for example between CPU and DDR memory. Add
support for that, so that platforms which support it can make use of it.
Signed-off-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
Reviewed-by: default avatarMatthias Kaehlcke <mka@chromium.org>
[ Viresh: Reused dev_pm_opp_of_find_icc_paths(). Also drop the depends
	  on from Kconfig. ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>

fixup! cpufreq: dt: Add support for interconnect bandwidth scaling
parent fe2af402
...@@ -121,6 +121,10 @@ static int resources_available(void) ...@@ -121,6 +121,10 @@ static int resources_available(void)
clk_put(cpu_clk); clk_put(cpu_clk);
ret = dev_pm_opp_of_find_icc_paths(cpu_dev, NULL);
if (ret)
return ret;
name = find_supply_name(cpu_dev); name = find_supply_name(cpu_dev);
/* Platform doesn't require regulator */ /* Platform doesn't require regulator */
if (!name) if (!name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment