Show
Ignore:
Timestamp:
03/20/01 02:46:44 (11 years ago)
Author:
mds
Message:

Don't reset the as99127f chip at startup. This may improve things

that are configurable as we will count on the BIOS to configure
the chip correctly. This will likely change fan and temperature
readings for some users.

Files:
1 modified

Legend:

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

    r1015 r1039  
    11891189        u8 tmp; 
    11901190 
    1191         /* save this register */ 
    1192         i = w83781d_read_value(client, W83781D_REG_BEEP_CONFIG); 
    1193         /* Reset all except Watchdog values and last conversion values 
    1194            This sets fan-divs to 2, among others */ 
    1195         w83781d_write_value(client, W83781D_REG_CONFIG, 0x80); 
    1196         /* Restore the register and disable power-on abnormal beep. 
    1197            This saves FAN 1/2/3 input/output values set by BIOS. */ 
    1198         w83781d_write_value(client, W83781D_REG_BEEP_CONFIG, i | 0x80); 
    1199         /* Disable master beep-enable (reset turns it on). 
    1200            Individual beeps should be reset to off but for some reason 
    1201            disabling this bit helps some people not get beeped */ 
    1202         w83781d_write_value(client, W83781D_REG_BEEP_INTS2, 0); 
     1191        if(type != as99127f) { /* this resets registers we don't have 
     1192                                  documentation for on the as99127f */ 
     1193                /* save this register */ 
     1194                i = w83781d_read_value(client, W83781D_REG_BEEP_CONFIG); 
     1195                /* Reset all except Watchdog values and last conversion values 
     1196                   This sets fan-divs to 2, among others */ 
     1197                w83781d_write_value(client, W83781D_REG_CONFIG, 0x80); 
     1198                /* Restore the register and disable power-on abnormal beep. 
     1199                   This saves FAN 1/2/3 input/output values set by BIOS. */ 
     1200                w83781d_write_value(client, W83781D_REG_BEEP_CONFIG, i | 0x80); 
     1201                /* Disable master beep-enable (reset turns it on). 
     1202                   Individual beeps should be reset to off but for some reason 
     1203                   disabling this bit helps some people not get beeped */ 
     1204                w83781d_write_value(client, W83781D_REG_BEEP_INTS2, 0); 
     1205        } 
    12031206 
    12041207        vid = w83781d_read_value(client, W83781D_REG_VID_FANDIV) & 0x0f;