atyfb (2.6): Fix mem_refresh_rate for Mobility
PATCH 1/1 atyfb (2.6): Fix mem_refresh_rate for Mobility
This patch fixes mem_refresh_rate for Mobility chips (they use XL/XC values).
It also adds the missing Mobility PCI IDs and changes the chip name strings to include the P/M vs. L classification for all chips.
Signature · 3 lines
Ville Syrjälä [email protected] http://www.sci.fi/~syrjala/
drivers/video/aty/atyfb_base.c +4 -4
@@ -365,9 +365,9 @@ { PCI_CHIP_MACH64GS, "3D RAGE XL (Mach64 GS, PCI)", 230, 83, 63, ATI_CHIP_264XL }, { PCI_CHIP_MACH64LM, "3D RAGE Mobility P/M (Mach64 LM, AGP 2x)", 230, 83, 125, ATI_CHIP_MOBILITY }, - { PCI_CHIP_MACH64LN, "3D RAGE Mobility (Mach64 LN, AGP 2x)", 230, 83, 125, ATI_CHIP_MOBILITY }, - { PCI_CHIP_MACH64LR, "3D RAGE Mobility (Mach64 LR, PCI)", 230, 83, 125, ATI_CHIP_MOBILITY }, - { PCI_CHIP_MACH64LS, "3D RAGE Mobility (Mach64 LS, PCI)", 230, 83, 125, ATI_CHIP_MOBILITY }, + { PCI_CHIP_MACH64LN, "3D RAGE Mobility L (Mach64 LN, AGP 2x)", 230, 83, 125, ATI_CHIP_MOBILITY }, + { PCI_CHIP_MACH64LR, "3D RAGE Mobility P/M (Mach64 LR, PCI)", 230, 83, 125, ATI_CHIP_MOBILITY }, + { PCI_CHIP_MACH64LS, "3D RAGE Mobility L (Mach64 LS, PCI)", 230, 83, 125, ATI_CHIP_MOBILITY }, #endif /* CONFIG_FB_ATY_CT */ };
@@ -1993,7 +1993,7 @@const int *refresh_tbl;int i, size; -if (IS_XL (par->pci_id)) { +if (IS_XL (par->pci_id) ||IS_MOBILITY (par->pci_id)) { refresh_tbl = ragexl_tbl; size =sizeof (ragexl_tbl)/sizeof (int ); }else {
include/video/mach64.h +6 -1
@@ -912,9 +912,14 @@#define GI_CHIP_ID 0x4749/* RAGE PRO, BGA, PCI33 only */ #define GP_CHIP_ID 0x4750/* RAGE PRO, PQFP, PCI33, full 3D */ #define GQ_CHIP_ID 0x4751/* RAGE PRO, PQFP, PCI33, limited 3D */ -#define LM_CHIP_ID 0x4c4d/* RAGE Mobility PCI */ + +#define LM_CHIP_ID 0x4c4d/* RAGE Mobility AGP, full function */ #define LN_CHIP_ID 0x4c4e/* RAGE Mobility AGP */ +#define LR_CHIP_ID 0x4c52/* RAGE Mobility PCI, full function */ +#define LS_CHIP_ID 0x4c53/* RAGE Mobility PCI */ +#define IS_MOBILITY (id) ((id)==LM_CHIP_ID || (id)==LN_CHIP_ID || \ + (id)==LR_CHIP_ID || (id)==LS_CHIP_ID)/* Mach64 major ASIC revisions */ #define MACH64_ASIC_NEC_VT_A3 0x08