Module Name: src Committed By: jakllsch Date: Wed Oct 6 18:13:34 UTC 2010
Modified Files: src/sys/dev/ic: nslm7x.c Log Message: Fix vcore readings in some cases on W83627THF by being mindful of the VRM9 mode. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/dev/ic/nslm7x.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/nslm7x.c diff -u src/sys/dev/ic/nslm7x.c:1.55 src/sys/dev/ic/nslm7x.c:1.56 --- src/sys/dev/ic/nslm7x.c:1.55 Tue Mar 23 12:13:28 2010 +++ src/sys/dev/ic/nslm7x.c Wed Oct 6 18:13:33 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: nslm7x.c,v 1.55 2010/03/23 12:13:28 njoly Exp $ */ +/* $NetBSD: nslm7x.c,v 1.56 2010/10/06 18:13:33 jakllsch Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.55 2010/03/23 12:13:28 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.56 2010/10/06 18:13:33 jakllsch Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1847,6 +1847,10 @@ break; case WB_CHIPID_W83627THF: model = "W83627THF"; + lm_generic_banksel(sc, WB_BANKSEL_B0); + if ((*sc->lm_readreg)(sc, WB_BANK0_CONFIG) & WB_CONFIG_VMR9) + sc->vrm9 = 1; + lm_generic_banksel(sc, banksel); lm_setup_sensors(sc, w83637hf_sensors); wb_temp_diode_type(sc, cf_flags); break;