mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 22:35:23 +00:00
Add detection for VIA Nano. Update driver name for VIA C7.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5809 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1899,9 +1899,13 @@ use vars qw(@cpu_ids);
|
||||
driver => "i5k_amb",
|
||||
detect => \&intel_amb_detect,
|
||||
}, {
|
||||
name => "VIA C7 thermal and voltage sensors",
|
||||
driver => "c7temp",
|
||||
detect => \&c7temp_detect,
|
||||
name => "VIA C7 thermal sensor",
|
||||
driver => "via-cputemp",
|
||||
detect => \&via_c7_detect,
|
||||
}, {
|
||||
name => "VIA Nano thermal sensor",
|
||||
driver => "via-cputemp",
|
||||
detect => \&via_nano_detect,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -5402,7 +5406,7 @@ sub coretemp_detect
|
||||
return;
|
||||
}
|
||||
|
||||
sub c7temp_detect
|
||||
sub via_c7_detect
|
||||
{
|
||||
my $probecpu;
|
||||
foreach $probecpu (@cpu) {
|
||||
@@ -5416,6 +5420,19 @@ sub c7temp_detect
|
||||
return;
|
||||
}
|
||||
|
||||
sub via_nano_detect
|
||||
{
|
||||
my $probecpu;
|
||||
foreach $probecpu (@cpu) {
|
||||
if ($probecpu->{vendor_id} eq 'CentaurHauls' &&
|
||||
$probecpu->{'cpu family'} == 6 &&
|
||||
$probecpu->{model} == 0xf) {
|
||||
return 9;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
#################
|
||||
# SPECIAL MODES #
|
||||
#################
|
||||
|
Reference in New Issue
Block a user