summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2008-04-07 00:31:07 +0000
committerderaadt <deraadt@openbsd.org>2008-04-07 00:31:07 +0000
commite5f96281a4a3150f4d3ef1873a89c18e0081406c (patch)
tree962061081d0f298ed5adffb76a83998a0646a298 /sys/dev/i2c
parentnwflag is never set now that '-r' is no more, so remove it and the warning (diff)
downloadwireguard-openbsd-e5f96281a4a3150f4d3ef1873a89c18e0081406c.tar.xz
wireguard-openbsd-e5f96281a4a3150f4d3ef1873a89c18e0081406c.zip
Identify two chips which follow the JDEC JC-42.4 standard dimm temperature
probe -- NPX SE98 and ADT 7408
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r--sys/dev/i2c/i2c_scan.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c
index 54c9271761c..3c5368abaa1 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.117 2008/04/01 04:18:17 cnst Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.118 2008/04/07 00:31:07 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -847,6 +847,14 @@ iic_probe_sensor(struct device *self, u_int8_t addr)
} else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) &&
iicprobe(0x16) == 0x41 && ((iicprobe(0x17) & 0xf0) == 0x40)) {
name = "adm1026";
+ } else if ((addr & 0x18) == 0x18 && iicprobew(0x06) == 0x1131 &&
+ iicprobew(0x07) == 0xa101 &&
+ (iicprobew(0x00) & 0xfff0) == 0x0010) {
+ name = "se98";
+ } else if ((addr & 0x18) == 0x18 && iicprobew(0x06) == 0x11d4 &&
+ (iicprobew(0x07) & 0xfff0) == 0x0800 &&
+ iicprobew(0x00) == 0x001d) {
+ name = "adt7408";
} else if (name == NULL &&
(addr & 0x78) == 0x48) { /* addr 0b1001xxx */
name = lm75probe();