Changeset 5250

Show
Ignore:
Timestamp:
05/11/08 23:01:18 (5 months ago)
Author:
khali
Message:

Add Dallas DS1631 detection.

Files:

Legend:

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

    r5248 r5250  
    2121                          Detect and skip 1-register-only I2C devices 
    2222                          Avoid SMBus word transactions where possible 
     23                          Add Dallas DS1631 detection 
    2324 
    24252.10.6 "Welcome Home Lina" (20080306) 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5248 r5250  
    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);