Commit 159dde93692ef549a0b2012c9f25feb4df638c9c
Committed by
Linus Torvalds
1 parent
b4e124c138
Exists in
master
and in
20 other branches
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>
Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff
drivers/video/aty/atyfb_base.c
... | ... | @@ -2377,6 +2377,9 @@ |
2377 | 2377 | /* for many chips, the mclk is 67 MHz for SDRAM, 63 MHz otherwise */ |
2378 | 2378 | if (par->pll_limits.mclk == 67 && par->ram_type < SDRAM) |
2379 | 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 | 2384 | #endif |
2382 | 2385 |