Changeset 4319

Show
Ignore:
Timestamp:
02/15/07 10:56:04 (6 years ago)
Author:
khali
Message:

Add VIA CX700 SMBus support, backported from Linux 2.6.

Location:
lm-sensors/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4318 r4319  
    66  Module i2c-amd8111: Cleanups (2.6 backport) 
    77                      Fix initialization race (2.6 backport) 
     8  Module i2c-viapro: Add CX700 support (2.6 backport) 
    89  Programs i2cdetect, i2cdump, isadump: Flush output in real time 
    910  Program sensors-detect: Only probe relevant I2C addresses 
  • lm-sensors/trunk/README

    r4252 r4319  
    6161  3Dfx Voodoo 3 and Banshee 
    6262  VIA Technologies VT82C586B, VT82C596A/B, VT82C686A/B, VT8231, 
    63                    VT8233, VT8233A, VT8235, VT8237R/A and VT8251 
     63                   VT8233, VT8233A, VT8235, VT8237R/A, VT8251, CX700 
    6464 
    6565 
  • lm-sensors/trunk/doc/busses/i2c-viapro

    r4127 r4319  
    1111 
    1212  * VIA Technologies, Inc. VT8231, VT8233, VT8233A, VT8235, VT8237R/A, VT8251 
    13     Datasheet: available on request from Via 
     13    Datasheet: available on request and under NDA from VIA 
     14 
     15  * VIA Technologies, Inc. CX700 
     16    Datasheet: available on request and under NDA from VIA 
    1417 
    1518Authors: 
     
    4649 device 1106:3337   (VT8237A) 
    4750 device 1106:3287   (VT8251) 
     51 device 1106:8324   (CX700) 
    4852 
    4953If none of these show up, you should look in the BIOS for settings like 
     
    5357VT8231), this driver supports I2C block transactions. Such transactions 
    5458are mainly useful to read from and write to EEPROMs. 
     59 
     60The CX700 additionally appears to support SMBus PEC, although this driver 
     61doesn't implement it. 
  • lm-sensors/trunk/kernel/busses/i2c-viapro.c

    r4125 r4319  
    55    Philip Edelbrock <phil@netroedge.com>, Kyösti Mälkki <kmalkki@cc.hut.fi>, 
    66    Mark D. Studebaker <mdsxyz123@yahoo.com> 
    7     Copyright (C) 2005 Jean Delvare <khali@linux-fr.org> 
     7    Copyright (C) 2005 - 2007 Jean Delvare <khali@linux-fr.org> 
    88 
    99    This program is free software; you can redistribute it and/or modify 
     
    3737   VT8237A            0x3337             yes 
    3838   VT8251             0x3287             yes 
     39   CX700              0x8324             yes 
    3940 
    4041   Note: we assume there can only be one device, with one SMBus interface. 
     
    6465#define PCI_DEVICE_ID_VIA_8237  0x3227 
    6566#endif 
    66 /* 8237A is undefined as for the kernel 2.4.33 */ 
     67/* 8237A is undefined */ 
    6768#ifndef PCI_DEVICE_ID_VIA_8237A 
    6869#define PCI_DEVICE_ID_VIA_8237A 0x3337 
    6970#endif 
    70 /* 8251 is undefined as for the kernel 2.4.33 */ 
     71/* 8251 is undefined */ 
    7172#ifndef PCI_DEVICE_ID_VIA_8251 
    7273#define PCI_DEVICE_ID_VIA_8251  0x3287 
     74#endif 
     75/* CX700 is undefined */ 
     76#ifndef PCI_DEVICE_ID_VIA_CX700 
     77#define PCI_DEVICE_ID_VIA_CX700 0x8324 
    7378#endif 
    7479 
     
    419424 
    420425        switch (id->device) { 
     426        case PCI_DEVICE_ID_VIA_CX700: 
    421427        case PCI_DEVICE_ID_VIA_8251: 
    422428        case PCI_DEVICE_ID_VIA_8237: 
     
    517523                .driver_data    = SMBBA3 
    518524        }, 
     525        { 
     526                .vendor         = PCI_VENDOR_ID_VIA, 
     527                .device         = PCI_DEVICE_ID_VIA_CX700, 
     528                .subvendor      = PCI_ANY_ID, 
     529                .subdevice      = PCI_ANY_ID, 
     530                .driver_data    = SMBBA3 
     531        }, 
    519532        { 0, } 
    520533}; 
  • lm-sensors/trunk/mkpatch/mkpatch.pl

    r4162 r4319  
    265265  kernel is running. 
    266266 
    267 VIA Technologies, Inc. VT82C596, 596B, 686A/B, 8233, 8235, 8237R/A, 8251 
     267VIA Technologies, Inc. VT82C596/82C686/82xx and CX700 
    268268CONFIG_I2C_VIAPRO 
    269269  If you say yes to this option, support will be included for the VIA 
     
    986986    dep_tristate '  Savage 4' CONFIG_I2C_SAVAGE4 $CONFIG_I2C_ALGOBIT 
    987987    dep_tristate '  VIA Technologies, Inc. VT82C586B' CONFIG_I2C_VIA $CONFIG_I2C_ALGOBIT 
    988     dep_tristate '  VIA Technologies, Inc. VT596A/B, 686A/B, 8231, 8233, 8233A, 8235, 8237R/A, 8251' CONFIG_I2C_VIAPRO $CONFIG_I2C 
     988    dep_tristate '  VIA Technologies, Inc. VT82C596/82C686/82xx and CX700' CONFIG_I2C_VIAPRO $CONFIG_I2C 
    989989    dep_tristate '  Voodoo3 I2C interface' CONFIG_I2C_VOODOO3 $CONFIG_I2C_ALGOBIT 
    990990    dep_tristate '  Pseudo ISA adapter (for some hardware sensors)' CONFIG_I2C_ISA $CONFIG_I2C