diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-11-19 16:16:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-11-19 16:16:23 +0000 |
commit | 7fc93286b9af9717e2dfefc0c97eac525f7a7c67 (patch) | |
tree | 7879c0c39be7e9d30e3e9e6490e741438c03d213 /sys/dev/i2c | |
parent | 95791ede4ebf41a908c9fc061d525b8ace282e9b (diff) |
Probe for Myson MTP008.
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 0d739da4a29..6078245715c 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.91 2006/11/01 22:24:20 deraadt Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.92 2006/11/19 16:16:22 kettenis Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -792,6 +792,10 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) name = "it8712f-a"; /* sis950 too */ } + if (name == NULL && iicprobe(0x48) == addr && + (iicprobe(0x40) & 0x80) == 0x00 && iicprobe(0x58) == 0xac) + name = "mtp008"; + if (name == NULL) { name = adm1032cloneprobe(addr); if (name) |