Commit 01a9180b authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] fbdev: 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=4Signed-off-by: default avatarOlaf Hering <olh@suse.de>
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3105fb6e
...@@ -2191,6 +2191,14 @@ static int __init aty_init(struct fb_info *info, const char *name) ...@@ -2191,6 +2191,14 @@ static int __init aty_init(struct fb_info *info, const char *name)
par->aty_cmap_regs = par->aty_cmap_regs =
(struct aty_cmap_regs __iomem *) (par->ati_regbase + 0xc0); (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) if (pll)
par->pll_limits.pll_max = pll; par->pll_limits.pll_max = pll;
if (mclk) if (mclk)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment