Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c add MAX6690 which seems to be a straight up ADM1...
details: https://anonhg.NetBSD.org/src/rev/8a7e837b3c07
branches: trunk
changeset: 356355:8a7e837b3c07
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Sep 20 22:44:28 2017 +0000
description:
add MAX6690 which seems to be a straight up ADM1032 clone
diffstat:
sys/dev/i2c/adm1021.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (49 lines):
diff -r 91c05a845392 -r 8a7e837b3c07 sys/dev/i2c/adm1021.c
--- a/sys/dev/i2c/adm1021.c Wed Sep 20 21:59:23 2017 +0000
+++ b/sys/dev/i2c/adm1021.c Wed Sep 20 22:44:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adm1021.c,v 1.14 2017/09/13 21:15:11 macallan Exp $ */
+/* $NetBSD: adm1021.c,v 1.15 2017/09/20 22:44:28 macallan Exp $ */
/* $OpenBSD: adm1021.c,v 1.27 2007/06/24 05:34:35 dlg Exp $ */
/*
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adm1021.c,v 1.14 2017/09/13 21:15:11 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adm1021.c,v 1.15 2017/09/20 22:44:28 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -146,6 +146,7 @@
static const char * admtemp_compats[] = {
"i2c-max1617",
"max6642",
+ "max6690",
NULL
};
@@ -240,6 +241,12 @@
strlcpy(name, "MAX6642", ADMTEMP_NAMELEN);
return;
}
+ if (strcmp("max6690", ia->ia_compat[i]) == 0) {
+ sc->sc_noneg = 0;
+ sc->sc_ext11 = 1;
+ strlcpy(name, "MAX6690", ADMTEMP_NAMELEN);
+ return;
+ }
}
/* Indirect config */
@@ -266,6 +273,9 @@
sc->sc_therm = 0; /* */
sc->sc_nolow = 1;
strlcpy(name, "MAX6642", ADMTEMP_NAMELEN);
+ } else if (*rev == 0) {
+ strlcpy(name, "MAX6690", ADMTEMP_NAMELEN);
+ sc->sc_ext11 = 1;
} else {
strlcpy(name, "MAX1617A", ADMTEMP_NAMELEN);
}
Home |
Main Index |
Thread Index |
Old Index