aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-02-13 16:09:02 -0500
committerJean Delvare <khali@arrakis.delvare>2007-02-13 16:09:02 -0500
commitab6a6ed271c757b429ddc68f5b93a41f9592ab8b (patch)
treeadd85be6a7898f4288f3cb61b31aa5893b663a47 /drivers
parent9ace555d7d87c55ceab6999be444c9a17e0e79b4 (diff)
i2c-viapro: Add support for the VIA CX700 south bridge
We do not have any documentation for the CX700, but it was reported to work fine. Thanks to Claas Langbehn for testing. Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/Kconfig5
-rw-r--r--drivers/i2c/busses/i2c-viapro.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index f2894dec51a5..25d52e0eec2c 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -500,11 +500,11 @@ config I2C_VIA
500 will be called i2c-via. 500 will be called i2c-via.
501 501
502config I2C_VIAPRO 502config I2C_VIAPRO
503 tristate "VIA 82C596/82C686/82xx" 503 tristate "VIA VT82C596/82C686/82xx and CX700"
504 depends on I2C && PCI 504 depends on I2C && PCI
505 help 505 help
506 If you say yes to this option, support will be included for the VIA 506 If you say yes to this option, support will be included for the VIA
507 82C596/82C686/82xx I2C interfaces. Specifically, the following 507 VT82C596 and later SMBus interface. Specifically, the following
508 chipsets are supported: 508 chipsets are supported:
509 VT82C596A/B 509 VT82C596A/B
510 VT82C686A/B 510 VT82C686A/B
@@ -513,6 +513,7 @@ config I2C_VIAPRO
513 VT8235 513 VT8235
514 VT8237R/A 514 VT8237R/A
515 VT8251 515 VT8251
516 CX700
516 517
517 This driver can also be built as a module. If so, the module 518 This driver can also be built as a module. If so, the module
518 will be called i2c-viapro. 519 will be called i2c-viapro.
diff --git a/drivers/i2c/busses/i2c-viapro.c b/drivers/i2c/busses/i2c-viapro.c
index 43a081f16553..03c5fc868548 100644
--- a/drivers/i2c/busses/i2c-viapro.c
+++ b/drivers/i2c/busses/i2c-viapro.c
@@ -4,7 +4,7 @@
4 Copyright (c) 1998 - 2002 Frodo Looijaard <frodol@dds.nl>, 4 Copyright (c) 1998 - 2002 Frodo Looijaard <frodol@dds.nl>,
5 Philip Edelbrock <phil@netroedge.com>, Kyösti Mälkki <kmalkki@cc.hut.fi>, 5 Philip Edelbrock <phil@netroedge.com>, Kyösti Mälkki <kmalkki@cc.hut.fi>,
6 Mark D. Studebaker <mdsxyz123@yahoo.com> 6 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>
8 8
9 This program is free software; you can redistribute it and/or modify 9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by 10 it under the terms of the GNU General Public License as published by
@@ -36,6 +36,7 @@
36 VT8237R 0x3227 yes 36 VT8237R 0x3227 yes
37 VT8237A 0x3337 yes 37 VT8237A 0x3337 yes
38 VT8251 0x3287 yes 38 VT8251 0x3287 yes
39 CX700 0x8324 yes
39 40
40 Note: we assume there can only be one device, with one SMBus interface. 41 Note: we assume there can only be one device, with one SMBus interface.
41*/ 42*/
@@ -384,6 +385,7 @@ found:
384 dev_dbg(&pdev->dev, "VT596_smba = 0x%X\n", vt596_smba); 385 dev_dbg(&pdev->dev, "VT596_smba = 0x%X\n", vt596_smba);
385 386
386 switch (pdev->device) { 387 switch (pdev->device) {
388 case PCI_DEVICE_ID_VIA_CX700:
387 case PCI_DEVICE_ID_VIA_8251: 389 case PCI_DEVICE_ID_VIA_8251:
388 case PCI_DEVICE_ID_VIA_8237: 390 case PCI_DEVICE_ID_VIA_8237:
389 case PCI_DEVICE_ID_VIA_8237A: 391 case PCI_DEVICE_ID_VIA_8237A:
@@ -443,6 +445,8 @@ static struct pci_device_id vt596_ids[] = {
443 .driver_data = SMBBA1 }, 445 .driver_data = SMBBA1 },
444 { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8251), 446 { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8251),
445 .driver_data = SMBBA3 }, 447 .driver_data = SMBBA3 },
448 { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_CX700),
449 .driver_data = SMBBA3 },
446 { 0, } 450 { 0, }
447}; 451};
448 452