aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/aty
diff options
context:
space:
mode:
authorVille Syrjala <syrjala@sci.fi>2007-05-08 03:39:44 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:32 -0400
commit94f45bcd1c29e773b6bf189ef7b9a3437d016320 (patch)
tree6995abee26c7b861de84add49f98582dd41f0638 /drivers/video/aty
parent2620c6e31735248ac26403558bd4279a8af619d8 (diff)
atyfb: increase SPLL delay
Wait 5 ms instead of 500 us for the SPLL to lock. This matches the recommendation in mach64 programmer's guide. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/aty')
-rw-r--r--drivers/video/aty/mach64_ct.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/video/aty/mach64_ct.c b/drivers/video/aty/mach64_ct.c
index 1fdcfdbf669b..cc9e9779b75f 100644
--- a/drivers/video/aty/mach64_ct.c
+++ b/drivers/video/aty/mach64_ct.c
@@ -608,12 +608,10 @@ static void aty_resume_pll_ct(const struct fb_info *info,
608 aty_st_pll_ct(SCLK_FB_DIV, pll->ct.sclk_fb_div, par); 608 aty_st_pll_ct(SCLK_FB_DIV, pll->ct.sclk_fb_div, par);
609 aty_st_pll_ct(SPLL_CNTL2, pll->ct.spll_cntl2, par); 609 aty_st_pll_ct(SPLL_CNTL2, pll->ct.spll_cntl2, par);
610 /* 610 /*
611 * The sclk has been started. However, I believe the first clock 611 * SCLK has been started. Wait for the PLL to lock. 5 ms
612 * ticks it generates are not very stable. Hope this primitive loop 612 * should be enough according to mach64 programmer's guide.
613 * helps for Rage Mobilities that sometimes crash when
614 * we switch to sclk. (Daniel Mantione, 13-05-2003)
615 */ 613 */
616 udelay(500); 614 mdelay(5);
617 } 615 }
618 616
619 aty_st_pll_ct(PLL_REF_DIV, pll->ct.pll_ref_div, par); 617 aty_st_pll_ct(PLL_REF_DIV, pll->ct.pll_ref_div, par);