]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/sh_clk.h
sh: clkfwk: Add a helper for rate rounding by divisor ranges.
[net-next-2.6.git] / include / linux / sh_clk.h
index 49f6e9b6eda20a22258cd8e95da9012f61f06b3e..4dca992f3093771993ac9d98d1233df5e2f33cfa 100644 (file)
@@ -119,6 +119,9 @@ int clk_rate_table_find(struct clk *clk,
                        struct cpufreq_frequency_table *freq_table,
                        unsigned long rate);
 
+long clk_rate_div_range_round(struct clk *clk, unsigned int div_min,
+                             unsigned int div_max, unsigned long rate);
+
 #define SH_CLK_MSTP32(_parent, _enable_reg, _enable_bit, _flags)       \
 {                                                                      \
        .parent         = _parent,                                      \