diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-05 16:35:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-05 16:35:15 +0000 |
commit | 029997250738ac2faa5d49021265517c11821107 (patch) | |
tree | 9068607ab7b8d0b6e6c93ec3593c3a06b598476b /sys/dev/i2c/i2c_scan.c | |
parent | 108188ebad5f225b98e15a3a5cb4e7a0d0c1f860 (diff) |
sch5027 probing, from remco@d-compu.dyndns.org
Diffstat (limited to 'sys/dev/i2c/i2c_scan.c')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 04880775386..198a75facf9 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.111 2007/10/30 07:10:34 deraadt Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.112 2007/12/05 16:35:14 deraadt Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -577,6 +577,9 @@ iic_probe_sensor(struct device *self, u_int8_t addr) break; case 0x5c: /* SMSC */ if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && + (iicprobe(0x3f) == 0x69)) + name = "sch5027"; + else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && (iicprobe(0x3f) & 0xf0) == 0x60) name = "emc6d100"; /* emc6d101, emc6d102, emc6d103 */ else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && |