Changeset 532
- Timestamp:
- 08/22/99 19:52:38 (9 years ago)
- Files:
-
- lm-sensors/trunk/CONTRIBUTORS (modified) (1 diff)
- lm-sensors/trunk/README (modified) (2 diffs)
- lm-sensors/trunk/doc/chips/SUMMARY (modified) (3 diffs)
- lm-sensors/trunk/doc/chips/adm9240 (modified) (5 diffs)
- lm-sensors/trunk/kernel/chips/adm9240.c (modified) (7 diffs)
- lm-sensors/trunk/prog/detect/sensors-detect (modified) (8 diffs)
- lm-sensors/trunk/prog/sensors/main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CONTRIBUTORS
r430 r532 24 24 Author of the i2c-via and sis5595 drivers. 25 25 * Mark D. Studebaker <mds@eng.paradyne.com> 26 Author of the i2c-ali15x3 driver, as well as other drivers. 26 Author of the i2c-ali15x3 bus driver and the i2c-i810 bus driver. 27 Added w83782d, w83783s, and w83627hf support to the w83781d driver. 28 Added max1617 support to the adm1021 driver. 29 Added lm81 support to the adm9240 driver. 30 Author of the decode-xeon.pl xeon EEPROM decoder. 27 31 * Geert Uytterhoeven <geert@linux-m68k.org> 28 32 Author of the i2c-hydra driver. lm-sensors/trunk/README
r530 r532 24 24 At least the following SMBus adapters are supported: 25 25 Intel PIIX4 (used in most Intel chipsets) 26 Intel ICH (used Intel 810 chipsets for Celeron processors)26 Intel ICH (used in Intel 810 chipsets for Celeron processors) 27 27 Acer Labs M1541 and M1543C (used in the Aladdin IV, V and Pro 2 chipsets) 28 28 VIA Technologies 82C586B (used in most VIA chipsets) 29 29 30 30 At least the following hardware sensor chips are supported: 31 National Semicoductor LM75, LM78, LM78-J, LM79 and LM8031 National Semicoductor LM75, LM78, LM78-J, LM79. LM80, and LM81 32 32 Winbond W83781D, W83782D, W83783S, and W83627HF 33 33 Genesys Logic GL518SM (several revisions) … … 43 43 Linear Technologies LTC1710 44 44 Dimms with EEPROMs 45 Intel Xeon processor embedded EEPROMs 45 46 46 47 We could use some testers of hardware. If you own a specific monitoring lm-sensors/trunk/doc/chips/SUMMARY
r526 r532 5 5 6 6 For further information on a particular chip, see the documentation 7 in this directory. 7 in this directory. Data sheets are generally available on the 8 manufacturer's web site. 8 9 9 To determine what chips you have on your system,10 To determine what chips you have in your system, 10 11 run prog/detect/sensors-detect. 11 12 13 If your sensor chip is not detected or supported by this package, 14 please send mail to lm78@stimpy.netroedge.com. 12 15 13 16 --------------------------------------------------------------------- 17 --------------------------------------------------------------------- 14 18 15 19 SENSOR CHIPS … … 27 31 28 32 adm9240 29 adm9240 1 6 5 1 dac yes no 30 ds1780 1 6 5 1 dac yes no 33 adm9240 1 6 2 1 dac yes no 34 ds1780 1 6 2 1 dac yes no 35 lm81 1 6 2 1 dac yes no 31 36 32 37 gl518sm … … 49 54 50 55 maxilife 51 maxilife 5 4 3 - yes no 56 maxilife-as 5 4 3 - yes no 57 maxilife-co 5 4 3 - yes no 58 maxilife-cg 5 4 3 - yes no 52 59 53 60 sis5595 lm-sensors/trunk/doc/chips/adm9240
r401 r532 13 13 Addresses scanned: I2C 0x2c - 0x2f (inclusive) 14 14 Datasheet: Publicly available at the Dallas Semiconductor website 15 * National Semiconductor LM81 16 Prefix `lm81' 17 Addresses scanned: I2C 0x2c - 0x2f (inclusive) 18 Datasheet: Publicly available at the National Semiconductor website 15 19 16 20 … … 30 34 List of adapter,address pairs which are unquestionably assumed to contain 31 35 a `ds1780' chip 36 * force_lm81: short array (min = 1, max = 48) 37 List of adapter,address pairs which are unquestionably assumed to contain 38 a `lm81' chip 32 39 * ignore: short array (min = 1, max = 48) 33 40 List of adapter,address pairs not to scan … … 43 50 ----------- 44 51 45 This driver implements support for the Analog Devices ADM9240 and 46 Dallas Semiconductor DS1780 chips. These chips appear to be completely 52 This driver implements support for the Analog Devices ADM9240, 53 Dallas Semiconductor DS1780, and National Semiconductor LM81 chips. 54 These chips appear to be completely 47 55 identical, except for the manufacturer IDs encoded in two registers, and 48 56 the speed with which they update their sensor readings. 49 57 50 The ADM9240 and DS1780implement six voltage sensors, a temperature sensor,58 The chips implement six voltage sensors, a temperature sensor, 51 59 two FAN rotation speed sensors, VID lines and some miscellaneous stuff. 52 60 … … 93 101 miss once-only alarms. 94 102 95 Thes ADM9240 only updates its values every 0.5 seconds; the DS1760 one 96 every 2 seconds; reading them more often will do no harm, but will return 103 Thes ADM9240 only updates its values every 0.5 seconds; the DS1780 one 104 every 2 seconds; and the LM81 every 0.4 seconds. 105 Reading them more often will do no harm, but will return 97 106 'old' values. (NB: theoretically, this could be done much faster for the 98 107 ADM9240, but there is no real reason to do so, and this way the SMBus use … … 233 242 alarms SENSORS_DS1780_ALARMS alarms:1 234 243 analog_out SENSORS_DS1780_ANALOG_OUT analog_out:1 244 245 246 Chip `lm81' 247 LABEL LABEL CLASS COMPUTE CLASS ACCESS MAGNITUDE 248 2.5V NONE NONE R 2 249 Vccp1 NONE NONE R 2 250 3.3V NONE NONE R 2 251 5V NONE NONE R 2 252 12V NONE NONE R 2 253 Vccp2 NONE NONE R 2 254 2.5V_min 2.5V 2.5V RW 2 255 Vccp1_min Vccp1 Vccp1 RW 2 256 3.3V_min 3.3V 3.3V RW 2 257 5V_min 5V 5V RW 2 258 12V_min 12V 12V RW 2 259 Vccp2_min Vccp2 Vccp2 RW 2 260 2.5V_max 2.5V 2.5V RW 2 261 Vccp1_max Vccp1 Vccp1 RW 2 262 3.3V_max 3.3V 3.3V RW 2 263 5V_max 5V 5V RW 2 264 12V_max 12V 12V RW 2 265 Vccp2_max Vccp2 Vccp2 RW 2 266 fan1 NONE NONE R 0 267 fan2 NONE NONE R 0 268 fan1_min fan1 fan1 RW 0 269 fan2_min fan2 fan2 RW 0 270 temp NONE NONE R 1 271 temp_hyst temp temp RW 1 272 temp_over temp temp RW 1 273 vid NONE NONE R 2 274 fan1_div fan1 NONE RW 0 275 fan2_div fan2 NONE RW 0 276 alarms NONE NONE R 0 277 analog_out NONE NONE RW 0 278 279 LABEL FEATURE SYMBOL SYSCTL FILE:NR 280 2.5V SENSORS_ADM9240_IN0 2.5V:3 281 Vccp1 SENSORS_ADM9240_IN1 Vccp1:3 282 3.3V SENSORS_ADM9240_IN2 3.3V:3 283 5V SENSORS_ADM9240_IN3 5V:3 284 12V SENSORS_ADM9240_IN4 12V:3 285 Vccp2 SENSORS_ADM9240_IN5 Vccp2:3 286 2.5V_min SENSORS_ADM9240_IN0_MIN 2.5V:1 287 Vccp1_min SENSORS_ADM9240_IN1_MIN Vccp1:1 288 3.3V_min SENSORS_ADM9240_IN2_MIN 3.3V:1 289 5V_min SENSORS_ADM9240_IN3_MIN 5V:1 290 12V_min SENSORS_ADM9240_IN4_MIN 12V:1 291 Vccp2_min SENSORS_ADM9240_IN5_MIN Vccp2:1 292 2.5V_max SENSORS_ADM9240_IN0_MAX 2.5V:2 293 Vccp1_max SENSORS_ADM9240_IN1_MAX Vccp1:2 294 3.3V_max SENSORS_ADM9240_IN2_MAX 3.3V:2 295 5V_max SENSORS_ADM9240_IN3_MAX 5V:2 296 12V_max SENSORS_ADM9240_IN4_MAX 12V:2 297 Vccp2_max SENSORS_ADM9240_IN5_MAX Vccp2:2 298 fan1 SENSORS_ADM9240_FAN1 fan1:2 299 fan2 SENSORS_ADM9240_FAN2 fan2:2 300 fan1_min SENSORS_ADM9240_FAN1_MIN fan1:1 301 fan2_min SENSORS_ADM9240_FAN2_MIN fan2:1 302 temp SENSORS_ADM9240_TEMP temp:3 303 temp_hyst SENSORS_ADM9240_TEMP_HYST temp:2 304 temp_over SENSORS_ADM9240_TEMP_OVER temp:1 305 vid SENSORS_ADM9240_VID vid:1 306 fan1_div SENSORS_ADM9240_FAN1_DIV fan_div:1 307 fan2_div SENSORS_ADM9240_FAN2_DIV fan_div:2 308 alarms SENSORS_ADM9240_ALARMS alarms:1 309 analog_out SENSORS_ADM9240_ANALOG_OUT analog_out:1 310 235 311 236 312 lm-sensors/trunk/kernel/chips/adm9240.c
r516 r532 19 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 20 */ 21 22 /* Supports ADM9240, DS1780, and LM81. See doc/chips/adm9240 for details */ 21 23 22 24 /* … … 75 77 76 78 /* Insmod parameters */ 77 SENSORS_INSMOD_ 2(adm9240,ds1780);79 SENSORS_INSMOD_3(adm9240,ds1780,lm81); 78 80 79 81 /* Many ADM9240 constants specified below */ … … 97 99 #define ADM9240_REG_FAN2 0x29 98 100 #define ADM9240_REG_COMPANY_ID 0x3E /* 0x23 for ADM9240; 0xDA for DS1780 */ 101 /* 0x01 for LM81 */ 99 102 #define ADM9240_REG_DIE_REV 0x3F 100 103 /* These are read/write */ … … 111 114 #define ADM9240_REG_VCCP2_HIGH 0x35 112 115 #define ADM9240_REG_VCCP2_LOW 0x36 116 #define ADM9240_REG_TCRIT_LIMIT 0x37 /* LM81 only - not supported */ 117 #define ADM9240_REG_LOW_LIMIT 0x38 /* LM81 only - not supported */ 113 118 #define ADM9240_REG_TOS 0x39 114 119 #define ADM9240_REG_THYST 0x3A … … 128 133 #define ADM9240_REG_VID4 0x49 129 134 #define ADM9240_REG_TEMP_CONFIG 0x4B 135 #define ADM9240_REG_EXTMODE1 0x4C /* LM81 only - not supported */ 136 #define ADM9240_REG_EXTMODE2 0x4D /* LM81 only - not supported */ 130 137 131 138 /* Conversions. Rounding and limit checking is only done on the TO_REG … … 391 398 else if (i == 0xda) 392 399 kind = ds1780; 400 else if (i == 0x01) 401 kind = lm81; 393 402 else { 394 403 if (kind == 0) … … 405 414 type_name = "ds1780"; 406 415 client_name = "DS1780 chip"; 416 } else if (kind == lm81) { 417 type_name = "lm81"; 418 client_name = "LM81 chip"; 407 419 } else { 408 420 #ifdef DEBUG lm-sensors/trunk/prog/detect/sensors-detect
r527 r532 151 151 @chip_ids = ( 152 152 { 153 name => "National Semiconductor sLM78",153 name => "National Semiconductor LM78", 154 154 driver => "lm78", 155 155 i2c_addrs => [0x00..0x7f], … … 161 161 } , 162 162 { 163 name => "National Semiconductor sLM78-J",163 name => "National Semiconductor LM78-J", 164 164 driver => "lm78", 165 165 i2c_addrs => [0x00..0x7f], … … 171 171 } , 172 172 { 173 name => "National Semiconductor sLM79",173 name => "National Semiconductor LM79", 174 174 driver => "lm78", 175 175 i2c_addrs => [0x00..0x7f], … … 181 181 } , 182 182 { 183 name => "National Semiconductor sLM75",183 name => "National Semiconductor LM75", 184 184 driver => "lm75", 185 185 i2c_addrs => [0x48..0x4f], … … 187 187 } , 188 188 { 189 name => "National Semiconductor sLM80",189 name => "National Semiconductor LM80", 190 190 driver => "lm80", 191 191 i2c_addrs => [0x28..0x2f], … … 258 258 i2c_addrs => [0x2c..0x2f], 259 259 i2c_detect => sub { adm9240_detect 1, @_ } 260 }, 261 { 262 name => "National Semiconductor LM81", 263 driver => "adm9240", 264 i2c_addrs => [0x2c..0x2f], 265 i2c_detect => sub { adm9240_detect 2, @_ } 260 266 }, 261 267 { … … 1347 1353 } 1348 1354 1349 # $_[0]: Chip to detect (0 = ADM9240, 1 = DS1780 )1355 # $_[0]: Chip to detect (0 = ADM9240, 1 = DS1780, 2 = LM81) 1350 1356 # $_[1]: A reference to the file descriptor to access this chip. 1351 1357 # We may assume an i2c_set_slave_addr was already done. … … 1363 1369 $reg = i2c_smbus_read_byte_data($file,0x3e); 1364 1370 return unless ($chip == 0 and $reg == 0x23) or 1365 ($chip == 1 and $reg == 0xda); 1371 ($chip == 1 and $reg == 0xda) or 1372 ($chip == 2 and $reg == 0x01); 1366 1373 return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; 1367 1374 return unless i2c_smbus_read_byte_data($file,0x48) == $addr; lm-sensors/trunk/prog/sensors/main.c
r526 r532 253 253 !strcmp(name.prefix,"max1617a")) 254 254 print_adm1021(&name); 255 else if (!strcmp(name.prefix,"adm9240") || !strcmp(name.prefix,"ds1780")) 255 else if (!strcmp(name.prefix,"adm9240") || 256 !strcmp(name.prefix,"ds1780") || 257 !strcmp(name.prefix,"lm81")) 256 258 print_adm9240(&name); 257 259 else if (!strcmp(name.prefix,"lm78") || !strcmp(name.prefix,"lm78-j") ||
