23 #include <linux/kernel.h>
24 #include <linux/errno.h>
28 #include <plat/clock.h>
72 static long omap2_dpllcore_round_rate(
unsigned long target_rate)
87 #ifdef DOWN_VARIABLE_DPLL
88 if (target_rate > high)
93 if (target_rate > low)
111 const struct dpll_data *
dd;
117 if ((rate == (cur_rate / 2)) && (mult == 2)) {
119 }
else if ((rate == (cur_rate * 2)) && (mult == 1)) {
121 }
else if (rate != cur_rate) {
122 valid_rate = omap2_dpllcore_round_rate(rate);
123 if (valid_rate != rate)
143 mult = ((rate / 2) / 1000000);
147 mult = (rate / 1000000);