From 5e7bc8eb489611fbaa91613ce48c24d9d4d15fbb Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Sun, 7 Oct 2007 17:53:00 +0000 Subject: [PATCH] Add detection of AMD K10 family thermal sensor. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4923 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index ee0d5e59..b076f838 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2082,6 +2082,11 @@ use vars qw(@chip_kern24_ids @chip_kern26_ids); driver => "k8temp", detect => sub { k8temp_pci_detect(); }, }, + { + name => "AMD K10 thermal sensors", + driver => "to-be-written", + detect => sub { k10temp_pci_detect(); }, + }, { name => "Intel Core family thermal sensor", driver => "coretemp", @@ -5357,6 +5362,12 @@ sub k8temp_pci_detect return 9; } +sub k10temp_pci_detect +{ + return unless exists $pci_list{'1022:1203'}; + return 9; +} + # Returns: undef if not detected, (9) if detected. # the device 0xa620 should not be visible on host PCI bus, gateway # must be used