Show
Ignore:
Timestamp:
10/14/10 14:27:07 (20 months ago)
Author:
khali
Message:

sensors-detect: Improve LM90 and W83L771 detection.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5861 r5867  
    41144114#   0x03: Configuration 
    41154115#   0x04: Conversion rate 
     4116#   0xbf: Configuration 2 (National Semiconductor and Winbond only) 
    41164117#   0xfe: Manufacturer ID 
    41174118#   0xff: Chip ID / die revision 
     
    41234124        my $conf = i2c_smbus_read_byte_data($file, 0x03); 
    41244125        my $rate = i2c_smbus_read_byte_data($file, 0x04); 
     4126        my $conf2 = i2c_smbus_read_byte_data($file, 0xbf); 
    41254127 
    41264128        if ($chip == 0) { 
    41274129                return if ($conf & 0x2a) != 0; 
     4130                return if ($conf2 & 0xf8) != 0; 
    41284131                return if $rate > 0x09; 
    41294132                return if $mid != 0x01;         # National Semiconductor 
     
    41334136        if ($chip == 1) { 
    41344137                return if ($conf & 0x2a) != 0; 
     4138                return if ($conf2 & 0xf8) != 0; 
    41354139                return if $rate > 0x09; 
    41364140                return if $mid != 0x01;         # National Semiconductor 
     
    41414145        if ($chip == 2) { 
    41424146                return if ($conf & 0x2a) != 0; 
     4147                return if ($conf2 & 0xf8) != 0; 
    41434148                return if $rate > 0x09; 
    41444149                return if $mid != 0x01;         # National Semiconductor 
     
    41724177        if ($chip == 8) { 
    41734178                return if ($conf & 0x2a) != 0; 
     4179                return if ($conf2 & 0xf8) != 0; 
    41744180                return if $rate > 0x09; 
    41754181                return if $mid != 0x5c;         # Winbond 
     
    41924198        if ($chip == 11) { 
    41934199                return if ($conf & 0x2a) != 0; 
     4200                return if ($conf2 & 0xf8) != 0; 
    41944201                return if $rate > 0x08; 
    41954202                return if $mid != 0x5c;         # Winbond