Skip to content

Commit

Permalink
atyfb: halve XCLK with Mobility and 32bit memory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ville Syrjala authored and Linus Torvalds committed May 8, 2007
1 parent b4e124c commit 159dde9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
if (par->pll_limits.mclk == 67 && par->ram_type < SDRAM)
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

Expand Down
1 change: 1 addition & 0 deletions include/video/mach64.h
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@
#define SDRAM 4
#define SGRAM 5
#define WRAM 6
#define SDRAM32 6

#define DAC_INTERNAL 0x00
#define DAC_IBMRGB514 0x01
Expand Down

0 comments on commit 159dde9

Please sign in to comment.