Skip to content

Commit 8b17f17

Browse files
Georgi Djakovvireshk
authored andcommitted
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: Georgi Djakov <[email protected]> Reviewed-by: Matthias Kaehlcke <[email protected]> [ Viresh: Reused dev_pm_opp_of_find_icc_paths(). Also drop the depends on from Kconfig. ] Signed-off-by: Viresh Kumar <[email protected]> fixup! cpufreq: dt: Add support for interconnect bandwidth scaling
1 parent fe2af40 commit 8b17f17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/cpufreq/cpufreq-dt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ static int resources_available(void)
121121

122122
clk_put(cpu_clk);
123123

124+
ret = dev_pm_opp_of_find_icc_paths(cpu_dev, NULL);
125+
if (ret)
126+
return ret;
127+
124128
name = find_supply_name(cpu_dev);
125129
/* Platform doesn't require regulator */
126130
if (!name)

0 commit comments

Comments
 (0)