Commit 159dde93 authored by Ville Syrjala's avatar Ville Syrjala Committed by Linus Torvalds

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: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b4e124c1
...@@ -2377,6 +2377,9 @@ static int __devinit aty_init(struct fb_info *info) ...@@ -2377,6 +2377,9 @@ static int __devinit aty_init(struct fb_info *info)
/* for many chips, the mclk is 67 MHz for SDRAM, 63 MHz otherwise */ /* for many chips, the mclk is 67 MHz for SDRAM, 63 MHz otherwise */
if (par->pll_limits.mclk == 67 && par->ram_type < SDRAM) if (par->pll_limits.mclk == 67 && par->ram_type < SDRAM)
par->pll_limits.mclk = 63; par->pll_limits.mclk = 63;
/* Mobility + 32bit memory interface need halved XCLK. */
if (M64_HAS(MOBIL_BUS) && par->ram_type == SDRAM32)
par->pll_limits.xclk = (par->pll_limits.xclk + 1) >> 1;
} }
#endif #endif
......
...@@ -885,6 +885,7 @@ ...@@ -885,6 +885,7 @@
#define SDRAM 4 #define SDRAM 4
#define SGRAM 5 #define SGRAM 5
#define WRAM 6 #define WRAM 6
#define SDRAM32 6
#define DAC_INTERNAL 0x00 #define DAC_INTERNAL 0x00
#define DAC_IBMRGB514 0x01 #define DAC_IBMRGB514 0x01
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment