Merge pull request #173 from hygonsoc/master

sensors-detect: Add Hygon SoC driver detect support
This commit is contained in:
Ondřej Lysoněk authored and GitHub committed 2019-04-08 10:35:15 +02:00
commit 1020728a96
1 file changed
+13
+13
View File
@@ -2784,6 +2784,10 @@ use vars qw(@cpu_ids);
name => "AMD Family 16h power sensors",
driver => "fam15h_power",
detect => sub { amd_pci_detect('1534', '1584') },
}, {
name => "Hygon Family 18h thermal sensors",
driver => "k10temp",
detect => sub { hygon_pci_detect('1463') },
}, {
name => "Intel digital thermal sensor",
driver => "coretemp",
@@ -7048,6 +7052,15 @@ sub amd_pci_detect
return undef;
}
sub hygon_pci_detect
{
my $dev_id;
while (defined($dev_id = shift)) {
return 9 if exists $pci_list{"1d94:$dev_id"};
}
return undef;
}
sub fam10h_pci_detect
{
return unless exists $pci_list{'1022:1203'};