Changeset 5289

Show
Ignore:
Timestamp:
06/24/08 08:31:27 (5 months ago)
Author:
khali
Message:

Add VIA C7 detection. Patch from Juerg Haefliger.

Files:

Legend:

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

    r5286 r5289  
    3030                          Fix Andigilog aSC7621 support 
    3131                          Fix Analog Devices ADT7461 support 
     32                          Add VIA C7 support 
    3233 
    33342.10.6 "Welcome Home Lina" (20080306) 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5283 r5289  
    20492049    detect => sub { intel_amb_detect(); }, 
    20502050  }, 
     2051  { 
     2052    name => "VIA C7 thermal and voltage sensors", 
     2053    driver => "c7temp", 
     2054    detect => sub { c7temp_detect(); }, 
     2055  }, 
    20512056); 
    20522057 
     
    54825487                                 $probecpu->{'model'} == 0x16 || 
    54835488                                 $probecpu->{'model'} == 0x17)) { 
     5489                        return 9; 
     5490                } 
     5491        } 
     5492        return; 
     5493} 
     5494 
     5495# Returns: undef if not detected, (9) if detected. 
     5496sub c7temp_detect 
     5497{ 
     5498        my $probecpu; 
     5499        foreach $probecpu (@cpu) { 
     5500                if ($probecpu->{'vendor_id'} eq 'CentaurHauls' && 
     5501                                $probecpu->{'cpu family'} == 6 && 
     5502                                ($probecpu->{'model'} == 0xa || 
     5503                                 $probecpu->{'model'} == 0xd)) { 
    54845504                        return 9; 
    54855505                }