summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-06-14 20:42:36 +0000
committerderaadt <deraadt@openbsd.org>2006-06-14 20:42:36 +0000
commitc09e2fba2c8ccfdca2cc9615820931d15a5f0b28 (patch)
treea1c39fb000f06ab4a38f47c674e7fe41734305be /sys/dev/i2c
parentsimplify cvs_hack_time() and the way it is called; (diff)
downloadwireguard-openbsd-c09e2fba2c8ccfdca2cc9615820931d15a5f0b28.tar.xz
wireguard-openbsd-c09e2fba2c8ccfdca2cc9615820931d15a5f0b28.zip
teach it fintek f75375; half by drahn
Diffstat (limited to 'sys/dev/i2c')
-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)))) {