summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/i2c_scan.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-04-07 00:31:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-04-07 00:31:08 +0000
commitc732b7f6114676a3203dedbab8bfdf799662e20e (patch)
tree398dcff43dc3134b16f4551cdd5e80b4f2b88274 /sys/dev/i2c/i2c_scan.c
parent7d47b39b4ebdcea5f51674dc5c0690799ad8acf4 (diff)
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/i2c_scan.c')
-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();