Changeset 728

Show
Ignore:
Timestamp:
02/07/00 02:54:00 (9 years ago)
Author:
mds
Message:

(mds) stop changing fan 1/2/3 input/output values at module startup,

hopefully this will preserve BIOS settings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/kernel/chips/w83781d.c

    r719 r728  
    11381138        u8 tmp; 
    11391139 
     1140        /* save this register */ 
     1141        i = w83781d_read_value(client, W83781D_REG_BEEP_CONFIG); 
    11401142        /* Reset all except Watchdog values and last conversion values 
    11411143           This sets fan-divs to 2, among others */ 
    11421144        w83781d_write_value(client, W83781D_REG_CONFIG, 0x80); 
    1143         /* Disable power-on abnormal beep. BIOS should have already turned off but 
    1144            not all do. Reset value is 0x15, write a 0x95. */ 
    1145         w83781d_write_value(client, W83781D_REG_BEEP_CONFIG, 0x95); 
     1145        /* Restore the register and disable power-on abnormal beep. 
     1146           This saves FAN 1/2/3 input/output values set by BIOS. */ 
     1147        w83781d_write_value(client, W83781D_REG_BEEP_CONFIG, i | 0x80); 
    11461148        /* Disable master beep-enable (reset turns it on). 
    11471149           Individual beeps should be reset to off but for some reason 
     
    13021304                w83781d_write_value(client, W83781D_REG_TEMP3_CONFIG, 
    13031305                                    0x00); 
     1306        } 
     1307        /* enable PWM2 control (can't hurt since PWM reg should have been 
     1308           reset to 0xff) */ 
     1309        if (type != w83781d) { 
     1310                w83781d_write_value(client, W83781D_REG_PWMCLK12, 0x19); 
    13041311        } 
    13051312