From 57e38757f1d8c5dd7eca5b002b75b3c6bf0d9697 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 18 Jul 2007 21:01:35 +0000 Subject: [PATCH] Add ATI SB700 support to the i2c-piix4 driver. This is a backport from a Linux 2.6 patch by Henry Su. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4624 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 3 +++ README | 2 +- doc/busses/i2c-piix4 | 2 +- kernel/busses/i2c-piix4.c | 10 +++++++++- mkpatch/mkpatch.pl | 4 ++-- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index de83e8ca..1235218f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ lm_sensors CHANGES file ----------------------- +SVN HEAD + Module i2c-piix4: Add ATI SB700 support (2.6 backport) + 2.10.4 (20070716) File doc/vid: Update the sysfs paths, update the chip lists File i2c-dev.h: Support I2C block reads with specified length diff --git a/README b/README index e2584cf1..b3132e8e 100644 --- a/README +++ b/README @@ -47,7 +47,7 @@ At least the following I2C/SMBus adapters are supported: AMD 756, 766, 768 and 8111 AMD 8111 SMBus 2.0 Apple Hydra (used on some PPC machines) - ATI IXP200, IXP300, IXP400, SB600 + ATI IXP200, IXP300, IXP400, SB600, SB700 DEC 21272/21274 (Tsunami/Typhoon - on Alpha boards) Intel ICH/ICH0/ICH2/ICH3/ICH4/ICH5/ICH6/ICH7/ICH8/ICH9 (82801xx) Intel 6300ESB, 631xESB/632xESB (ESB2) diff --git a/doc/busses/i2c-piix4 b/doc/busses/i2c-piix4 index d7cce66e..4c641982 100644 --- a/doc/busses/i2c-piix4 +++ b/doc/busses/i2c-piix4 @@ -9,7 +9,7 @@ Supported adapters: Datasheet: Publicly available at the Intel website * ServerWorks OSB4, CSB5, CSB6 and HT-1000 southbridges Datasheet: Only available via NDA from ServerWorks - * ATI IXP200, IXP300, IXP400 and SB600 southbridges + * ATI IXP200, IXP300, IXP400, SB600 and SB700 southbridges Datasheet: Not publicly available * Standard Microsystems (SMSC) SLC90E66 (Victory66) southbridge Datasheet: Publicly available at the SMSC website http://www.smsc.com diff --git a/kernel/busses/i2c-piix4.c b/kernel/busses/i2c-piix4.c index d7c84c26..66c55458 100644 --- a/kernel/busses/i2c-piix4.c +++ b/kernel/busses/i2c-piix4.c @@ -23,7 +23,7 @@ Supports: Intel PIIX4, 440MX Serverworks OSB4, CSB5, CSB6, HT-1000 - ATI IXP200, IXP300, IXP400, SB600 + ATI IXP200, IXP300, IXP400, SB600, SB700 SMSC Victory66 Note: we assume there can only be one device, with one SMBus interface. @@ -440,6 +440,7 @@ static struct i2c_adapter piix4_adapter = { #define PCI_DEVICE_ID_ATI_IXP300_SMBUS 0x4363 #define PCI_DEVICE_ID_ATI_IXP400_SMBUS 0x4372 #define PCI_DEVICE_ID_ATI_IXP600_SMBUS 0x4385 +#define PCI_DEVICE_ID_ATI_IXP700_SMBUS 0x4395 #ifndef PCI_DEVICE_ID_SERVERWORKS_CSB6 #define PCI_DEVICE_ID_SERVERWORKS_CSB6 0x0203 @@ -483,6 +484,13 @@ static struct pci_device_id piix4_ids[] __devinitdata = { .subdevice = PCI_ANY_ID, .driver_data = 0, }, + { + .vendor = PCI_VENDOR_ID_ATI, + .device = PCI_DEVICE_ID_ATI_IXP700_SMBUS, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .driver_data = 0, + }, { .vendor = PCI_VENDOR_ID_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_OSB4, diff --git a/mkpatch/mkpatch.pl b/mkpatch/mkpatch.pl index 504556f8..52aac679 100755 --- a/mkpatch/mkpatch.pl +++ b/mkpatch/mkpatch.pl @@ -225,8 +225,8 @@ Intel 82371AB PIIX4(E), ServerWorks OSB4, CSB5, CSB6, HT-1000 CONFIG_I2C_PIIX4 If you say yes to this option, support will be included for the Intel PIIX4, PIIX4E, 443MX, Serverworks OSB4, CSB5, CSB6 and - HT-1000, ATI IXP200, IXP300, IXP400 and SB600, and SMSC Victory66 - mainboard SMBus interfaces. + HT-1000, ATI IXP200, IXP300, IXP400, SB600 and SB700, and SMSC + Victory66 mainboard SMBus interfaces. This can also be built as a module which can be inserted and removed while the kernel is running.