diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-10-17 17:29:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-10-17 17:29:55 +0000 |
commit | 02f4e78e271e1fef9555a255bfc7700cfc93252f (patch) | |
tree | 39868b4d33151faab135af667ac9f90e5de711f5 /sys/dev/i2c/i2c_scan.c | |
parent | cf6d9ee1664f52db382db901154ff4796fd5f1a1 (diff) |
add probe for TI TMP401 (untested)
Diffstat (limited to 'sys/dev/i2c/i2c_scan.c')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index b78b2ced439..cea55cd62e1 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.103 2007/10/11 20:48:21 cnst Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.104 2007/10/17 17:29:54 deraadt Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -709,6 +709,18 @@ iic_probe_sensor(struct device *self, struct i2cbus_attach_args *iba, u_int8_t a (iicprobe(0x03) & 0x0f) == 0) name = "max6642"; break; + case 0x55: /* Texas Instruments */ + if (addr == 0x4c && iicprobe(0xff) == 0x11 && + (iicprobe(0x03) & 0x1b) == 0x00 && + (iicprobe(0x04) & 0xf0) == 0x00 && + (iicprobe(0x10) & 0x0f) == 0x00 && + (iicprobe(0x13) & 0x0f) == 0x00 && + (iicprobe(0x14) & 0x0f) == 0x00 && + (iicprobe(0x15) & 0x0f) == 0x00 && + (iicprobe(0x16) & 0x0f) == 0x00 && + (iicprobe(0x17) & 0x0f) == 0x00) + name = "tmp401"; + break; } if (addr == iicprobe(0x48) && |