Changeset 998

Show
Ignore:
Timestamp:
01/19/01 03:39:26 (12 years ago)
Author:
mds
Message:

recognize lm78's with chipid register (0x49) == 0x20, as

reported by Vernon McPherron? <vernon@…>

Location:
lm-sensors/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r997 r998  
    1919 
    20202.5.6 (2001????) 
    21   Module sensors: add xxx_init() calls for drivers added to mkpatch in 2.5.5. 
    22   Program mkpatch.pl: fix adm9240 typos 
     21  Module lm78: Recognize chipid=0x20 
     22  Module sensors: Add xxx_init() calls for drivers added to mkpatch in 2.5.5. 
     23  Program mkpatch.pl: Fix adm9240 typos 
     24  Program sensors-detect: Recognize lm78 with chipid=0x20 
    2325 
    24262.5.5 (20010115) 
  • lm-sensors/trunk/kernel/chips/lm78.c

    r933 r998  
    390390        if (kind <= 0) { 
    391391                i = lm78_read_value(new_client, LM78_REG_CHIPID); 
    392                 if (i == 0x00) 
     392                if (i == 0x00 || i == 0x20) 
    393393                        kind = lm78; 
    394394                else if (i == 0x40) 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r967 r998  
    15041504  return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; 
    15051505  $reg = i2c_smbus_read_byte_data($file,0x49); 
    1506   return unless ($chip == 0 and $reg == 0x00) or 
     1506  return unless ($chip == 0 and ($reg == 0x00 or $reg == 0x20)) or 
    15071507                    ($chip == 1 and $reg == 0x40) or 
    15081508                    ($chip == 2 and ($reg & 0xfe) == 0xc0); 
     
    15301530  return unless (&$readproc(0x40) & 0x80) == 0x00; 
    15311531  my $reg = &$readproc(0x49); 
    1532   return unless ($chip == 0 and $reg == 0x00) or 
     1532  return unless ($chip == 0 and ($reg == 0x00 or $reg == 0x20)) or 
    15331533                ($chip == 1 and $reg == 0x40) or 
    15341534                ($chip == 2 and ($reg & 0xfe) == 0xc0);