Skip to contentSkip to conversation

lm-sensors: Add support for c7temp driver

PATCH Applied Juerg Haefliger 2 participants 2 messages Jun 23, 2008 – Jun 24, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lm-sensors: Add support for c7temp driver

Add support for c7temp driver for VIA C7 CPU integrated thermal and voltage sensors.

Signed-off-by Juerg Haefliger <juergh at gmail.com>
---
 prog/detect/sensors-detect |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
prog/detect/sensors-detect +20 -0
Index: lm-sensors-3/prog/detect/sensors-detect
===================================================================
@@ -2158,6 +2158,11 @@
     driver => "to-be-written",
     detect => sub { intel_amb_detect(); },
   },
+  {
+    name => "VIA C7 thermal and voltage sensors",
+    driver => "c7temp",
+    detect => sub { c7temp_detect(); },
+  },
 );
 
 #######################
@@ -5474,6 +5479,21 @@
 	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 #
 ################

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

Applied
#1 lore raw

Hi Juerg,

Quoted 4 lines · Juerg Haefliger

Add support for c7temp driver for VIA C7 CPU integrated thermal and voltage sensors.

Signed-off-by Juerg Haefliger <juergh at gmail.com>

Applied, thanks.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors