Changeset 5809

Show
Ignore:
Timestamp:
12/14/09 10:52:42 (4 years ago)
Author:
khali
Message:

Add detection for VIA Nano. Update driver name for VIA C7.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5806 r5809  
    4141                  More known revisions for the ADT7476 
    4242                  Add detection for Nuvoton W83L771AWG/ASG 
     43                  Add detection for VIA Nano 
    4344  sysconfig-lm_sensors-convert: Fix exit code 
    4445 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5807 r5809  
    19001900                detect => \&intel_amb_detect, 
    19011901        }, { 
    1902                 name => "VIA C7 thermal and voltage sensors", 
    1903                 driver => "c7temp", 
    1904                 detect => \&c7temp_detect, 
     1902                name => "VIA C7 thermal sensor", 
     1903                driver => "via-cputemp", 
     1904                detect => \&via_c7_detect, 
     1905        }, { 
     1906                name => "VIA Nano thermal sensor", 
     1907                driver => "via-cputemp", 
     1908                detect => \&via_nano_detect, 
    19051909        } 
    19061910); 
     
    54035407} 
    54045408 
    5405 sub c7temp_detect 
     5409sub via_c7_detect 
    54065410{ 
    54075411        my $probecpu; 
     
    54115415                                ($probecpu->{model} == 0xa || 
    54125416                                 $probecpu->{model} == 0xd)) { 
     5417                        return 9; 
     5418                } 
     5419        } 
     5420        return; 
     5421} 
     5422 
     5423sub via_nano_detect 
     5424{ 
     5425        my $probecpu; 
     5426        foreach $probecpu (@cpu) { 
     5427                if ($probecpu->{vendor_id} eq 'CentaurHauls' && 
     5428                                $probecpu->{'cpu family'} == 6 && 
     5429                                $probecpu->{model} == 0xf) { 
    54135430                        return 9; 
    54145431                }