lkml.org 
[lkml]   [2003]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] 2.4.21-rc2 Radeon 9000 fb update
Date
	This patch adds RV250 Radeon 9000 if ID to framebuffer driver, and fixes bug 
in radeonfb.c for Radeon PM in radeonfb_pci_register (missing break in case).

Marcello, please apply.
--
Best wishes,
Tanasković Toplica










diff -ruN orig/linux-2.4.21-rc2/drivers/video/radeonfb.c linux-2.4.21-rc2/drivers/video/radeonfb.c
--- orig/linux-2.4.21-rc2/drivers/video/radeonfb.c 2003-05-11 01:24:04.000000000 +0200
+++ linux-2.4.21-rc2/drivers/video/radeonfb.c 2003-05-11 01:42:11.000000000 +0200
@@ -101,7 +101,8 @@
RADEON_LW, /* Radeon Mobility M7 */
RADEON_LY, /* Radeon Mobility M6 */
RADEON_LZ, /* Radeon Mobility M6 */
- RADEON_PM /* Radeon Mobility P/M */
+ RADEON_PM, /* Radeon Mobility P/M */
+ RADEON_IF /* Radeon RV250 (9000) */
};


@@ -129,6 +130,7 @@
{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_LY, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_LY},
{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_LZ, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_LZ},
{ PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_PM, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_PM},
+ { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_RADEON_IF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RADEON_IF},
{ 0, }
};
MODULE_DEVICE_TABLE(pci, radeonfb_pci_table);
@@ -861,6 +863,11 @@
case PCI_DEVICE_ID_RADEON_PM:
strcpy(rinfo->name, "Radeon P/M ");
rinfo->hasCRTC2 = 1;
+ break;
+ case PCI_DEVICE_ID_RADEON_IF:
+ strcpy(rinfo->name, "Radeon 9000 ");
+ rinfo->hasCRTC2 = 1;
+ break;
default:
return -ENODEV;
}
@@ -893,7 +900,7 @@
rinfo->ram.cl = 2;
rinfo->ram.loop_latency = 16;
rinfo->ram.rloop = 16;
-
+
break;
case 1:
/* DDR SGRAM */
@@ -1053,18 +1060,18 @@
static void __devexit radeonfb_pci_unregister (struct pci_dev *pdev)
{
struct radeonfb_info *rinfo = pci_get_drvdata(pdev);
-
+
if (!rinfo)
return;
-
+
/* restore original state */
radeon_write_mode (rinfo, &rinfo->init_state);
-
+
unregister_framebuffer ((struct fb_info *) rinfo);
-
+
iounmap ((void*)rinfo->mmio_base);
iounmap ((void*)rinfo->fb_base);
-
+
release_mem_region (rinfo->mmio_base_phys,
pci_resource_len(pdev, 2));
release_mem_region (rinfo->fb_base_phys,
diff -ruN orig/linux-2.4.21-rc2/drivers/video/radeon.h linux-2.4.21-rc2/drivers/video/radeon.h
--- orig/linux-2.4.21-rc2/drivers/video/radeon.h 2003-05-11 02:21:56.000000000 +0200
+++ linux-2.4.21-rc2/drivers/video/radeon.h 2003-05-11 01:36:07.000000000 +0200
@@ -9,6 +9,7 @@
#define PCI_DEVICE_ID_RADEON_QG 0x5147
#define PCI_DEVICE_ID_RADEON_QY 0x5159
#define PCI_DEVICE_ID_RADEON_QZ 0x515a
+#define PCI_DEVICE_ID_RADEON_IF 0x4966
#define PCI_DEVICE_ID_RADEON_LW 0x4c57
#define PCI_DEVICE_ID_RADEON_LY 0x4c59
#define PCI_DEVICE_ID_RADEON_LZ 0x4c5a
\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.058 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site