Changeset 4250

Show
Ignore:
Timestamp:
12/02/06 23:05:42 (6 years ago)
Author:
khali
Message:

Add Maxim MAX6648/MAX6692 detection. These seem to be somewhat similar
to the MAX6657/MAX6658/MAX6659.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4248 r4250  
    3030                          Prevent misdetection of MAX6633/MAX6634/MAX6635 
    3131                          Add Intel ICH9 detection 
     32                          Add Maxim MAX6648/MAX6692 detection 
    3233 
    33342.10.1 (20060924) 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4249 r4250  
    11901190       i2c_addrs => [0x4d..0x4e], # 0x4c is handled above 
    11911191       i2c_detect => sub { lm90_detect(4, @_); }, 
     1192     }, 
     1193     { 
     1194       name => "Maxim MAX6648/MAX6692", 
     1195       driver => "to-be-written", 
     1196       i2c_addrs => [0x4c], 
     1197       i2c_detect => sub { lm90_detect(6, @_); }, 
    11921198     }, 
    11931199     { 
     
    35613567# $_[0]: Chip to detect 
    35623568#   (0 = LM90, 1=LM89/LM99, 2=LM86, 3=ADM1032, 4=MAX6657/MAX6658/MAX6659, 
    3563 #    5 = ADT7461) 
     3569#    5 = ADT7461, 6 = MAX6648/MAX6692) 
    35643570# $_[1]: A reference to the file descriptor to access this chip. 
    35653571#        We may assume an i2c_set_slave_addr was already done. 
     
    36233629    return 8 if $cid == 0x61;   # ADT7461 
    36243630  } 
     3631  if ($chip == 6) { 
     3632    return if ($conf & 0x3f) != 0; 
     3633    return if $rate > 0x07; 
     3634    return if $mid != 0x4d;     # Maxim 
     3635    return if $cid != 0x59;     # MAX6648/MAX6692 
     3636    return 8; 
     3637  }     
    36253638  return; 
    36263639}