Changeset 2201
- Timestamp:
- 01/04/04 18:11:59 (9 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 4 modified
-
CHANGES (modified) (2 diffs)
-
doc/chips/it87 (modified) (2 diffs)
-
etc/sensors.conf.eg (modified) (1 diff)
-
kernel/chips/it87.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r2194 r2201 20 20 2.8.3 (2004????) 21 21 File lm_sensors.spec: Update 22 Library: Add 2.6 eeprom support22 Library: Add 2.6 eeprom, lm90 support 23 23 Makefile: Update Alpha CMODFLAGS (Daniel Nilsson) 24 24 Makefiles: Remove -o and -g arguments to install; add DESTDIR where missing … … 26 26 Module i2c-tsunami: Cleanups (Daniel Nilsson) 27 27 Module it87: Fix sg_tlx writes; fix sensor type reporting; 28 add 8712 Super I/O detection 28 add 8712 Super I/O detection; 29 remove initialization of temp_type and fan_ctl; 30 remove init and temp_type module parameters 29 31 Module w83781d: Fix negative voltages 30 32 Module w83l785ts: New -
lm-sensors/trunk/doc/chips/it87
r2053 r2201 43 43 any time. Excessive reading may decrease battery life but no information 44 44 is given in the datasheet. 45 * temp_type: integer bit mask 46 bit 0: Temp sensor 1 is thermal diode 47 bit 1: Temp sensor 2 is thermal diode 48 bit 2: Temp sensor 3 is thermal diode 49 bit 3: Temp sensor 1 is thermal resistor 50 bit 4: Temp sensor 2 is thermal resistor 51 bit 5: Temp sensor 3 is thermal resistor 52 For each sensor either the diode or resistor bit should be set, not both. 53 Default is temp sensor 1 and 3 resistor, 2 diode (value 0x2a) 54 Legal values: 55 sensor1 sensor2 sensor3 value 56 ------- ------- ------- ----- 57 diode diode diode 0x07 58 diode diode thermistor 0x23 59 diode thermistor diode 0x15 60 diode thermistor thermistor 0x31 61 thermistor diode diode 0x0e 62 thermistor diode thermistor 0x2a ** default 63 thermistor thermistor diode 0x1c 64 thermistor thermistor thermistor 0x38 45 * temp_type: integer bit mask (no longer supported; see below) 65 46 As of release 2.8.2 the sensor type can be set at runtime. See below. 66 47 * reset_it87: integer 1 if the registers of the chip should be reset at 67 48 module load time, 0 to not reset the registers. Default is 0. 68 * init: integer 1 if the registers should be initialized with the module's 69 default values, 0 skip the initialization. Default is 1. 70 On some boards (e.g. the Shuttle FN41 from the Shuttle XPC Barebone) 71 the BIOS configures it87's smart temperature monitoring fan power 72 adjust feature. A reset/init would unset this and set the power of the 73 fan to maximum speed (which is very noisy). Set 'reset_it87=0' to 74 keep the registers at the preconfigured values. 75 Note: If the registers weren't preconfigured for monitoring by the BIOS 76 the monitoring will not work if you do not reset and initialize the chip's 77 registers at module load time. 49 * init: (no longer supported) 78 50 79 51 Description … … 130 102 To change sensor x to a thermal diode, 'echo 3 > sensorx'. 131 103 Any other value is invalid. 104 To configure this at startup, put the following lines in the it87 section 105 of /etc/sensors.conf. 106 2 = thermistor; 3 = thermal diode 107 set sensor1 3 108 set sensor2 3 109 set sensor3 3 132 110 133 111 The fan speed control features can be enabled by setting the bits 0-2 of -
lm-sensors/trunk/etc/sensors.conf.eg
r2197 r2201 1401 1401 # 1402 1402 # Important - if your temperature readings are completely whacky 1403 # you probably need to change the sensor type. This must be done 1404 # with 'modprobe it87 temp_type=0xXX', you can't fix it in this file. 1405 # See ../doc/chips/it87 for details and valid 'XX' values!!! 1406 # 1403 # you probably need to change the sensor type. 1404 # Adujst and uncomment the appropriate lines below. 1405 # The old method (modprobe it87 temp_type=0xXX) is no longer supported. 1406 # 1407 # 2 = thermistor; 3 = thermal diode 1408 # set sensor1 3 1409 # set sensor2 3 1410 # set sensor3 3 1411 1407 1412 label temp1 "M/B Temp" 1408 1413 set temp1_over 40 -
lm-sensors/trunk/kernel/chips/it87.c
r2200 r2201 124 124 /* Reset the registers on init */ 125 125 static int reset_it87 = 0; 126 127 /* Initialize the registers to default values on init */128 static int init = 1;129 126 130 127 /* Many IT87 constants specified below */ … … 674 671 static void it87_init_client(struct i2c_client *client) 675 672 { 676 if( init ) 677 { 678 /* Reset all except Watchdog values and last conversion values 679 This sets fan-divs to 2, among others. 680 It will also reset the automatic temperature controlled fan 681 speed (noise) control the BIOS configured on POST and the 682 fan will be set to propably noisy full speed operation */ 683 if( reset_it87 ) { 684 it87_write_value(client, IT87_REG_CONFIG, 0x80); 685 } 686 687 /* Enable voltage monitors */ 688 it87_write_value(client, IT87_REG_VIN_ENABLE, 0xff); 689 690 /* Enable fans */ 691 it87_write_value(client, IT87_REG_FAN_CTRL, 692 (it87_read_value(client, IT87_REG_FAN_CTRL) & 0x8f) 693 | 0x70); 673 if( reset_it87 ) { 674 it87_write_value(client, IT87_REG_CONFIG, 0x80); 694 675 } 695 676 /* Start monitoring */ … … 1125 1106 MODULE_PARM(update_vbat, "i"); 1126 1107 MODULE_PARM_DESC(update_vbat, "Update vbat if set else return powerup value"); 1127 MODULE_PARM(init, "i");1128 MODULE_PARM_DESC(init, "Initialize some of the chip's registers, default yes");1129 1108 MODULE_PARM(reset_it87, "i"); 1130 1109 MODULE_PARM_DESC(reset_it87, "Reset the chip's registers, default no");
