mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
Merge pull request #173 from hygonsoc/master
sensors-detect: Add Hygon SoC driver detect support
This commit is contained in:
1 file changed
+13
@@ -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'};
|
||||
|
||||
Reference in new issue
Block a user