vt8231 cleanups, to get the 2.4 driver, libsensors and sensors

in line with the new 2.6 driver. The most important changes are temp
inputs renumbering, and conversion formulas changes, because part of the
conversions are now done by the driver as required by the interface
standard.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3194 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2005-11-19 14:55:30 +00:00
1 parent c92b3a8870
commit 5cd5fde08d
6 files changed
+285 -183

No files matched your search

+25 -41
View File
@@ -4,7 +4,7 @@ Kernel driver `vt8231.o'
Status: Beta
Supported chips:
* Via VT8231 South Bridge
* VIA VT8231 South Bridge
Prefix: 'vt8231'
Addresses scanned: none, address read from PCI space
@@ -36,24 +36,20 @@ Module Parameters
Description
-----------
The Via VT8231 South Bridge contains voltage/temperature monitoring and
The VIA VT8231 South Bridge contains voltage/temperature monitoring and
PWM control circuitry for two fans.
We define the sensors as follows. Somewhat convoluted to minimize
changes from via686a. Temp1 and in6 are unimplemented in the vt8231
chip but are included in the driver.
We define the sensors as follows.
Sensor Voltage Mode Temp Mode uch_config bit
------ ------------ --------- --------------
Reading 1 temp3
Reading 3 temp1
UCH1/Reading 2 in0 temp2 0x04 (4)
UCH2 in1 temp4 0x08 (8)
UCH3 in2 temp5 0x10 (16)
UCH4 in3 temp6 0x20 (32)
UCH5 in4 temp7 0x40 (64)
Reading 1 temp1
UCH1 in0 temp2 0x04 (4)
UCH2 in1 temp3 0x08 (8)
UCH3 in2 temp4 0x10 (16)
UCH4 in3 temp5 0x20 (32)
UCH5 in4 temp6 0x40 (64)
3.3V in5
-12V in6
As noted above, 5 of the sensors are "universal channels" and can
be set for either voltage or temperature.
@@ -91,21 +87,18 @@ in2 - - R- 2
in3 - - R- 2
in4 - - R- 2
in5 - - R- 2
in6 - - R- 2
in0_min in0 in0 RW 2
in1_min in1 in1 RW 2
in2_min in2 in2 RW 2
in3_min in3 in3 RW 2
in4_min in4 in4 RW 2
in5_min in5 in5 RW 2
in6_min in6 in6 RW 2
in0_max in0 in0 RW 2
in1_max in1 in1 RW 2
in2_max in2 in2 RW 2
in3_max in3 in3 RW 2
in4_max in4 in4 RW 2
in5_max in5 in5 RW 2
in6_max in6 in6 RW 2
fan1 - - R- 0
fan2 - - R- 0
fan1_min fan1 fan1 RW 0
@@ -113,24 +106,21 @@ fan2_min fan2 fan2 RW 0
temp1 - - R- 1
temp1_hyst temp1 temp1 RW 1
temp1_over temp1 temp1 RW 1
temp2 - - R- 1
temp2_hyst temp2 temp2 RW 1
temp2_over temp2 temp2 RW 1
temp3 - - R- 1
temp3_hyst temp3 temp3 RW 1
temp3_over temp3 temp3 RW 1
temp4 - - R- 1
temp4_hyst temp4 temp4 RW 1
temp4_over temp4 temp4 RW 1
temp5 - - R- 1
temp5_hyst temp5 temp5 RW 1
temp5_over temp5 temp5 RW 1
temp6 - - R- 1
temp6_hyst temp6 temp6 RW 1
temp6_over temp6 temp6 RW 1
temp7 - - R- 1
temp7_hyst temp7 temp7 RW 1
temp7_over temp7 temp7 RW 1
temp2 - - R- 2
temp2_hyst temp2 temp2 RW 2
temp2_over temp2 temp2 RW 2
temp3 - - R- 2
temp3_hyst temp3 temp3 RW 2
temp3_over temp3 temp3 RW 2
temp4 - - R- 2
temp4_hyst temp4 temp4 RW 2
temp4_over temp4 temp4 RW 2
temp5 - - R- 2
temp5_hyst temp5 temp5 RW 2
temp5_over temp5 temp5 RW 2
temp6 - - R- 2
temp6_hyst temp6 temp6 RW 2
temp6_over temp6 temp6 RW 2
fan1_div fan1 - RW 0
fan2_div fan2 - RW 0
alarms - - R- 0
@@ -145,21 +135,18 @@ in2 SENSORS_VT8231_IN2 in2:3
in3 SENSORS_VT8231_IN3 in3:3
in4 SENSORS_VT8231_IN4 in4:3
in5 SENSORS_VT8231_IN5 in5:3
in6 SENSORS_VT8231_IN6 in6:3
in0_min SENSORS_VT8231_IN0_MIN in0:1
in1_min SENSORS_VT8231_IN1_MIN in1:1
in2_min SENSORS_VT8231_IN2_MIN in2:1
in3_min SENSORS_VT8231_IN3_MIN in3:1
in4_min SENSORS_VT8231_IN4_MIN in4:1
in5_min SENSORS_VT8231_IN5_MIN in5:1
in6_min SENSORS_VT8231_IN6_MIN in6:1
in0_max SENSORS_VT8231_IN0_MAX in0:2
in1_max SENSORS_VT8231_IN1_MAX in1:2
in2_max SENSORS_VT8231_IN2_MAX in2:2
in3_max SENSORS_VT8231_IN3_MAX in3:2
in4_max SENSORS_VT8231_IN4_MAX in4:2
in5_max SENSORS_VT8231_IN5_MAX in5:2
in6_max SENSORS_VT8231_IN6_MAX in6:2
fan1 SENSORS_VT8231_FAN1 fan1:2
fan2 SENSORS_VT8231_FAN2 fan2:2
fan1_min SENSORS_VT8231_FAN1_MIN fan1:1
@@ -182,9 +169,6 @@ temp5_over SENSORS_VT8231_TEMP5_OVER temp5:1
temp6 SENSORS_VT8231_TEMP6 temp6:3
temp6_hyst SENSORS_VT8231_TEMP6_HYST temp6:2
temp6_over SENSORS_VT8231_TEMP6_OVER temp6:1
temp7 SENSORS_VT8231_TEMP7 temp7:3
temp7_hyst SENSORS_VT8231_TEMP7_HYST temp7:2
temp7_over SENSORS_VT8231_TEMP7_OVER temp7:1
fan1_div SENSORS_VT8231_FAN1_DIV fan_div:1
fan2_div SENSORS_VT8231_FAN2_DIV fan_div:2
alarms SENSORS_VT8231_ALARMS alarms:1
@@ -196,5 +180,5 @@ config SENSORS_VT8231_UCH uch_config:1
Notes
-----
The lm_sensors project gratefully acknowledges the support of Via in the
The lm_sensors project gratefully acknowledges the support of VIA in the
development of this driver.