Changeset 2201

Show
Ignore:
Timestamp:
01/04/04 18:11:59 (9 years ago)
Author:
mds
Message:

remove it87 fan_ctl initialization and init parameter;

update docs and sensors.conf

Location:
lm-sensors/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r2194 r2201  
    20202.8.3 (2004????) 
    2121  File lm_sensors.spec: Update 
    22   Library: Add 2.6 eeprom support 
     22  Library: Add 2.6 eeprom, lm90 support 
    2323  Makefile: Update Alpha CMODFLAGS (Daniel Nilsson) 
    2424  Makefiles: Remove -o and -g arguments to install; add DESTDIR where missing 
     
    2626  Module i2c-tsunami: Cleanups (Daniel Nilsson) 
    2727  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 
    2931  Module w83781d: Fix negative voltages 
    3032  Module w83l785ts: New 
  • lm-sensors/trunk/doc/chips/it87

    r2053 r2201  
    4343  any time.  Excessive reading may decrease battery life but no information  
    4444  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) 
    6546  As of release 2.8.2 the sensor type can be set at runtime. See below. 
    6647* reset_it87: integer 1 if the registers of the chip should be reset at 
    6748  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) 
    7850 
    7951Description 
     
    130102To change sensor x to a thermal diode, 'echo 3 > sensorx'. 
    131103Any other value is invalid. 
     104To configure this at startup, put the following lines in the it87 section 
     105of /etc/sensors.conf. 
     1062 = thermistor; 3 = thermal diode 
     107           set sensor1 3 
     108           set sensor2 3 
     109           set sensor3 3 
    132110 
    133111The fan speed control features can be enabled by setting the bits 0-2 of 
  • lm-sensors/trunk/etc/sensors.conf.eg

    r2197 r2201  
    14011401# 
    14021402# 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 
    14071412    label temp1       "M/B Temp" 
    14081413    set   temp1_over  40 
  • lm-sensors/trunk/kernel/chips/it87.c

    r2200 r2201  
    124124/* Reset the registers on init */ 
    125125static int reset_it87 = 0; 
    126  
    127 /* Initialize the registers to default values on init */ 
    128 static int init = 1; 
    129126 
    130127/* Many IT87 constants specified below */ 
     
    674671static void it87_init_client(struct i2c_client *client) 
    675672{ 
    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); 
    694675        } 
    695676        /* Start monitoring */ 
     
    11251106MODULE_PARM(update_vbat, "i"); 
    11261107MODULE_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"); 
    11291108MODULE_PARM(reset_it87, "i"); 
    11301109MODULE_PARM_DESC(reset_it87, "Reset the chip's registers, default no");