Changeset 3202

Show
Ignore:
Timestamp:
11/26/05 12:28:44 (7 years ago)
Author:
khali
Message:

Add Analog Devices ADT7476 detection.

Files:
1 modified

Legend:

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

    r3199 r3202  
    10021002       i2c_addrs => [0x2e], 
    10031003       i2c_detect => sub { adt7467_detect 0, @_}, 
     1004     }, 
     1005     { 
     1006       name => "Analog Devices ADT7476", 
     1007       driver => "to-be-written", 
     1008       i2c_addrs => [0x2c..0x2e], 
     1009       i2c_detect => sub { adt7467_detect 1, @_}, 
    10041010     }, 
    10051011     { 
     
    34493455 
    34503456# $_[0]: Chip to detect 
    3451 #   (0 = ADT7467/ADT7468) 
     3457#   (0 = ADT7467/ADT7468, 1 = ADT7674) 
    34523458# $_[1]: A reference to the file descriptor to access this chip. 
    34533459#        We may assume an i2c_set_slave_addr was already done. 
     
    34703476    return if ($drev & 0xf0) != 0x70; 
    34713477    return 7 if ($drev == 0x71 || $drev == 0x72); 
     3478    return 5; 
     3479  } 
     3480  if ($chip == 1) { 
     3481    return if $mid != 0x41;     # Analog Devices 
     3482    return if $cid != 0x76;     # ADT7476 
     3483    return if ($drev & 0xf0) != 0x60; 
     3484    return 7 if ($drev == 0x69); 
    34723485    return 5; 
    34733486  }