summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/i2c_scan.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-11-13 17:57:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-11-13 17:57:20 +0000
commit17359e5bb2a489b4b56a5175f05ace7530e5aabb (patch)
treea2e30e5eb2f9a51101754aeda5372a1e5f765209 /sys/dev/i2c/i2c_scan.c
parent3baca67d3284059df26e2e50ae3a7b964b322a35 (diff)
add support for ST's chip since documentation is now available at
http://www.st.com/stonline/products/literature/ds/13448/stts424e02.pdf as discovered by Gert-Jan Vons.
Diffstat (limited to 'sys/dev/i2c/i2c_scan.c')
-rw-r--r--sys/dev/i2c/i2c_scan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c
index e3367fa6215..01cd5885f72 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.127 2008/11/03 00:17:47 cnst Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.128 2008/11/13 17:57:15 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -875,6 +875,10 @@ iic_probe_sensor(struct device *self, u_int8_t addr)
(iicprobew(0x07) & 0xfff0) == 0x0800 &&
iicprobew(0x00) == 0x001d) {
name = "adt7408";
+ } else if ((addr & 0x18) == 0x18 && iicprobew(0x06) == 0x104a &&
+ (iicprobew(0x07) & 0xfffe) == 0x0000 &&
+ (iicprobew(0x00) == 0x002d || iicprobew(0x00) == 0x002e)) {
+ name = "stts424e02";
} else if (name == NULL &&
(addr & 0x78) == 0x48) { /* addr 0b1001xxx */
name = lm75probe();