summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-03-07 22:36:40 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-03-07 22:36:40 +0000
commitb9a3a442b0a958c2f23ffa8166b50dcc25b39581 (patch)
tree3ecf61e249a75050121ba7c5a2259efce88fcb7f
parente0c136191a5a534be0a9ff5ad292bf33aa1e3245 (diff)
Add a few more SMSC devices.
-rw-r--r--sys/dev/i2c/i2c_scan.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c
index fe090c3db49..ce1f63eda2b 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.74 2006/03/07 21:27:52 kettenis Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.75 2006/03/07 22:36:39 kettenis Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -459,7 +459,13 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr)
case 0x5c: /* SMSC */
if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) &&
(iicprobe(0x3f) & 0xf0) == 0x60)
- name = "emc6d10x"; /* adt7460 compat */
+ name = "emc6d100"; /* adt7460 compat */
+ else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) &&
+ (iicprobe(0x3f) & 0xf0) == 0x80)
+ name = "sch5017";
+ else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) &&
+ (iicprobe(0x3f) & 0xf0) == 0xb0)
+ name = "emc6w201";
break;
case 0x02: /* National Semiconductor? */
if ((iicprobe(0x3f) & 0xfc) == 0x04)