Changeset 5249

Show
Ignore:
Timestamp:
05/11/08 22:56:25 (2 months ago)
Author:
khali
Message:

Add Dallas DS1631 detection.

Files:

Legend:

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

    r5246 r5249  
    2929                  Detect and skip 1-register-only I2C devices 
    3030                  Avoid SMBus word transactions where possible 
     31                  Add Dallas DS1631 detection 
    3132 
    32333.0.1 (2008-01-28) 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5246 r5249  
    911911     }, 
    912912     { 
    913        name => "Dallas Semiconductor DS1621", 
     913       name => "Dallas Semiconductor DS1621/DS1631", 
    914914       driver => "ds1621", 
    915915       i2c_addrs => [0x48..0x4f], 
     
    38133813 
    38143814  my $temp = i2c_smbus_read_word_data($file,0xAA); 
    3815   return if $temp < 0 || ($temp & 0x7f00); 
     3815  return if $temp < 0 || ($temp & 0x0f00); 
     3816  # On the DS1631, the following two checks are too strict in theory, 
     3817  # but in practice I very much doubt that anyone will set temperature 
     3818  # limits not a multiple of 0.5 degrees C. 
    38163819  my $high = i2c_smbus_read_word_data($file,0xA1); 
    38173820  return if $high < 0 || ($high & 0x7f00);