diff --git a/doc/chips/via686a b/doc/chips/via686a index c36dde6f..1667188a 100644 --- a/doc/chips/via686a +++ b/doc/chips/via686a @@ -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 , Mark D. Studebaker @@ -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. diff --git a/kernel/chips/via686a.c b/kernel/chips/via686a.c index 6f7de278..9cea7066 100644 --- a/kernel/chips/via686a.c +++ b/kernel/chips/via686a.c @@ -2,7 +2,7 @@ via686a.c - Part of lm_sensors, Linux kernel modules for hardware monitoring - Copyright (c) 1998 - 2001 Frodo Looijaard , + Copyright (c) 1998 - 2002 Frodo Looijaard , Kyösti Mälkki , Mark Studebaker , and Bob Dougherty @@ -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);