提交 fcd3c779 编写于 作者: R Russell King

VIDEO: cyberpro: select lowest multipler/divisor for PLL

The lowest closest multiplier/divisor combination should be used for
the PLL, not the largest.  Reverse the search order.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 1bae4ce2
...@@ -681,9 +681,9 @@ cyber2000fb_decode_clock(struct par_info *hw, struct cfb_info *cfb, ...@@ -681,9 +681,9 @@ cyber2000fb_decode_clock(struct par_info *hw, struct cfb_info *cfb,
* pll_ps_calc = best_div1 / (ref_ps * best_mult) * pll_ps_calc = best_div1 / (ref_ps * best_mult)
*/ */
best_diff = 0x7fffffff; best_diff = 0x7fffffff;
best_mult = 32; best_mult = 2;
best_div1 = 255; best_div1 = 32;
for (t_div1 = 32; t_div1 > 1; t_div1 -= 1) { for (t_div1 = 2; t_div1 < 32; t_div1 += 1) {
u_int rr, t_mult, t_pll_ps; u_int rr, t_mult, t_pll_ps;
int diff; int diff;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册