Add VIA C7 detection. Patch from Juerg Haefliger.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5289 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-06-24 06:31:27 +00:00
1 parent 253dc9c9d9
commit 5215a15ebd
2 files changed
+21

No files matched your search

+1
View File
@@ -29,6 +29,7 @@ SVN-HEAD
Add Dallas DS1631 detection
Fix Andigilog aSC7621 support
Fix Analog Devices ADT7461 support
Add VIA C7 support
2.10.6 "Welcome Home Lina" (20080306)
Library: Fix fschrc and fschmd support
+20
View File
@@ -2048,6 +2048,11 @@ use vars qw(@chip_kern24_ids @chip_kern26_ids
driver => "to-be-written",
detect => sub { intel_amb_detect(); },
},
{
name => "VIA C7 thermal and voltage sensors",
driver => "c7temp",
detect => sub { c7temp_detect(); },
},
);
#######################
@@ -5487,6 +5492,21 @@ sub coretemp_detect
return;
}
# Returns: undef if not detected, (9) if detected.
sub c7temp_detect
{
my $probecpu;
foreach $probecpu (@cpu) {
if ($probecpu->{'vendor_id'} eq 'CentaurHauls' &&
$probecpu->{'cpu family'} == 6 &&
($probecpu->{'model'} == 0xa ||
$probecpu->{'model'} == 0xd)) {
return 9;
}
}
return;
}
################
# MAIN PROGRAM #
################