Changeset 4264

Show
Ignore:
Timestamp:
12/18/06 08:43:00 (8 years ago)
Author:
khali
Message:

Add support for the w83627dhg. Original patch by David Holl.
This closes ticket #2157.

Location:
lm-sensors/trunk
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4263 r4264  
    1212           Add config-file scanner regression tests 
    1313           Add f71872f support 
     14           Add w83627dhg support (David Holl, #2157) 
    1415  Man page i2cdetect.8: Describe the output convention 
    1516  Man page sensors.1: Update (option -c) and clean up 
     
    2829                   Drop option -a (show algorithm names) 
    2930                   Add f71872f support 
     31                   Add w83627dhg support (David Holl, #2157) 
    3032  Program sensors-detect: Add SMSC DME1737 detection 
    3133                          Add Fintek F71882FG and EPoX EP1308 detection 
  • lm-sensors/trunk/etc/sensors.conf.eg

    r4168 r4264  
    26332633# Winbond W83627EHF configuration originally contributed by Leon Moonen 
    26342634# This is for an Asus P5P800, voltages for A8V-E SE. 
    2635 chip "w83627ehf-*" 
     2635chip "w83627ehf-*" "w83627dhg-*" 
    26362636 
    26372637    label in0 "VCore" 
     
    26412641    label in8 "VBAT" 
    26422642 
     2643# The W83627DHG has no in9, uncomment the following line 
     2644#    ignore in9 
    26432645 
    26442646# +12V is in1 and +5V is in6 as recommended by datasheet  
  • lm-sensors/trunk/lib/access.c

    r4208 r4264  
    461461                        } 
    462462                        if ((res = sensors_set_feature(name, feature_nr, value))) { 
     463                                sensors_parse_error("Can't set feature.", 
     464                                                chip->sets[i].lineno); 
    463465                                err = res; 
    464466                                continue; 
  • lm-sensors/trunk/lib/chips.c

    r4232 r4264  
    19551955 
    19561956/* No support for Linux 2.4 yet (sysctl) */ 
     1957/* W83627DHG uses same structure excluding in9* */ 
    19571958static sensors_chip_feature w83627ehf_features[] = 
    19581959  { 
     
    60816082 { SENSORS_W83L785TS_PREFIX, w83l785ts_features }, 
    60826083 { SENSORS_W83627EHF_PREFIX, w83627ehf_features }, 
     6084 { SENSORS_W83627DHG_PREFIX, w83627ehf_features }, /* Similar to W83627EHF but no in9 */ 
    60836085 { SENSORS_AS99127F_PREFIX, as99127f_features }, 
    60846086 { SENSORS_ASB100_PREFIX, asb100_features }, 
  • lm-sensors/trunk/lib/chips.h

    r4232 r4264  
    869869 
    870870 
    871 /* Winbond W83627EHF Super-I/O chips */ 
     871/* Winbond W83627EHF & W83627DHG Super-I/O chips */ 
     872/* (W83627DHG is similar to W83627EHF but no in9) */ 
    872873 
    873874#define SENSORS_W83627EHF_PREFIX        "w83627ehf" 
     875#define SENSORS_W83627DHG_PREFIX        "w83627dhg" 
    874876 
    875877#define SENSORS_W83627EHF_IN0           1 /* R */ 
  • lm-sensors/trunk/prog/sensors/chips.c

    r4232 r4264  
    28962896{ 
    28972897  char *label; 
    2898   int i, valid; 
     2898  int i, valid, num_in; 
    28992899  double cur, min, div, max, alarm, over, hyst; 
    29002900 
    2901   for (i = 0; i < 10; i++) { 
     2901  if (!strcmp(name->prefix, "w83627dhg")) 
     2902    num_in = 9; 
     2903  else 
     2904    num_in = 10; 
     2905 
     2906  for (i = 0; i < num_in; i++) { 
    29022907    if (!sensors_get_label_and_valid(*name,SENSORS_W83627EHF_IN0+i, 
    29032908        &label,&valid) 
  • lm-sensors/trunk/prog/sensors/main.c

    r4232 r4264  
    368368        { "w83687thf", print_w83781d }, 
    369369        { "w83627ehf", print_w83627ehf }, 
     370        { "w83627dhg", print_w83627ehf }, 
    370371        { "w83791d", print_w83781d }, 
    371372        { "w83792d", print_w83792d },