This provides a clk_rate_mult_range_round() helper for use by some of the CPG PLL ranged multipliers, following the same approach as used by the div ranges.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -94,6 +94,9 @@ int clk_rate_table_find(struct clk *clk, · 93 unmodified lines | |||
| 94 | long clk_rate_div_range_round(struct clk *clk, unsigned int div_min, | 94 | long clk_rate_div_range_round(struct clk *clk, unsigned int div_min, |
| 95 | unsigned int div_max, unsigned long rate); | 95 | unsigned int div_max, unsigned long rate); |
| 96 | 96 | ||
| 97 | long clk_rate_mult_range_round(struct clk *clk, unsigned int mult_min, | ||
| 98 | unsigned int mult_max, unsigned long rate); | ||
| 99 | |||
| 97 | long clk_round_parent(struct clk *clk, unsigned long target, | 100 | long clk_round_parent(struct clk *clk, unsigned long target, |
| 98 | unsigned long *best_freq, unsigned long *parent_freq, | 101 | unsigned long *best_freq, unsigned long *parent_freq, |
| 99 | unsigned int div_min, unsigned int div_max); | 102 | unsigned int div_min, unsigned int div_max); |