public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: Antonino Daplas <adaplas@pol.net>, linux-kernel@vger.kernel.org
Subject: [PATCH] set correct mclk/xclk values for aty in ibook
Date: Mon, 1 Nov 2004 16:47:23 +0100	[thread overview]
Message-ID: <20041101154723.GA14379@suse.de> (raw)
In-Reply-To: <20041101141622.GA14335@suse.de>


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

      reply	other threads:[~2004-11-01 16:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-01 14:16 [PATCH] atyfb_base.c requires atyfb_cursor() Olaf Hering
2004-11-01 15:47 ` Olaf Hering [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041101154723.GA14379@suse.de \
    --to=olh@suse.de \
    --cc=adaplas@pol.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox