Changeset 4125

Show
Ignore:
Timestamp:
08/31/06 23:00:44 (7 years ago)
Author:
ruik
Message:

Backport VT8237A and VT8251 support

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4120 r4125  
    3232                    Drop the fix_hstcfg parameter (2.6 backport) 
    3333  Module i2c-viapro: Fix compilation with kernels < 2.4.21 
     34                     Add VT8237A and VT8251 
    3435  Module lm83: Add LM82 support (2.6 backport) 
    3536  Module w83781d: Use real-time alarm registers when possible (2.6 backport) 
     
    7778                          Check for root user at startup 
    7879                          Attempt to be slighly more user-friendly 
     80                          Add VT8237A and VT8251 
    7981 
    8082 
  • lm-sensors/trunk/kernel/busses/i2c-viapro.c

    r4039 r4125  
    3535   VT8235             0x3177             yes 
    3636   VT8237R            0x3227             yes 
     37   VT8237A            0x3337             yes 
     38   VT8251             0x3287             yes 
    3739 
    3840   Note: we assume there can only be one device, with one SMBus interface. 
     
    6163#ifndef PCI_DEVICE_ID_VIA_8237 
    6264#define PCI_DEVICE_ID_VIA_8237  0x3227 
     65#endif 
     66/* 8237A is undefined as for the kernel 2.4.33 */ 
     67#ifndef PCI_DEVICE_ID_VIA_8237A 
     68#define PCI_DEVICE_ID_VIA_8237A 0x3337 
     69#endif 
     70/* 8251 is undefined as for the kernel 2.4.33 */ 
     71#ifndef PCI_DEVICE_ID_VIA_8251 
     72#define PCI_DEVICE_ID_VIA_8251  0x3287 
    6373#endif 
    6474 
     
    409419 
    410420        switch (id->device) { 
     421        case PCI_DEVICE_ID_VIA_8251: 
    411422        case PCI_DEVICE_ID_VIA_8237: 
     423        case PCI_DEVICE_ID_VIA_8237A: 
    412424        case PCI_DEVICE_ID_VIA_8235: 
    413425        case PCI_DEVICE_ID_VIA_8233A: 
     
    486498        { 
    487499                .vendor         = PCI_VENDOR_ID_VIA, 
     500                .device         = PCI_DEVICE_ID_VIA_8237A, 
     501                .subvendor      = PCI_ANY_ID, 
     502                .subdevice      = PCI_ANY_ID, 
     503                .driver_data    = SMBBA3 
     504        }, 
     505        { 
     506                .vendor         = PCI_VENDOR_ID_VIA, 
    488507                .device         = PCI_DEVICE_ID_VIA_8231_4, 
    489508                .subvendor      = PCI_ANY_ID, 
    490509                .subdevice      = PCI_ANY_ID, 
    491510                .driver_data    = SMBBA1, 
     511        }, 
     512        { 
     513                .vendor         = PCI_VENDOR_ID_VIA, 
     514                .device         = PCI_DEVICE_ID_VIA_8251, 
     515                .subvendor      = PCI_ANY_ID, 
     516                .subdevice      = PCI_ANY_ID, 
     517                .driver_data    = SMBBA3 
    492518        }, 
    493519        { 0, }