mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
(mds) Allow via686a's that have sensor I/O mapped but sensors not
enabled by enabling the sensors. Found on FIC SD11 boards. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@788 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5c932f74fc
commit
5330eed207
1 file changed
+8
-3
@@ -521,13 +521,18 @@ int via686a_find(int *address)
|
||||
pci_read_config_word(s_bridge, VIA686A_BASE_REG, &val))
|
||||
return -ENODEV;
|
||||
*address = (val & 0xff80);
|
||||
if (*address == 0) {
|
||||
printk("via686a.o: sensors not enabled - upgrade BIOS?\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (PCIBIOS_SUCCESSFUL !=
|
||||
pci_read_config_word(s_bridge, VIA686A_ENABLE_REG, &val))
|
||||
return -ENODEV;
|
||||
if ((*address == 0) || !(val & 0x01)) {
|
||||
printk("via686a.o: sensors not enabled - upgrade BIOS?\n");
|
||||
return -ENODEV;
|
||||
if (!(val & 0x01)) {
|
||||
printk("via686a.o: enabling sensors\n");
|
||||
pci_write_config_word(s_bridge, VIA686A_ENABLE_REG,
|
||||
val | 0x01);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user