diff options
author | Ondřej Lysoněk <olysonek@redhat.com> | 2019-04-08 10:35:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 10:35:15 +0200 |
commit | 1020728a96e415e735203b6ea3362f7cd88e3e89 (patch) | |
tree | 51adaf93f42b83da682702ee59ea0f60604ab5a1 | |
parent | 7812be2efe6bb69ec796dad6f4d07f678812c77f (diff) | |
parent | 19fb506ef0804643dce77f695abf197093c598f5 (diff) | |
download | lm-sensors-git-1020728a96e415e735203b6ea3362f7cd88e3e89.tar.gz |
Merge pull request #173 from hygonsoc/master
sensors-detect: Add Hygon SoC driver detect support
-rwxr-xr-x | prog/detect/sensors-detect | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 5f270d2d..5c771485 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2785,6 +2785,10 @@ use vars qw(@cpu_ids); 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", detect => \&coretemp_detect, @@ -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'}; |