Messages in this thread Patch in this message | | | Date | Mon, 1 Nov 2004 16:47:23 +0100 | From | Olaf Hering <> | Subject | [PATCH] set correct mclk/xclk values for aty in ibook |
| |
The first iBook needs special mclk/xclk values, or the screen will show only garbage. A patch like this went into 2.4.23. It stopped working after 2.6.10-rc1.
http://linux.bkbits.net:8080/linux-2.4/cset@3f966ca7mqKxZorh7Uw2SBAuVbv3mA
It was discussed here: http://marc.theaimsgroup.com/?t=106345749200001&r=1&w=4
Signed-off-by: Olaf Hering <olh@suse.de>
diff -purN linux-2.6.10-rc1-bk9.orig/drivers/video/aty/atyfb_base.c linux-2.6.10-rc1-bk9-olh/drivers/video/aty/atyfb_base.c --- linux-2.6.10-rc1-bk9.orig/drivers/video/aty/atyfb_base.c 2004-10-30 20:13:02.000000000 +0200 +++ linux-2.6.10-rc1-bk9-olh/drivers/video/aty/atyfb_base.c 2004-11-01 16:29:57.613561216 +0100 @@ -2190,6 +2190,14 @@ static int __init aty_init(struct fb_inf par->aty_cmap_regs = (struct aty_cmap_regs __iomem *) (par->ati_regbase + 0xc0); +#ifdef CONFIG_PPC_PMAC + /* The Apple iBook1 uses non-standard memory frequencies. We detect it + * and set the frequency manually. */ + if (machine_is_compatible("PowerBook2,1")) { + par->pll_limits.mclk = 70; + par->pll_limits.xclk = 53; + } +#endif if (pll) par->pll_limits.pll_max = pll; -- USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |