diff options
author | Damien Couderc <couderc@cvs.openbsd.org> | 2003-08-05 13:42:37 +0000 |
---|---|---|
committer | Damien Couderc <couderc@cvs.openbsd.org> | 2003-08-05 13:42:37 +0000 |
commit | 82a6ff34d98904066f5aefd435967f4b3a052ddd (patch) | |
tree | e615546c59452b079e92a0e42860a9c1ea5ba9de /sys/dev | |
parent | f9d1be880f8c1209bb2066f7de5e72b133f7b3ec (diff) |
Add support for Winbond 83627THF, ok grange@ henning@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/nslm7x.c | 7 | ||||
-rw-r--r-- | sys/dev/ic/nslm7xvar.h | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/ic/nslm7x.c b/sys/dev/ic/nslm7x.c index e119bc6ca64..0aafacd79ba 100644 --- a/sys/dev/ic/nslm7x.c +++ b/sys/dev/ic/nslm7x.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nslm7x.c,v 1.2 2003/06/29 21:21:25 grange Exp $ */ +/* $OpenBSD: nslm7x.c,v 1.3 2003/08/05 13:42:36 couderc Exp $ */ /* $NetBSD: nslm7x.c,v 1.17 2002/11/15 14:55:41 ad Exp $ */ /*- @@ -134,7 +134,7 @@ lm_probe(bus_space_tag_t iot, bus_space_handle_t ioh) cr = bus_space_read_1(iot, ioh, LMC_DATA); /* XXX - spec says *only* 0x08! */ - if ((cr == 0x08) || (cr == 0x01)) + if ((cr == 0x08) || (cr == 0x01) || (cr == 0x03)) rv = 1; else rv = 0; @@ -298,6 +298,9 @@ wb_match(struct lm_softc *sc) case WB_CHIPID_83627: printf(": W83627HF\n"); break; + case WB_CHIPID_83627THF: + printf(": W83627THF\n"); + break; default: printf(": unknow winbond chip ID 0x%x\n", j); /* handle as a standart lm7x */ diff --git a/sys/dev/ic/nslm7xvar.h b/sys/dev/ic/nslm7xvar.h index 50dcbfad79a..02f3e92ddd4 100644 --- a/sys/dev/ic/nslm7xvar.h +++ b/sys/dev/ic/nslm7xvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nslm7xvar.h,v 1.2 2003/06/29 21:21:25 grange Exp $ */ +/* $OpenBSD: nslm7xvar.h,v 1.3 2003/08/05 13:42:36 couderc Exp $ */ /* $NetBSD: nslm7xvar.h,v 1.10 2002/11/15 14:55:42 ad Exp $ */ /*- @@ -94,6 +94,7 @@ #define WB_CHIPID_83781_2 0x11 #define WB_CHIPID_83782 0x30 #define WB_CHIPID_83627 0x21 +#define WB_CHIPID_83627THF 0x90 #define WB_CHIPID_83697 0x60 #define WB_BANK0_FANBAT 0x5D /* Bank1 regs */ |