Add VIA C7 detection. Patch from Juerg Haefliger.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5288 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-06-24 06:29:19 +00:00
1 parent 4a79587695
commit 45c012f52c
2 files changed
+21

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ SVN-HEAD
Fix Andigilog aSC7621 support
Add Texas Instruments THMC51 support
Fix Analog Devices ADT7461 support
Add VIA C7 support
3.0.2 (2008-05-18)
documentation: Delete the FAQ, now maintained on the wiki
+20
View File
@@ -2104,6 +2104,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(); },
},
);
#######################
@@ -5597,6 +5602,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 #
################