Changeset 4154
- Timestamp:
- 09/07/06 21:51:25 (2 years ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (2 diffs)
- lm-sensors/trunk/doc/chips/SUMMARY (modified) (1 diff)
- lm-sensors/trunk/doc/chips/vt1211 (modified) (2 diffs)
- lm-sensors/trunk/etc/sensors.conf.eg (modified) (1 diff)
- lm-sensors/trunk/kernel/chips/vt1211.c (modified) (6 diffs)
- lm-sensors/trunk/prog/sensors/chips.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r4153 r4154 34 34 Add VT8237A and VT8251 35 35 Module lm83: Add LM82 support (2.6 backport) 36 Module vt1211: The VT1211 has no in6 36 37 Module w83781d: Use real-time alarm registers when possible (2.6 backport) 37 38 Add specific alarm and beep defines for the W83791D … … 58 59 Add w83793 support (Yuan Mu) 59 60 The adt7463 may not have in4 (#2119) 61 Hide more vt1211 missing input errors 60 62 Program sensors-detect: Add ServerWorks HT-1000 SMBus detection 61 63 Add ATI IXP200/300/400 SMBus detection lm-sensors/trunk/doc/chips/SUMMARY
r4063 r4154 230 230 231 231 vt1211 232 vt1211 2-7 2-72 2 no yes (LPC)232 vt1211 2-7 1-6 2 2 no yes (LPC) 233 233 234 234 vt8231 lm-sensors/trunk/doc/chips/vt1211
r3007 r4154 29 29 30 30 We define the sensors as follows. Somewhat convoluted to minimize 31 changes from via686a. Temp1 and in6 are unimplemented in the vt1211 32 chip but are included in the driver. 31 changes from via686a. 33 32 34 33 Sensor Voltage Mode Temp Mode uch_config bit … … 42 41 UCH5 in4 temp7 0x40 (64) 43 42 3.3V in5 44 -12V in645 43 46 44 As noted above, 5 of the sensors are "universal channels" and can lm-sensors/trunk/etc/sensors.conf.eg
r4135 r4154 2039 2039 chip "vt1211-*" 2040 2040 # 2041 # in6 is not implemented in vt12112042 #2043 2041 # 1 for temp, 0 for volt. 2044 2042 # Sensor Voltage Mode Temp Mode config bit lm-sensors/trunk/kernel/chips/vt1211.c
r3246 r4154 108 108 UCH5 in4 temp7 109 109 3.3V in5 110 -12V in6 not in vt1211111 110 */ 112 111 113 /* ins numbered 0- 6*/112 /* ins numbered 0-5 */ 114 113 #define VT1211_REG_IN_MAX(nr) ((nr)==0 ? 0x3d : 0x29 + ((nr) * 2)) 115 114 #define VT1211_REG_IN_MIN(nr) ((nr)==0 ? 0x3e : 0x2a + ((nr) * 2)) … … 141 140 #define VT1211_REG_TEMP2_CONFIG 0x4c 142 141 143 /* temps 1-7; voltages 0- 6*/142 /* temps 1-7; voltages 0-5 */ 144 143 #define ISTEMP(i, ch_config) ((i) == 1 ? 1 : \ 145 144 (i) == 3 ? 1 : \ … … 184 183 unsigned long last_updated; /* In jiffies */ 185 184 186 u8 in[ 7]; /* Register value */187 u8 in_max[ 7]; /* Register value */188 u8 in_min[ 7]; /* Register value */185 u8 in[6]; /* Register value */ 186 u8 in_max[6]; /* Register value */ 187 u8 in_min[6]; /* Register value */ 189 188 u16 temp[7]; /* Register value 10 bit */ 190 189 u8 temp_over[7]; /* Register value */ … … 247 246 #define VT1211_SYSCTL_IN4 1004 248 247 #define VT1211_SYSCTL_IN5 1005 249 #define VT1211_SYSCTL_IN6 1006250 248 #define VT1211_SYSCTL_FAN1 1101 251 249 #define VT1211_SYSCTL_FAN2 1102 … … 273 271 #define VT1211_ALARM_FAN2 0x80 274 272 #define VT1211_ALARM_IN4 0x100 275 #define VT1211_ALARM_IN6 0x200276 273 #define VT1211_ALARM_TEMP2 0x800 277 274 #define VT1211_ALARM_CHAS 0x1000 … … 299 296 {VT1211_SYSCTL_IN5, "in5", NULL, 0, 0644, NULL, &i2c_proc_real, 300 297 &i2c_sysctl_real, NULL, &vt1211_in}, 301 /*302 datasheet says these are reserved303 {VT1211_SYSCTL_IN6, "in6", NULL, 0, 0644, NULL, &i2c_proc_real,304 &i2c_sysctl_real, NULL, &vt1211_in},305 */306 298 {VT1211_SYSCTL_TEMP1, "temp1", NULL, 0, 0644, NULL, 307 299 &i2c_proc_real, &i2c_sysctl_real, NULL, &vt1211_temp}, lm-sensors/trunk/prog/sensors/chips.c
r4133 r4154 4424 4424 printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", 4425 4425 cur,min,max,alarms&VT1211_ALARM_IN2?"ALARM":""); 4426 } else 4426 } else if (err != -SENSORS_ERR_PROC) 4427 4427 printf("ERROR: Can't get IN2 data!\n"); 4428 4428 } … … 4437 4437 printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", 4438 4438 cur,min,max,alarms&VT1211_ALARM_IN3?"ALARM":""); 4439 } else 4439 } else if (err != -SENSORS_ERR_PROC) 4440 4440 printf("ERROR: Can't get IN3 data!\n"); 4441 4441 } … … 4450 4450 printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", 4451 4451 cur,min,max,alarms&VT1211_ALARM_IN4?"ALARM":""); 4452 } else 4452 } else if (err != -SENSORS_ERR_PROC) 4453 4453 printf("ERROR: Can't get IN4 data!\n"); 4454 4454 } … … 4463 4463 printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", 4464 4464 cur,min,max,alarms&VT1211_ALARM_IN5?"ALARM":""); 4465 } else4466 printf("ERROR: Can't get IN5 data!\n");4467 }4468 free(label); 4465 } 4466 } 4467 free(label); 4468 4469 4469 if (sensors_get_label_and_valid(*name,SENSORS_VT1211_FAN1,&label,&valid)) { 4470 4470 printf("ERROR: Can't get FAN1 config!\n"); … … 4493 4493 } 4494 4494 free(label); 4495 4495 4496 if (sensors_get_label_and_valid(*name,SENSORS_VT1211_TEMP1,&label,&valid)) { 4496 4497 printf("ERROR: Can't get TEMP1 config!\n"); … … 4528 4529 print_temp_info( cur, max, min, HYST, 1, 0); 4529 4530 printf(" %s\n", alarms & VT1211_ALARM_TEMP3 ? "ALARM" : "" ); 4530 } else 4531 } else if (err != -SENSORS_ERR_PROC) 4531 4532 printf("ERROR: Can't get TEMP3 data!\n"); 4532 4533 } … … 4541 4542 print_temp_info( cur, max, min, HYST, 1, 0); 4542 4543 printf(" %s\n", alarms & VT1211_ALARM_TEMP4 ? "ALARM" : "" ); 4543 } else 4544 } else if (err != -SENSORS_ERR_PROC) 4544 4545 printf("ERROR: Can't get TEMP4 data!\n"); 4545 4546 }
