Skip to contentSkip to conversation

atyfb: Halve XCLK with Mobility and 32bit memory

PATCH New Antonino A. Daplas 1 participant 1 message Apr 29, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 atyfb: Halve XCLK with Mobility and 32bit memory

From: Ville Syrjala <[email protected]>

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(+), 0 deletions(-)
drivers/video/aty/atyfb_base.c +3 -0
index 617dc0c..f594b9c 100644
@@ -2377,6 +2377,9 @@ #ifdef CONFIG_FB_ATY_CT
 		/* 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
 
include/video/mach64.h +1 -0
index 09a7f4a..a8332e5 100644
@@ -885,6 +885,7 @@ #define PSEUDO_EDO		3
 #define SDRAM			4
 #define SGRAM			5
 #define WRAM			6
+#define SDRAM32			6
 
 #define DAC_INTERNAL		0x00
 #define DAC_IBMRGB514		0x01

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/