diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-01-14 22:23:55 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-01-14 22:23:55 +0000 |
commit | 337207ec49af7a59ee151a9cef2218d82ffafc29 (patch) | |
tree | 5923270b69efab74c452ba47b2a5d8b3a2251a4a | |
parent | 8ecebe125a384927308d4145917dbe0c6677787b (diff) |
Detect more Winbond chips.
"Of course!" deraadt@
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 4af1b22665f..c1092eaf371 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.57 2006/01/13 02:21:46 deraadt Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.58 2006/01/14 22:23:54 kettenis Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -518,9 +518,11 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) name = "w83783s"; break; case 0x71: - case 0x72: /* rev 2? */ name = "w83791d"; break; + case 0x72: + name = "w83791sd"; + break; case 0x7a: name = "w83792d"; break; @@ -533,6 +535,15 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) */ name = "w83781d"; } + } else if (addr == iicprobe (0x4a) && iicprobe(0x4e) == 0x50 && + iicprobe(0x4c) == 0xa3 && iicprobe(0x4d) == 0x5c) { + name = "w83l784r"; + } else if (addr == 0x2d && iicprobe(0x4e) == 0x60 && + iicprobe(0x4c) == 0xa3 && iicprobe(0x4d) == 0x5c) { + name = "w83l785r"; + } else if (addr == 0x2e && iicprobe(0x4e) == 0x50 && + iicprobe(0x4c) == 0xa3 && iicprobe(0x4d) == 0x5c) { + name = "w83l785s-l"; } else if (addr == iicprobe(0x48) && iicprobe(0x4f) == 0x12 && (iicprobe(0x4e) & 0x80)) { /* |