Changeset 5368

Show
Ignore:
Timestamp:
10/22/08 16:16:51 (6 years ago)
Author:
khali
Message:

Add support for the VIA VX800/VX820 SMBus. Backported from Linux 2.6.

Location:
lm-sensors/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5367 r5368  
    1111                   Properly report bus arbitration lost (2.6 backport) 
    1212  Module i2c-piix4: Minor cleanups (2.6 backport) 
     13  Module i2c-viapro: Add VX800/VX820 support (2.6 backport) 
    1314  Program pwmconfig: Fix MINSTOP and MINSTART test functions (#2340) 
    1415                     Change default for MINTEMP from 0 to 20 degrees C 
  • lm-sensors/trunk/README

    r5231 r5368  
    6262  3Dfx Voodoo 3 and Banshee 
    6363  VIA Technologies VT82C586B, VT82C596A/B, VT82C686A/B, VT8231, 
    64                    VT8233, VT8233A, VT8235, VT8237R/A, VT8251, CX700 
     64                   VT8233, VT8233A, VT8235, VT8237R/A, VT8251, 
     65                   CX700, VX800/VX820 
    6566 
    6667 
  • lm-sensors/trunk/doc/busses/i2c-viapro

    r4319 r5368  
    1515  * VIA Technologies, Inc. CX700 
    1616    Datasheet: available on request and under NDA from VIA 
     17 
     18  * VIA Technologies, Inc. VX800/VX820 
     19    Datasheet: available on http://linux.via.com.tw 
    1720 
    1821Authors: 
     
    5053 device 1106:3287   (VT8251) 
    5154 device 1106:8324   (CX700) 
     55 device 1106:8353   (VX800/VX820) 
    5256 
    5357If none of these show up, you should look in the BIOS for settings like 
     
    5862are mainly useful to read from and write to EEPROMs. 
    5963 
    60 The CX700 additionally appears to support SMBus PEC, although this driver 
    61 doesn't implement it. 
     64The CX700/VX800/VX820 additionally appears to support SMBus PEC, although 
     65this driver doesn't implement it. 
  • lm-sensors/trunk/kernel/busses/i2c-viapro.c

    r4319 r5368  
    3838   VT8251             0x3287             yes 
    3939   CX700              0x8324             yes 
     40   VX800/VX820        0x8353             yes 
    4041 
    4142   Note: we assume there can only be one device, with one SMBus interface. 
     
    7677#ifndef PCI_DEVICE_ID_VIA_CX700 
    7778#define PCI_DEVICE_ID_VIA_CX700 0x8324 
     79#endif 
     80/* VX800 is undefined */ 
     81#ifndef PCI_DEVICE_ID_VIA_VX800 
     82#define PCI_DEVICE_ID_VIA_VX800 0x8353 
    7883#endif 
    7984 
     
    425430        switch (id->device) { 
    426431        case PCI_DEVICE_ID_VIA_CX700: 
     432        case PCI_DEVICE_ID_VIA_VX800: 
    427433        case PCI_DEVICE_ID_VIA_8251: 
    428434        case PCI_DEVICE_ID_VIA_8237: 
     
    530536                .driver_data    = SMBBA3 
    531537        }, 
     538        { 
     539                .vendor         = PCI_VENDOR_ID_VIA, 
     540                .device         = PCI_DEVICE_ID_VIA_VX800, 
     541                .subvendor      = PCI_ANY_ID, 
     542                .subdevice      = PCI_ANY_ID, 
     543                .driver_data    = SMBBA3 
     544        }, 
    532545        { 0, } 
    533546}; 
  • lm-sensors/trunk/mkpatch/mkpatch.pl

    r4739 r5368  
    268268  kernel is running. 
    269269 
    270 VIA Technologies, Inc. VT82C596/82C686/82xx and CX700 
     270VIA Technologies, Inc. VT82C596/82C686/82xx and CX700/VX800/VX820 
    271271CONFIG_I2C_VIAPRO 
    272272  If you say yes to this option, support will be included for the VIA 
     
    999999    dep_tristate '  Savage 4' CONFIG_I2C_SAVAGE4 $CONFIG_I2C_ALGOBIT 
    10001000    dep_tristate '  VIA Technologies, Inc. VT82C586B' CONFIG_I2C_VIA $CONFIG_I2C_ALGOBIT 
    1001     dep_tristate '  VIA Technologies, Inc. VT82C596/82C686/82xx and CX700' CONFIG_I2C_VIAPRO $CONFIG_I2C 
     1001    dep_tristate '  VIA Technologies, Inc. VT82C596/82C686/82xx and CX700/VX800/VX820' CONFIG_I2C_VIAPRO $CONFIG_I2C 
    10021002    dep_tristate '  Voodoo3 I2C interface' CONFIG_I2C_VOODOO3 $CONFIG_I2C_ALGOBIT 
    10031003    dep_tristate '  Pseudo ISA adapter (for some hardware sensors)' CONFIG_I2C_ISA $CONFIG_I2C