Skip to contentSkip to conversation

atyfb: force 29MHz xtal on G3 PowerBooks

PATCH New Antonino A. Daplas 1 participant 1 message Sep 15, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 8/12 atyfb: force 29MHz xtal on G3 PowerBooks

From: Olaf Hering <[email protected]>

The atyfb does not work on my 233MHz PowerBook with Mach64 LP, when the kernel is booted from firmware. aty_ld_pll_ct() returns 0x22 and xtal remains at 14.31818. When booted from MacOS, aty_ld_pll_ct() returns 0x3c and xtal is changed to 29.498928.
Google indicates that all 4 PowerBook models need the higher value.

---

 drivers/video/aty/atyfb_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/aty/atyfb_base.c +1 -1
index abe0c43..440ecb7 100644
@@ -2409,7 +2409,7 @@ #ifdef CONFIG_FB_ATY_CT
 				diff1 = -diff1;
 			if (diff2 < 0)
 				diff2 = -diff2;
-			if (diff2 < diff1) {
+			if (diff2 < diff1 || (M64_HAS(G3_PB_1024x768))) {
 				par->ref_clk_per = 1000000000000ULL / 29498928;
 				xtal = "29.498928";
 			}

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/