summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2008-11-03 00:17:48 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2008-11-03 00:17:48 +0000
commit0825f0a67800a2039cb3fd4dba94ba3e2a95c196 (patch)
tree1965364f84d394a86e701323e109d35182894f68
parent1da553381acff1d2d7318e9d638368a2e54c5b13 (diff)
support w83627dhg at i2c (as seen on Sun Ultra 24 via dmesg@) ok deraadt@
-rw-r--r--sys/dev/i2c/i2c_scan.c5
-rw-r--r--sys/dev/i2c/lm78_i2c.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c
index cc53a4aaf02..e3367fa6215 100644
--- a/sys/dev/i2c/i2c_scan.c
+++ b/sys/dev/i2c/i2c_scan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i2c_scan.c,v 1.126 2008/04/22 02:22:54 cnst Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.127 2008/11/03 00:17:47 cnst Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -771,6 +771,9 @@ iic_probe_sensor(struct device *self, u_int8_t addr)
case 0x7a:
name = "w83792d";
break;
+ case 0xc1:
+ name = "w83627dhg";
+ break;
}
} else {
/*
diff --git a/sys/dev/i2c/lm78_i2c.c b/sys/dev/i2c/lm78_i2c.c
index 44017c91954..8f0f7bdfc6f 100644
--- a/sys/dev/i2c/lm78_i2c.c
+++ b/sys/dev/i2c/lm78_i2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lm78_i2c.c,v 1.1 2006/01/28 11:18:41 kettenis Exp $ */
+/* $OpenBSD: lm78_i2c.c,v 1.2 2008/11/03 00:17:47 cnst Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -49,6 +49,7 @@ lm_i2c_match(struct device *parent, void *match, void *aux)
struct i2c_attach_args *ia = aux;
if (strcmp(ia->ia_name, "as99127f") == 0 ||
+ strcmp(ia->ia_name, "w83627dhg") == 0 ||
strcmp(ia->ia_name, "w83627hf") == 0 ||
strcmp(ia->ia_name, "w83781d") == 0 ||
strcmp(ia->ia_name, "w83782d") == 0 ||