Source-Changes-HG archive

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

[src/trunk]: src After reviewing the datasheets, most of the supported Winbon...



details:   https://anonhg.NetBSD.org/src/rev/de942033a414
branches:  trunk
changeset: 751928:de942033a414
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Feb 08 23:10:35 2010 +0000

description:
After reviewing the datasheets, most of the supported Winbond chips can
handles the new flags for selecting sensor type.  Update code and man
page accordingly.

diffstat:

 share/man/man4/lm.4 |  20 ++++++++++----------
 sys/dev/ic/nslm7x.c |  12 ++++++++++--
 2 files changed, 20 insertions(+), 12 deletions(-)

diffs (112 lines):

diff -r 175556ffc61c -r de942033a414 share/man/man4/lm.4
--- a/share/man/man4/lm.4       Mon Feb 08 22:55:36 2010 +0000
+++ b/share/man/man4/lm.4       Mon Feb 08 23:10:35 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: lm.4,v 1.28 2010/02/08 21:47:20 wiz Exp $
+.\"    $NetBSD: lm.4,v 1.29 2010/02/08 23:10:35 pgoyette Exp $
 .\"
 .\" Copyright (c) 2000 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -86,15 +86,15 @@
 .It
 .Tn Winbond
 .Em W83627HF* ,
-.Em W83627THF ,
-.Em W83627EHF ,
-.Em W83627DHG ,
-.Em W83637HF ,
-.Em W83697HF ,
+.Em W83627THF* ,
+.Em W83627EHF* ,
+.Em W83627DHG* ,
+.Em W83637HF* ,
+.Em W83697HF* ,
 .Em W83781D ,
-.Em W83782D ,
-.Em W83783S ,
-.Em W83791D ,
+.Em W83782D* ,
+.Em W83783S* ,
+.Em W83791D* ,
 .Em W83791SD
 and
 .Em W83792D .
@@ -102,7 +102,7 @@
 .Tn ASUS
 .Em AS99127F .
 .El
-For certain Winbond chips (identified with a * above), the
+For most of the Winbond chips (identified with a * above), the
 .Em flags
 configuration option can be specified to select the type of temperature
 sensor:
diff -r 175556ffc61c -r de942033a414 sys/dev/ic/nslm7x.c
--- a/sys/dev/ic/nslm7x.c       Mon Feb 08 22:55:36 2010 +0000
+++ b/sys/dev/ic/nslm7x.c       Mon Feb 08 23:10:35 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nslm7x.c,v 1.50 2010/02/08 21:42:01 pgoyette Exp $ */
+/*     $NetBSD: nslm7x.c,v 1.51 2010/02/08 23:10:35 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.50 2010/02/08 21:42:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nslm7x.c,v 1.51 2010/02/08 23:10:35 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1845,6 +1845,7 @@
        case WB_CHIPID_W83627THF:
                model = "W83627THF";
                lm_setup_sensors(sc, w83637hf_sensors);
+               wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83627EHF_A:
                model = "W83627EHF-A";
@@ -1853,10 +1854,12 @@
        case WB_CHIPID_W83627EHF:
                model = "W83627EHF";
                lm_setup_sensors(sc, w83627ehf_sensors);
+               wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83627DHG:
                model = "W83627DHG";
                lm_setup_sensors(sc, w83627dhg_sensors);
+               wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83637HF:
                model = "W83637HF";
@@ -1865,10 +1868,12 @@
                        sc->vrm9 = 1;
                lm_generic_banksel(sc, banksel);
                lm_setup_sensors(sc, w83637hf_sensors);
+               wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83697HF:
                model = "W83697HF";
                lm_setup_sensors(sc, w83697hf_sensors);
+               wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83781D:
        case WB_CHIPID_W83781D_2:
@@ -1878,14 +1883,17 @@
        case WB_CHIPID_W83782D:
                model = "W83782D";
                lm_setup_sensors(sc, w83782d_sensors);
+               wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83783S:
                model = "W83783S";
                lm_setup_sensors(sc, w83783s_sensors);
+               wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83791D:
                model = "W83791D";
                lm_setup_sensors(sc, w83791d_sensors);
+               wb_temp_diode_type(sc, cf_flags);
                break;
        case WB_CHIPID_W83791SD:
                model = "W83791SD";



Home | Main Index | Thread Index | Old Index