Changeset 4410

Show
Ignore:
Timestamp:
05/22/07 13:29:02 (6 years ago)
Author:
khali
Message:

Add Maxim MAX6680/MAX6681 detection. Patch contributed by
Rainer Birkenmaier (Siemens).

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4408 r4410  
    2323                          Add /usr/sbin to the PATH (#2199) 
    2424                          Add ATI SB700 detection 
     25                          Add Maxim MAX6680/MAX6681 detection 
    2526 
    2627 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4408 r4410  
    12601260       i2c_addrs => [0x4c], 
    12611261       i2c_detect => sub { lm90_detect(6, @_); }, 
     1262     }, 
     1263     { 
     1264       name => "Maxim MAX6680/MAX6681", 
     1265       driver => "lm90", 
     1266       i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e], 
     1267       i2c_detect => sub { lm90_detect(7, @_); }, 
    12621268     }, 
    12631269     { 
     
    36773683# $_[0]: Chip to detect 
    36783684#   (0 = LM90, 1=LM89/LM99, 2=LM86, 3=ADM1032, 4=MAX6657/MAX6658/MAX6659, 
    3679 #    5 = ADT7461, 6 = MAX6648/MAX6692) 
     3685#    5 = ADT7461, 6 = MAX6648/MAX6692, 7 = MAX6680/MAX6681) 
    36803686# $_[1]: A reference to the file descriptor to access this chip. 
    36813687# $_[2]: Address 
    36823688# Returns: undef if not detected, 4, 6 or 8 if detected. 
    3683 #   The Maxim chips have a low confidence value (4) 
    3684 #   because they don't have a die revision register. 
     3689#   The Maxim chips MAX6657, MAX6658 and MAX6659 have a low confidence 
     3690#   value (4) because they don't have a die revision register. 
    36853691# Registers used: 
    36863692#   0x03: Configuration 
     
    37453751    return 8; 
    37463752  }     
     3753  if ($chip == 7) { 
     3754    return if ($conf & 0x03) != 0; 
     3755    return if $rate > 0x07; 
     3756    return if $mid != 0x4d;     # Maxim 
     3757    return if $cid != 0x01;     # MAX6680/MAX6681 
     3758    return 6; 
     3759  } 
    37473760  return; 
    37483761}