add support for 8231

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1378 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2002-05-27 21:14:10 +00:00
1 parent 276eb5f545
commit 72c05c05dd
2 files changed
+18 -8

No files matched your search

+8 -3
View File
@@ -7,7 +7,12 @@ Supported chips:
* Via VT82C686A, VT82C686B Southbridge Integrated Hardware Monitor
Prefix: via686a
Addresses scanned: ISA in PCI-space encoded address
Datasheet: Publicly available at the Via site http://www.via.com.tw.
Datasheet: Sometimes available at the Via site http://www.via.com.tw.
* Via VT8231 Southbridge Integrated Hardware Monitor
Prefix: via686a
Addresses scanned: ISA in PCI-space encoded address
Datasheet: On request from Via
Authors: Kyösti Mälkki <kmalkki@cc.hut.fi>,
Mark D. Studebaker <mdsxyz123@yahoo.com>
@@ -29,8 +34,8 @@ force_addr=0xaddr Set the I/O base address. Useful for Asus A7V boards
Description
-----------
The driver does not distinguish between a 686A or 686B and reports
both as a 686A.
The driver does not distinguish between the chips and reports
all as a 686A. Features specific to the 8231 are not yet supported.
The Via 686a southbridge has integrated hardware monitor functionality.
It also has an I2C bus, but this driver only supports the hardware monitor.
+10 -5
View File
@@ -2,7 +2,7 @@
via686a.c - Part of lm_sensors, Linux kernel modules
for hardware monitoring
Copyright (c) 1998 - 2001 Frodo Looijaard <frodol@dds.nl>,
Copyright (c) 1998 - 2002 Frodo Looijaard <frodol@dds.nl>,
Kyösti Mälkki <kmalkki@cc.hut.fi>,
Mark Studebaker <mdsxyz123@yahoo.com>,
and Bob Dougherty <bobd@stanford.edu>
@@ -25,8 +25,9 @@
*/
/*
Supports the Via VT82C686A and VT82C686B south bridges.
Reports either as a 686A.
Supports the Via VT82C686A, VT82C686B, and VT8231 south bridges.
Reports all as a 686A.
8231-specific features not yet supported.
See doc/chips/via686a for details.
Warning - only supports a single device.
*/
@@ -532,7 +533,10 @@ int via686a_find(int *address)
if (!(s_bridge = pci_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_82C686_4,
NULL))) return -ENODEV;
NULL)))
if (!(s_bridge = pci_find_device(PCI_VENDOR_ID_VIA,
0x8235,
NULL))) return -ENODEV;
if (PCIBIOS_SUCCESSFUL !=
pci_read_config_word(s_bridge, VIA686A_BASE_REG, &val))
@@ -565,8 +569,9 @@ int via686a_detect(struct i2c_adapter *adapter, int address,
return 0;
}
/* 8231 requires multiple of 256, we enforce that on 686 as well */
if(force_addr)
address = force_addr & ~(VIA686A_EXTENT - 1);
address = force_addr & 0xFF00;
if (check_region(address, VIA686A_EXTENT)) {
printk("via686a.o: region 0x%x already in use!\n",
address);