mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-07 16:01:34 +00:00
Backport VT8237A and VT8251 support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4125 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
a5f306ddcf
commit
c857b40f7a
2 files changed
+28
No files matched your search
@@ -34,6 +34,8 @@
|
||||
VT8233A 0x3147 yes?
|
||||
VT8235 0x3177 yes
|
||||
VT8237R 0x3227 yes
|
||||
VT8237A 0x3337 yes
|
||||
VT8251 0x3287 yes
|
||||
|
||||
Note: we assume there can only be one device, with one SMBus interface.
|
||||
*/
|
||||
@@ -61,6 +63,14 @@
|
||||
#ifndef PCI_DEVICE_ID_VIA_8237
|
||||
#define PCI_DEVICE_ID_VIA_8237 0x3227
|
||||
#endif
|
||||
/* 8237A is undefined as for the kernel 2.4.33 */
|
||||
#ifndef PCI_DEVICE_ID_VIA_8237A
|
||||
#define PCI_DEVICE_ID_VIA_8237A 0x3337
|
||||
#endif
|
||||
/* 8251 is undefined as for the kernel 2.4.33 */
|
||||
#ifndef PCI_DEVICE_ID_VIA_8251
|
||||
#define PCI_DEVICE_ID_VIA_8251 0x3287
|
||||
#endif
|
||||
|
||||
#define SMBBA1 0x90
|
||||
#define SMBBA2 0x80
|
||||
@@ -408,7 +418,9 @@ found:
|
||||
dev_dbg(pdev, "VT596_smba = 0x%X\n", vt596_smba);
|
||||
|
||||
switch (id->device) {
|
||||
case PCI_DEVICE_ID_VIA_8251:
|
||||
case PCI_DEVICE_ID_VIA_8237:
|
||||
case PCI_DEVICE_ID_VIA_8237A:
|
||||
case PCI_DEVICE_ID_VIA_8235:
|
||||
case PCI_DEVICE_ID_VIA_8233A:
|
||||
case PCI_DEVICE_ID_VIA_8233_0:
|
||||
@@ -483,6 +495,13 @@ static struct pci_device_id vt596_ids[] __initdata = {
|
||||
.subdevice = PCI_ANY_ID,
|
||||
.driver_data = SMBBA3
|
||||
},
|
||||
{
|
||||
.vendor = PCI_VENDOR_ID_VIA,
|
||||
.device = PCI_DEVICE_ID_VIA_8237A,
|
||||
.subvendor = PCI_ANY_ID,
|
||||
.subdevice = PCI_ANY_ID,
|
||||
.driver_data = SMBBA3
|
||||
},
|
||||
{
|
||||
.vendor = PCI_VENDOR_ID_VIA,
|
||||
.device = PCI_DEVICE_ID_VIA_8231_4,
|
||||
@@ -490,6 +509,13 @@ static struct pci_device_id vt596_ids[] __initdata = {
|
||||
.subdevice = PCI_ANY_ID,
|
||||
.driver_data = SMBBA1,
|
||||
},
|
||||
{
|
||||
.vendor = PCI_VENDOR_ID_VIA,
|
||||
.device = PCI_DEVICE_ID_VIA_8251,
|
||||
.subvendor = PCI_ANY_ID,
|
||||
.subdevice = PCI_ANY_ID,
|
||||
.driver_data = SMBBA3
|
||||
},
|
||||
{ 0, }
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user