Changeset 4333

Show
Ignore:
Timestamp:
02/24/07 19:13:41 (6 years ago)
Author:
khali
Message:

Fix ADM1028 detection.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4332 r4333  
    3333                          Add SMSC LPC47M292 detection 
    3434                          Add nVidia MCP61 and MCP65 detection 
     35                          Fix ADM1028 detection 
    3536 
    3637 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4330 r4333  
    43524352                ($chip == 2 and $reg == 0x41); 
    43534353  return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; 
    4354   $reg = i2c_smbus_read_byte_data($file, 0x3f); 
    4355   return unless ($reg & 0xc0) == 0xc0; 
    4356   return if $chip == 0 and ($reg & 0xc0) != 0xc0; 
    4357   return if $chip == 2 and ($reg & 0xc0) == 0xc0; 
     4354  $reg = i2c_smbus_read_byte_data($file, 0x3f) & 0xf0; 
     4355  return unless ($chip == 0 and $reg == 0xc0) or 
     4356                ($chip == 1 and $reg == 0xc0) or 
     4357                ($chip == 2 and $reg == 0xd0); 
    43584358  return (8); 
    43594359}