Changeset 5314

Show
Ignore:
Timestamp:
08/20/08 20:02:22 (3 months ago)
Author:
khali
Message:

An updated TMP411 datasheet actually shows that this chip has different
device IDs than the TMP401.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r5308 r5314  
    2222                  Add SMSC EMC2700LPC support 
    2323                  Add ITE IT8720 support 
     24                  Add Texas Instruments TMP411 support 
    2425 
    25263.0.2 (2008-05-18) 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5312 r5314  
    11411141     }, 
    11421142     { 
    1143        name => "Texas Instruments TMP401/TMP411", 
     1143       name => "Texas Instruments TMP401", 
    11441144       driver => "tmp401", 
    11451145       i2c_addrs => [0x4c], 
    11461146       i2c_detect => sub { lm90_detect(9, @_); }, 
     1147     }, 
     1148     { 
     1149       name => "Texas Instruments TMP411", 
     1150       driver => "to-be-written", 
     1151       i2c_addrs => [0x4c..0x4e], 
     1152       i2c_detect => sub { lm90_detect(10, @_); }, 
    11471153     }, 
    11481154     { 
     
    40054011#   (0 = LM90, 1 = LM89/LM99, 2 = LM86, 3 = ADM1032, 4 = MAX6654/MAX6690, 
    40064012#    5 = ADT7461, 6 = MAX6646/MAX6647/MAX6648/MAX6649/MAX6692, 
    4007 #    7 = MAX6680/MAX6681, 8 = W83L771W/G, 9 = TI TMP401/TMP411) 
     4013#    7 = MAX6680/MAX6681, 8 = W83L771W/G, 9 = TMP401, 10 = TMP411) 
    40084014# $_[1]: A reference to the file descriptor to access this chip. 
    40094015# $_[2]: Address 
     
    40884094    return if $rate > 0x0F; 
    40894095    return if $mid != 0x55;     # Texas Instruments 
    4090     return if $cid != 0x11;     # TMP401/TMP411 
     4096    return if $cid != 0x11;     # TMP401 
    40914097    return 8; 
     4098  } 
     4099  if ($chip == 10) { 
     4100    return if ($conf & 0x1B) != 0; 
     4101    return if $rate > 0x0F; 
     4102    return if $mid != 0x55;     # Texas Instruments 
     4103    return 6 if ($addr == 0x4c && $cid == 0x12); # TPM411A 
     4104    return 6 if ($addr == 0x4d && $cid == 0x13); # TMP411B 
     4105    return 6 if ($addr == 0x4e && $cid == 0x10); # TMP411C 
     4106    return; 
    40924107  } 
    40934108  return;