diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-28 16:03:43 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-28 16:04:58 -0500 |
commit | fcd3c7796c62f6bf5300ee52a87b8654084c5ae4 (patch) | |
tree | 40c71a109fa5b38f4eab2e3de415d82aa32fa060 /drivers/video/cyber2000fb.c | |
parent | 1bae4ce27c9c90344f23c65ea6966c50ffeae2f5 (diff) |
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: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/video/cyber2000fb.c')
-rw-r--r-- | drivers/video/cyber2000fb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/cyber2000fb.c b/drivers/video/cyber2000fb.c index 0c1afd13ddd3..e946741ba2ed 100644 --- a/drivers/video/cyber2000fb.c +++ b/drivers/video/cyber2000fb.c | |||
@@ -681,9 +681,9 @@ cyber2000fb_decode_clock(struct par_info *hw, struct cfb_info *cfb, | |||
681 | * pll_ps_calc = best_div1 / (ref_ps * best_mult) | 681 | * pll_ps_calc = best_div1 / (ref_ps * best_mult) |
682 | */ | 682 | */ |
683 | best_diff = 0x7fffffff; | 683 | best_diff = 0x7fffffff; |
684 | best_mult = 32; | 684 | best_mult = 2; |
685 | best_div1 = 255; | 685 | best_div1 = 32; |
686 | for (t_div1 = 32; t_div1 > 1; t_div1 -= 1) { | 686 | for (t_div1 = 2; t_div1 < 32; t_div1 += 1) { |
687 | u_int rr, t_mult, t_pll_ps; | 687 | u_int rr, t_mult, t_pll_ps; |
688 | int diff; | 688 | int diff; |
689 | 689 | ||