summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcnst <cnst@openbsd.org>2007-06-25 22:50:18 +0000
committercnst <cnst@openbsd.org>2007-06-25 22:50:18 +0000
commit4877d4fa990c4262565c65878b0d9309a8fd09ba (patch)
tree6a3d1d962075b89b6f7ebd6211038a5129c78b54
parentreplace magic number with a define. (diff)
downloadwireguard-openbsd-4877d4fa990c4262565c65878b0d9309a8fd09ba.tar.xz
wireguard-openbsd-4877d4fa990c4262565c65878b0d9309a8fd09ba.zip
support early W83627EHF-A; tested by Sam Fourman Jr; discussed with Gong Jun; ok kettenis@
-rw-r--r--sys/dev/ic/lm78.c6
-rw-r--r--sys/dev/ic/lm78var.h3
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/ic/lm78.c b/sys/dev/ic/lm78.c
index 7323beecb52..80911066fcd 100644
--- a/sys/dev/ic/lm78.c
+++ b/sys/dev/ic/lm78.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lm78.c,v 1.19 2007/06/24 05:34:35 dlg Exp $ */
+/* $OpenBSD: lm78.c,v 1.20 2007/06/25 22:50:18 cnst Exp $ */
/*
* Copyright (c) 2005, 2006 Mark Kettenis
@@ -505,6 +505,10 @@ wb_match(struct lm_softc *sc)
printf(": W83627THF\n");
lm_setup_sensors(sc, w83637hf_sensors);
break;
+ case WB_CHIPID_W83627EHF_A:
+ printf(": W83627EHF-A\n");
+ lm_setup_sensors(sc, w83627ehf_sensors);
+ break;
case WB_CHIPID_W83627EHF:
printf(": W83627EHF\n");
lm_setup_sensors(sc, w83627ehf_sensors);
diff --git a/sys/dev/ic/lm78var.h b/sys/dev/ic/lm78var.h
index 7ab9437bd16..d664e3b0754 100644
--- a/sys/dev/ic/lm78var.h
+++ b/sys/dev/ic/lm78var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lm78var.h,v 1.13 2007/06/24 05:34:35 dlg Exp $ */
+/* $OpenBSD: lm78var.h,v 1.14 2007/06/25 22:50:18 cnst Exp $ */
/*
* Copyright (c) 2005, 2006 Mark Kettenis
@@ -111,6 +111,7 @@
#define WB_CHIPID_W83791SD 0x72
#define WB_CHIPID_W83792D 0x7a
#define WB_CHIPID_W83637HF 0x80
+#define WB_CHIPID_W83627EHF_A 0x88 /* early version, only for ASUS MBs */
#define WB_CHIPID_W83627THF 0x90
#define WB_CHIPID_W83627EHF 0xa1
#define WB_CHIPID_W83627DHG 0xc1