summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/i2c_scan.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-04-09 21:56:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-04-09 21:56:41 +0000
commit090e518be1b71a6c08072fba27d02891ba2296bc (patch)
tree18cf9ba4e98bef0004599204a43aa6cc2685126c /sys/dev/i2c/i2c_scan.c
parentb82a32604f43138785e1bcf5f08d357566539244 (diff)
support the NPX SE97 too
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 3c5368abaa1..c424056d373 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.118 2008/04/07 00:31:07 deraadt Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.119 2008/04/09 21:56:40 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -851,6 +851,10 @@ iic_probe_sensor(struct device *self, u_int8_t addr)
iicprobew(0x07) == 0xa101 &&
(iicprobew(0x00) & 0xfff0) == 0x0010) {
name = "se98";
+ } else if ((addr & 0x18) == 0x18 && iicprobew(0x06) == 0x1131 &&
+ iicprobew(0x07) == 0xa200 &&
+ (iicprobew(0x00) & 0xfff0) == 0x0010) {
+ name = "se97";
} else if ((addr & 0x18) == 0x18 && iicprobew(0x06) == 0x11d4 &&
(iicprobew(0x07) & 0xfff0) == 0x0800 &&
iicprobew(0x00) == 0x001d) {