From 72f129f3c26db474670cf85cef4c2ac3d08279ba Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 29 Nov 2003 16:51:04 +0000 Subject: [PATCH] Add support for KT600. Requested by Lou . git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2109 7894878c-1315-0410-8ee3-d5d059ff63e0 --- doc/busses/i2c-viapro | 4 +++- kernel/busses/i2c-viapro.c | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/busses/i2c-viapro b/doc/busses/i2c-viapro index d1ce71c9..d2a33fdf 100644 --- a/doc/busses/i2c-viapro +++ b/doc/busses/i2c-viapro @@ -9,7 +9,7 @@ Supported adapters: * VIA Technologies, Inc. VT82C686A/B Datasheet: Sometimes available at the VIA website - * VIA Technologies, Inc. VT8231, VT8233, VT8233A, VT8235 + * VIA Technologies, Inc. VT8231, VT8233, VT8233A, VT8235, VT8237 Datasheet: available on request from Via Author: Kyösti Mälkki @@ -38,6 +38,8 @@ Your /proc/pci or lspci -n listing must show one of these : device 1106:3074 (VT8233) device 1106:3147 (VT8233A) device 1106:8235 (VT8231) + devide 1106:3177 (VT8235) + devide 1106:3227 (VT8237) If none of these show up, you should look in the BIOS for settings like enable ACPI / SMBus or even USB. diff --git a/kernel/busses/i2c-viapro.c b/kernel/busses/i2c-viapro.c index 9280d39d..a15e6780 100644 --- a/kernel/busses/i2c-viapro.c +++ b/kernel/busses/i2c-viapro.c @@ -29,6 +29,7 @@ 8233 8233A (0x3147 and 0x3177) 8235 + 8237 Note: we assume there can only be one device, with one SMBus interface. */ @@ -401,6 +402,10 @@ static void __devexit vt596_remove(struct pci_dev *pdev) #ifndef PCI_DEVICE_ID_VIA_8235 #define PCI_DEVICE_ID_VIA_8235 0x3177 #endif +/* 8237 is undefined before kernel 2.4.21 */ +#ifndef PCI_DEVICE_ID_VIA_8237 +#define PCI_DEVICE_ID_VIA_8237 0x3227 +#endif static struct pci_device_id vt596_ids[] __devinitdata = { { .vendor = PCI_VENDOR_ID_VIA, @@ -444,6 +449,13 @@ static struct pci_device_id vt596_ids[] __devinitdata = { .subdevice = PCI_ANY_ID, .driver_data = SMBBA3 }, + { + .vendor = PCI_VENDOR_ID_VIA, + .device = PCI_DEVICE_ID_VIA_8237, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .driver_data = SMBBA3 + }, { .vendor = PCI_VENDOR_ID_VIA, .device = PCI_DEVICE_ID_VIA_8231_4,