[PATCH] atyfb: force 29MHz xtal on G3 PowerBooks (fwd)
DORMANTno replies
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2007-08-26 08:41:09
---------- Forwarded message ---------- Date: Sat, 25 Aug 2007 11:13:58 +0200 From: Olaf Hering <redacted> To: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] atyfb: force 29MHz xtal on G3 PowerBooks 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. Signed-off-by: Olaf Hering <redacted>
--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c@@ -2411,7 +2411,7 @@ static int __devinit aty_init(struct fb_ 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"; }
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/