diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-09-05 17:22:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-09-05 17:22:09 +0000 |
commit | 6e15f4875d7959db4cfba88cc93f4281981356f2 (patch) | |
tree | b064208b5fc69e58d4a976d23a4fdb3b4be12b93 /sys/dev/i2c/i2c_scan.c | |
parent | 4683dcf87f8379bc1ad025b2cd01dce184b5037a (diff) |
probe for adt7462 (no driver yet, someone want to write one), and mention
a few more sub-types as comments; ok kettenis
Diffstat (limited to 'sys/dev/i2c/i2c_scan.c')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 97aec9fea3e..a9de6ac9d8b 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.99 2007/09/03 19:05:05 deraadt Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.100 2007/09/05 17:22:08 deraadt Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -484,7 +484,7 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) name = "adt7470"; else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && iicprobe(0x3d) == 0x76) - name = "adt7476"; + name = "adt7476"; /* or adt7476a */ else if (addr == 0x2e && iicprobe(0x3d) == 0x75) name = "adt7475"; else if (iicprobe(0x3d) == 0x27 && @@ -493,9 +493,12 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) else if (iicprobe(0x3d) == 0x27 && (iicprobe(0x3f) == 0x62 || iicprobe(0x3f) == 0x6a)) name = "adt7460"; /* complete check */ + else if ((addr == 0x2c || addr == 0x2e) && + iicprobe(0x3d) == 0x62 && iicprobe(0x3f) == 0x04) + name = "adt7462"; else if (addr == 0x2e && iicprobe(0x3d) == 0x68 && (iicprobe(0x3f) & 0xf0) == 0x70) - name = "adt7467"; + name = "adt7467"; /* or adt7468 */ else if (iicprobe(0x3d) == 0x33) name = "adm1033"; else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && |