Changeset 539

Show
Ignore:
Timestamp:
08/28/99 21:06:53 (14 years ago)
Author:
mds
Message:

(mds) Improved w83627hf support. Can't do much more unless I get a

datasheet though.

Files:
1 modified

Legend:

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

    r525 r539  
    2626    Chip        #vin    #fanin  #pwm    #temp   wchipid i2c     ISA 
    2727    w83781d     7       3       0       3       0x10    yes     yes 
     28    w83627hf    9       3       2-4     3       0x20    yes     yes (LPC) 
    2829    w83782d     9       3       2-4     3       0x30    yes     yes 
    2930    w83783s     5-6     3       2       1-2     0x40    yes     no 
    30     w83782d     9       3       2-4     3       0x20    yes     yes (LPC) 
    3131 
    3232*/ 
     
    10191019    } 
    10201020  } 
    1021 #endif 
     1021#endif /* W83781D_RT */ 
    10221022 
    10231023  w83781d_write_value(client,W83781D_REG_IN_MIN(0), 
     
    10661066                        IN_TO_REG(W83782D_INIT_IN_MAX_6)); 
    10671067  } 
    1068   if (type == w83782d) { 
     1068  if ((type == w83782d) || (type == w83627hf)) { 
    10691069    w83781d_write_value(client,W83781D_REG_IN_MIN(7), 
    10701070                        IN_TO_REG(W83781D_INIT_IN_MIN_7)); 
     
    11271127      data->in_min[i] = w83781d_read_value(client,W83781D_REG_IN_MIN(i)); 
    11281128      data->in_max[i] = w83781d_read_value(client,W83781D_REG_IN_MAX(i)); 
    1129       if((data->type != w83782d)  && (i == 6)) 
     1129      if((data->type != w83782d) && (data->type != w83627hf) && (i == 6)) 
    11301130        break; 
    11311131    } 
     
    11381138        data->pwm[i-1] = w83781d_read_value(client,W83781D_REG_PWM(i)); 
    11391139        if(((data->type == w83783s) || 
    1140            ((data->type == w83782d) && i2c_is_isa_client(client))) 
     1140           (((data->type == w83782d) || (data->type == w83627hf)) && 
     1141            i2c_is_isa_client(client))) 
    11411142          &&  i == 2) 
    11421143          break; 
     
    11681169    data->alarms = w83781d_read_value(client,W83781D_REG_ALARM1) + 
    11691170                   (w83781d_read_value(client,W83781D_REG_ALARM2) << 8); 
    1170     if (data->type == w83782d) { 
     1171    if ((data->type == w83782d) || (data->type == w83627hf)) { 
    11711172      data->alarms |= w83781d_read_value(client,W83781D_REG_ALARM3) << 16; 
    11721173    }