Thread (4 messages) 4 messages, 1 author, 2007-04-28
STALE6995d

[patch 3/3] atyfb: Halve XCLK with Mobility and 32bit memory

From: Ville Syrjala <syrjala@sci.fi>
Date: 2007-04-28 18:18:22

Laptops with Rage Mobility and 32bit memory interface seem to require
halved XCLK to operate correctly.

---
 drivers/video/aty/atyfb_base.c |    3 +++
 include/video/mach64.h         |    1 +
 2 files changed, 4 insertions(+)

Index: linux-2.6.20.7/drivers/video/aty/atyfb_base.c
===================================================================
--- linux-2.6.20.7.orig/drivers/video/aty/atyfb_base.c
+++ linux-2.6.20.7/drivers/video/aty/atyfb_base.c
@@ -2430,6 +2430,9 @@ static int __devinit aty_init(struct fb_
 		/* 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
 
Index: linux-2.6.20.7/include/video/mach64.h
===================================================================
--- linux-2.6.20.7.orig/include/video/mach64.h
+++ linux-2.6.20.7/include/video/mach64.h
@@ -885,6 +885,7 @@
 #define SDRAM			4
 #define SGRAM			5
 #define WRAM			6
+#define SDRAM32			6
 
 #define DAC_INTERNAL		0x00
 #define DAC_IBMRGB514		0x01
-- 
Ville Syrj������������������l������������������
syrjala@sci.fi
http://www.sci.fi/~syrjala/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help