diff options
author | Ville Syrjala <syrjala@sci.fi> | 2007-05-08 03:39:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:32 -0400 |
commit | 159dde93692ef549a0b2012c9f25feb4df638c9c (patch) | |
tree | 177bcb3ca3210664d3f594acaa560b8d9b8aa5bc /drivers/video/aty | |
parent | b4e124c138558a0cff51398ddff9a8e44ed0b529 (diff) |
atyfb: halve XCLK with Mobility and 32bit memory
Laptops with Rage Mobility and 32bit memory interface seem to require halved
XCLK to operate correctly.
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/atyfb_base.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index b61ab3b4c922..ea67dd902d4e 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -2377,6 +2377,9 @@ static int __devinit aty_init(struct fb_info *info) | |||
2377 | /* for many chips, the mclk is 67 MHz for SDRAM, 63 MHz otherwise */ | 2377 | /* for many chips, the mclk is 67 MHz for SDRAM, 63 MHz otherwise */ |
2378 | if (par->pll_limits.mclk == 67 && par->ram_type < SDRAM) | 2378 | if (par->pll_limits.mclk == 67 && par->ram_type < SDRAM) |
2379 | par->pll_limits.mclk = 63; | 2379 | par->pll_limits.mclk = 63; |
2380 | /* Mobility + 32bit memory interface need halved XCLK. */ | ||
2381 | if (M64_HAS(MOBIL_BUS) && par->ram_type == SDRAM32) | ||
2382 | par->pll_limits.xclk = (par->pll_limits.xclk + 1) >> 1; | ||
2380 | } | 2383 | } |
2381 | #endif | 2384 | #endif |
2382 | 2385 | ||