diff options
| author | Rudolf Marek <r.marek@sh.cvut.cz> | 2006-09-03 16:35:21 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 18:38:52 -0400 |
| commit | c243353a90fae3a9a85d2bd79b1df06bb21c568a (patch) | |
| tree | 5c3b967d154bb5d487a245636120e318be2a1a6a | |
| parent | 114fd18397eb0eacf51ac784f7d5c929b8499715 (diff) | |
i2c-viapro: Add support for the VT8237A and VT8251
i2c-viapro: Add support for the VT8237A and VT8251
Documentation update included. Compile tested.
Signed-off-by: Rudolf Marek <r.marek@sh.cvut.cz>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| -rw-r--r-- | Documentation/i2c/busses/i2c-viapro | 7 | ||||
| -rw-r--r-- | drivers/i2c/busses/Kconfig | 18 | ||||
| -rw-r--r-- | drivers/i2c/busses/i2c-viapro.c | 8 |
3 files changed, 23 insertions, 10 deletions
diff --git a/Documentation/i2c/busses/i2c-viapro b/Documentation/i2c/busses/i2c-viapro index 16775663b9f5..25680346e0ac 100644 --- a/Documentation/i2c/busses/i2c-viapro +++ b/Documentation/i2c/busses/i2c-viapro | |||
| @@ -7,9 +7,12 @@ Supported adapters: | |||
| 7 | * VIA Technologies, Inc. VT82C686A/B | 7 | * VIA Technologies, Inc. VT82C686A/B |
| 8 | Datasheet: Sometimes available at the VIA website | 8 | Datasheet: Sometimes available at the VIA website |
| 9 | 9 | ||
| 10 | * VIA Technologies, Inc. VT8231, VT8233, VT8233A, VT8235, VT8237R | 10 | * VIA Technologies, Inc. VT8231, VT8233, VT8233A |
| 11 | Datasheet: available on request from VIA | 11 | Datasheet: available on request from VIA |
| 12 | 12 | ||
| 13 | * VIA Technologies, Inc. VT8235, VT8237R, VT8237A, VT8251 | ||
| 14 | Datasheet: available on request and under NDA from VIA | ||
| 15 | |||
| 13 | Authors: | 16 | Authors: |
| 14 | Kyösti Mälkki <kmalkki@cc.hut.fi>, | 17 | Kyösti Mälkki <kmalkki@cc.hut.fi>, |
| 15 | Mark D. Studebaker <mdsxyz123@yahoo.com>, | 18 | Mark D. Studebaker <mdsxyz123@yahoo.com>, |
| @@ -39,6 +42,8 @@ Your lspci -n listing must show one of these : | |||
| 39 | device 1106:8235 (VT8231 function 4) | 42 | device 1106:8235 (VT8231 function 4) |
| 40 | device 1106:3177 (VT8235) | 43 | device 1106:3177 (VT8235) |
| 41 | device 1106:3227 (VT8237R) | 44 | device 1106:3227 (VT8237R) |
| 45 | device 1106:3337 (VT8237A) | ||
| 46 | device 1106:3287 (VT8251) | ||
| 42 | 47 | ||
| 43 | If none of these show up, you should look in the BIOS for settings like | 48 | If none of these show up, you should look in the BIOS for settings like |
| 44 | enable ACPI / SMBus or even USB. | 49 | enable ACPI / SMBus or even USB. |
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 1df3bd97cb15..9e56c3989d68 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig | |||
| @@ -492,19 +492,19 @@ config I2C_VIA | |||
| 492 | will be called i2c-via. | 492 | will be called i2c-via. |
| 493 | 493 | ||
| 494 | config I2C_VIAPRO | 494 | config I2C_VIAPRO |
| 495 | tristate "VIA 82C596/82C686/823x" | 495 | tristate "VIA 82C596/82C686/82xx" |
| 496 | depends on I2C && PCI | 496 | depends on I2C && PCI |
| 497 | help | 497 | help |
| 498 | If you say yes to this option, support will be included for the VIA | 498 | If you say yes to this option, support will be included for the VIA |
| 499 | 82C596/82C686/823x I2C interfaces. Specifically, the following | 499 | 82C596/82C686/82xx I2C interfaces. Specifically, the following |
| 500 | chipsets are supported: | 500 | chipsets are supported: |
| 501 | 82C596A/B | 501 | VT82C596A/B |
| 502 | 82C686A/B | 502 | VT82C686A/B |
| 503 | 8231 | 503 | VT8231 |
| 504 | 8233 | 504 | VT8233/A |
| 505 | 8233A | 505 | VT8235 |
| 506 | 8235 | 506 | VT8237R/A |
| 507 | 8237 | 507 | VT8251 |
| 508 | 508 | ||
| 509 | This driver can also be built as a module. If so, the module | 509 | This driver can also be built as a module. If so, the module |
| 510 | will be called i2c-viapro. | 510 | will be called i2c-viapro. |
diff --git a/drivers/i2c/busses/i2c-viapro.c b/drivers/i2c/busses/i2c-viapro.c index 47e52bf2c5ec..1ccc0fbc5947 100644 --- a/drivers/i2c/busses/i2c-viapro.c +++ b/drivers/i2c/busses/i2c-viapro.c | |||
| @@ -34,6 +34,8 @@ | |||
| 34 | VT8233A 0x3147 yes? | 34 | VT8233A 0x3147 yes? |
| 35 | VT8235 0x3177 yes | 35 | VT8235 0x3177 yes |
| 36 | VT8237R 0x3227 yes | 36 | VT8237R 0x3227 yes |
| 37 | VT8237A 0x3337 yes | ||
| 38 | VT8251 0x3287 yes | ||
| 37 | 39 | ||
| 38 | Note: we assume there can only be one device, with one SMBus interface. | 40 | Note: we assume there can only be one device, with one SMBus interface. |
| 39 | */ | 41 | */ |
| @@ -381,7 +383,9 @@ found: | |||
| 381 | dev_dbg(&pdev->dev, "VT596_smba = 0x%X\n", vt596_smba); | 383 | dev_dbg(&pdev->dev, "VT596_smba = 0x%X\n", vt596_smba); |
| 382 | 384 | ||
| 383 | switch (pdev->device) { | 385 | switch (pdev->device) { |
| 386 | case PCI_DEVICE_ID_VIA_8251: | ||
| 384 | case PCI_DEVICE_ID_VIA_8237: | 387 | case PCI_DEVICE_ID_VIA_8237: |
| 388 | case PCI_DEVICE_ID_VIA_8237A: | ||
| 385 | case PCI_DEVICE_ID_VIA_8235: | 389 | case PCI_DEVICE_ID_VIA_8235: |
| 386 | case PCI_DEVICE_ID_VIA_8233A: | 390 | case PCI_DEVICE_ID_VIA_8233A: |
| 387 | case PCI_DEVICE_ID_VIA_8233_0: | 391 | case PCI_DEVICE_ID_VIA_8233_0: |
| @@ -432,8 +436,12 @@ static struct pci_device_id vt596_ids[] = { | |||
| 432 | .driver_data = SMBBA3 }, | 436 | .driver_data = SMBBA3 }, |
| 433 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237), | 437 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237), |
| 434 | .driver_data = SMBBA3 }, | 438 | .driver_data = SMBBA3 }, |
| 439 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237A), | ||
| 440 | .driver_data = SMBBA3 }, | ||
| 435 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231_4), | 441 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231_4), |
| 436 | .driver_data = SMBBA1 }, | 442 | .driver_data = SMBBA1 }, |
| 443 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8251), | ||
| 444 | .driver_data = SMBBA3 }, | ||
| 437 | { 0, } | 445 | { 0, } |
| 438 | }; | 446 | }; |
| 439 | 447 | ||
