From 7fc93286b9af9717e2dfefc0c97eac525f7a7c67 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 19 Nov 2006 16:16:23 +0000 Subject: Probe for Myson MTP008. --- sys/dev/i2c/i2c_scan.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ -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) -- cgit v1.2.3