Changeset 1199

Show
Ignore:
Timestamp:
10/13/01 05:51:49 (12 years ago)
Author:
mds
Message:

fix support for rev B0.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r1197 r1199  
    2626  Module i2c-piix4: Add Intel 82443MX and SMSC Victory66 support 
    2727  Module i2c-viapro: Add Via VT8233 support 
     28  Module sis5595: Fix support for rev B0 
    2829  Module via686a: Make limit initializations reliable 
    2930  Program sensors-detect: Add ALI1535 detection, 
  • lm-sensors/trunk/kernel/chips/sis5595.c

    r1193 r1199  
    2525    Supports following revisions: 
    2626        Version         PCI ID          PCI Revision 
    27         1               1039/0008       01 
    28         2               1039/0008       C0 
     27        1               1039/0008       AF or less 
     28        2               1039/0008       B0 or greater 
    2929 
    3030   Note: these chips contain a 0008 device which is incompatible with the 
     
    147147   OVER and HYST are really MAX and MIN. */ 
    148148 
    149 #define SIS5595_REG_TEMP        (( data->revision) >= 0xc0) ? \ 
     149#define REV2MIN 0xb0 
     150#define SIS5595_REG_TEMP        (( data->revision) >= REV2MIN) ? \ 
    150151                                        SIS5595_REG_IN(4) : 0x27 
    151 #define SIS5595_REG_TEMP_OVER   (( data->revision) >= 0xc0) ? \ 
     152#define SIS5595_REG_TEMP_OVER   (( data->revision) >= REV2MIN) ? \ 
    152153                                        SIS5595_REG_IN_MAX(4) : 0x39 
    153 #define SIS5595_REG_TEMP_HYST   (( data->revision) >= 0xc0) ? \ 
     154#define SIS5595_REG_TEMP_HYST   (( data->revision) >= REV2MIN) ? \ 
    154155                                        SIS5595_REG_IN_MIN(4) : 0x3a 
    155156 
     
    464465        /* Check revision and pin registers to determine whether 3 or 4 voltages */ 
    465466        pci_read_config_byte(s_bridge, SIS5595_REVISION_REG, &(data->revision)); 
    466         if(data->revision < 0xb0) { 
     467        if(data->revision < REV2MIN) { 
    467468                data->maxins = 3; 
    468469        } else {