summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/i2c_scan.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-06-14 20:42:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-06-14 20:42:37 +0000
commit9901625ba2f25a4305e9e2b8d44cda272e34c607 (patch)
tree91c283df5ee6f9d67de250939929b7ac15c1c64c /sys/dev/i2c/i2c_scan.c
parent4a2dc2e0e9143d5963c45115a8e281e855e860cf (diff)
teach it fintek f75375; half by drahn
Diffstat (limited to 'sys/dev/i2c/i2c_scan.c')
-rw-r--r--sys/dev/i2c/i2c_scan.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c
index 6cddef7cc82..3ef61654105 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.82 2006/04/29 12:04:26 djm Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.83 2006/06/14 20:42:36 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -611,6 +611,11 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr)
*/
if (iicprobe(0x58) == 0x31)
name = "as99127f"; /* rev 1 */
+ } else if ((addr == 0x2d || addr == 0x2e) &&
+ addr * 2 == iicprobe(0x04) &&
+ iicprobe(0x5d) == 0x19 && iicprobe(0x5e) == 0x34 &&
+ iicprobe(0x5a) == 0x03 && iicprobe(0x5b) == 0x06) {
+ name = "f75375"; /* Fintek */
} else if (addr == 0x2d &&
((iicprobe(0x4f) == 0x06 && (iicprobe(0x4e) & 0x80)) ||
(iicprobe(0x4f) == 0x94 && !(iicprobe(0x4e) & 0x80)))) {