public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sellout Bessie <sellout@beautyisfleeting.com>
To: linux-kernel@vger.kernel.org
Subject: Radeonfb Xpress 200M RC410 support patch
Date: Mon, 17 Sep 2007 04:31:07 -0500	[thread overview]
Message-ID: <20070917093107.GB5013@adam> (raw)

Ok, notthing special, and this is my first pqatch so forgive me if my method is off, however the following makes
radeonfb work ith the 200m Xpress RC410. In my tests it was terribly unstable and would freeze until I set a refresh rate in the kernel argument to 75.

e.g video=radeonfb:1280x800@75

Now it is rock solid.

Please CC me as well as I am not on the list...


diff -ur linux-2.6.22-vanilla/drivers/video/aty/ati_ids.h linux-2.6.22-vanilla.dev/drivers/video/aty/ati_ids.h
--- linux-2.6.22-suspend2-r1/drivers/video/aty/ati_ids.h        2007-07-08 23:32:17.000000000 +0000
+++ linux-2.6.22-suspend2-r1.dev/drivers/video/aty/ati_ids.h    2007-09-16 14:08:24.000000000 +0000
@@ -210,3 +210,4 @@
 #define PCI_CHIP_RS350_7834             0x7834
 #define PCI_CHIP_RS350_7835             0x7835
 #define PCI_CHIP_RS480_5955             0x5955
+#define PCI_CHIP_RC410_5A62             0x5A62
diff -ur linux-2.6.22-vanilla/drivers/video/aty/radeon_base.c linux-2.6.22-vanilla.dev/drivers/video/aty/radeon_base.c
--- linux-2.6.22-vanilla/drivers/video/aty/radeon_base.c        2007-07-08 23:32:17.000000000 +0000
+++ linux-2.6.22-vanilla.dev/drivers/video/aty/radeon_base.c    2007-09-16 14:05:50.000000000 +0000
@@ -102,6 +102,7 @@
 static struct pci_device_id radeonfb_pci_table[] = {
         /* Radeon Xpress 200m */
        CHIP_DEF(PCI_CHIP_RS480_5955,   RS480,  CHIP_HAS_CRTC2 | CHIP_IS_IGP | CHIP_IS_MOBILITY),
+       CHIP_DEF(PCI_CHIP_RC410_5A62,   RC410,  CHIP_HAS_CRTC2 | CHIP_IS_IGP | CHIP_IS_MOBILITY),
        /* Mobility M6 */
        CHIP_DEF(PCI_CHIP_RADEON_LY,    RV100,  CHIP_HAS_CRTC2 | CHIP_IS_MOBILITY),
        CHIP_DEF(PCI_CHIP_RADEON_LZ,    RV100,  CHIP_HAS_CRTC2 | CHIP_IS_MOBILITY),
@@ -1997,6 +1998,7 @@
         if ((rinfo->family == CHIP_FAMILY_RS100) ||
             (rinfo->family == CHIP_FAMILY_RS200) ||
             (rinfo->family == CHIP_FAMILY_RS300) ||
+            (rinfo->family == CHIP_FAMILY_RC410) ||
            (rinfo->family == CHIP_FAMILY_RS480) ) {
           u32 tom = INREG(NB_TOM);
           tmp = ((((tom >> 16) - (tom & 0xffff) + 1) << 6) * 1024);
diff -ur linux-2.6.22-vanilla/drivers/video/aty/radeonfb.h linux-2.6.22-vanilla.dev/drivers/video/aty/radeonfb.h
--- linux-2.6.22-vanilla/drivers/video/aty/radeonfb.h   2007-07-08 23:32:17.000000000 +0000
+++ linux-2.6.22-vanilla.dev/drivers/video/aty/radeonfb.h       2007-09-16 14:14:05.000000000 +0000
@@ -48,6 +48,7 @@
        CHIP_FAMILY_RV350,
        CHIP_FAMILY_RV380,    /* RV370/RV380/M22/M24 */
        CHIP_FAMILY_R420,     /* R420/R423/M18 */
+       CHIP_FAMILY_RC410,
        CHIP_FAMILY_RS480,
        CHIP_FAMILY_LAST,
 };
@@ -66,7 +67,8 @@
                                ((rinfo)->family == CHIP_FAMILY_R350)  || \
                                ((rinfo)->family == CHIP_FAMILY_RV380) || \
                                ((rinfo)->family == CHIP_FAMILY_R420)  || \
-                               ((rinfo)->family == CHIP_FAMILY_RS480) )
+                               ((rinfo)->family == CHIP_FAMILY_RC410) || \
+                               ((rinfo)->family == CHIP_FAMILY_RS480))

 /*
  * Chip flags


-- 
~Sellout Bessie
____________________________________________________
Website: http://beautyisfleeting.com
    IRC: sellout@irc.adullamirc.net:7777
  Gtalk: sellout@beautyisfleeting.com
ICQ/AIM: 172570138
  Yahoo: sellout172570138
    MSN: sellout@beautyisfleeting.com
____________________________________________________
PGP Key: http://beautyisfleeting.com/0xA0631FD6.asc
____________________________________________________
 hackerkey://v4sw6HPRU$hw6$ln8pr8FPS$ck7ma6u9L$w2m
 5l7Gi52e4t1b9LOen7a2XINs4Sr4p-5.63/0.21g5ACGOPRTZ
____________________________________________________
___________Registered Linux User #446190____________
____________________________________________________

                 reply	other threads:[~2007-09-17  9:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20070917093107.GB5013@adam \
    --to=sellout@beautyisfleeting.com \
    --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