Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix vcore readings in some cases on W83627THF by ...



details:   https://anonhg.NetBSD.org/src/rev/04c04ca94d6f
branches:  trunk
changeset: 757952:04c04ca94d6f
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Oct 06 18:13:33 2010 +0000

description:
Fix vcore readings in some cases on W83627THF by being mindful of the VRM9 mode.

diffstat:

 sys/dev/ic/nslm7x.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 5ef5c9ba3445 -r 04c04ca94d6f sys/dev/ic/nslm7x.c
--- a/sys/dev/ic/nslm7x.c       Wed Oct 06 11:24:55 2010 +0000
+++ b/sys/dev/ic/nslm7x.c       Wed Oct 06 18:13:33 2010 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index