Changeset 5288

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

Add VIA C7 detection. Patch from Juerg Haefliger.

Files:

Legend:

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

    r5282 r5288  
    1515                  Add Texas Instruments THMC51 support 
    1616                  Fix Analog Devices ADT7461 support 
     17                  Add VIA C7 support 
    1718 
    18193.0.2 (2008-05-18) 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5282 r5288  
    21052105    detect => sub { intel_amb_detect(); }, 
    21062106  }, 
     2107  { 
     2108    name => "VIA C7 thermal and voltage sensors", 
     2109    driver => "c7temp", 
     2110    detect => sub { c7temp_detect(); }, 
     2111  }, 
    21072112); 
    21082113 
     
    55925597                                 $probecpu->{'model'} == 0x16 || 
    55935598                                 $probecpu->{'model'} == 0x17)) { 
     5599                        return 9; 
     5600                } 
     5601        } 
     5602        return; 
     5603} 
     5604 
     5605# Returns: undef if not detected, (9) if detected. 
     5606sub c7temp_detect 
     5607{ 
     5608        my $probecpu; 
     5609        foreach $probecpu (@cpu) { 
     5610                if ($probecpu->{'vendor_id'} eq 'CentaurHauls' && 
     5611                                $probecpu->{'cpu family'} == 6 && 
     5612                                ($probecpu->{'model'} == 0xa || 
     5613                                 $probecpu->{'model'} == 0xd)) { 
    55945614                        return 9; 
    55955615                }