diff --git a/CHANGES b/CHANGES index 74fef13e..615c70fd 100644 --- a/CHANGES +++ b/CHANGES @@ -11,6 +11,7 @@ SVN HEAD Major update/optimization of config-file scanner Add config-file scanner regression tests Add f71872f support + Add w83627dhg support (David Holl, #2157) Man page i2cdetect.8: Describe the output convention Man page sensors.1: Update (option -c) and clean up Module i2c-i801: Add ICH9 support @@ -27,6 +28,7 @@ SVN HEAD Handle option -c more efficiently Drop option -a (show algorithm names) Add f71872f support + Add w83627dhg support (David Holl, #2157) Program sensors-detect: Add SMSC DME1737 detection Add Fintek F71882FG and EPoX EP1308 detection Add Intel Core thermal sensor detection diff --git a/etc/sensors.conf.eg b/etc/sensors.conf.eg index fe3b15f1..a958989b 100644 --- a/etc/sensors.conf.eg +++ b/etc/sensors.conf.eg @@ -2632,7 +2632,7 @@ chip "lm92-*" # Winbond W83627EHF configuration originally contributed by Leon Moonen # This is for an Asus P5P800, voltages for A8V-E SE. -chip "w83627ehf-*" +chip "w83627ehf-*" "w83627dhg-*" label in0 "VCore" label in2 "AVCC" @@ -2640,6 +2640,8 @@ chip "w83627ehf-*" label in7 "VSB" label in8 "VBAT" +# The W83627DHG has no in9, uncomment the following line +# ignore in9 # +12V is in1 and +5V is in6 as recommended by datasheet compute in1 @*(1+(56/10)), @/(1+(56/10)) diff --git a/lib/access.c b/lib/access.c index 1e03f2ec..2c09d838 100644 --- a/lib/access.c +++ b/lib/access.c @@ -460,6 +460,8 @@ int sensors_do_this_chip_sets(sensors_chip_name name) continue; } if ((res = sensors_set_feature(name, feature_nr, value))) { + sensors_parse_error("Can't set feature.", + chip->sets[i].lineno); err = res; continue; } diff --git a/lib/chips.c b/lib/chips.c index ee16cdb3..be23550c 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -1954,6 +1954,7 @@ static sensors_chip_feature w83l785ts_features[] = }; /* No support for Linux 2.4 yet (sysctl) */ +/* W83627DHG uses same structure excluding in9* */ static sensors_chip_feature w83627ehf_features[] = { { SENSORS_W83627EHF_IN0, "in0", NOMAP, NOMAP, @@ -6080,6 +6081,7 @@ sensors_chip_features sensors_chip_features_list[] = { SENSORS_W83793_PREFIX, w83793_features }, { SENSORS_W83L785TS_PREFIX, w83l785ts_features }, { SENSORS_W83627EHF_PREFIX, w83627ehf_features }, + { SENSORS_W83627DHG_PREFIX, w83627ehf_features }, /* Similar to W83627EHF but no in9 */ { SENSORS_AS99127F_PREFIX, as99127f_features }, { SENSORS_ASB100_PREFIX, asb100_features }, { SENSORS_ADM9240_PREFIX, adm9240_features }, diff --git a/lib/chips.h b/lib/chips.h index 5a3ef182..7612c2a4 100644 --- a/lib/chips.h +++ b/lib/chips.h @@ -868,9 +868,11 @@ #define SENSORS_W83L785TS_TEMP_OVER 52 /* R for now */ -/* Winbond W83627EHF Super-I/O chips */ +/* Winbond W83627EHF & W83627DHG Super-I/O chips */ +/* (W83627DHG is similar to W83627EHF but no in9) */ #define SENSORS_W83627EHF_PREFIX "w83627ehf" +#define SENSORS_W83627DHG_PREFIX "w83627dhg" #define SENSORS_W83627EHF_IN0 1 /* R */ #define SENSORS_W83627EHF_IN1 2 /* R */ diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index e598bbf0..c9893f1d 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -2895,10 +2895,15 @@ void print_w83l785ts(const sensors_chip_name *name) void print_w83627ehf(const sensors_chip_name *name) { char *label; - int i, valid; + int i, valid, num_in; double cur, min, div, max, alarm, over, hyst; - for (i = 0; i < 10; i++) { + if (!strcmp(name->prefix, "w83627dhg")) + num_in = 9; + else + num_in = 10; + + for (i = 0; i < num_in; i++) { if (!sensors_get_label_and_valid(*name,SENSORS_W83627EHF_IN0+i, &label,&valid) && !sensors_get_feature(*name,SENSORS_W83627EHF_IN0+i,&cur) diff --git a/prog/sensors/main.c b/prog/sensors/main.c index e0b22e7d..b40d4f51 100644 --- a/prog/sensors/main.c +++ b/prog/sensors/main.c @@ -367,6 +367,7 @@ struct match matches[] = { { "w83697hf", print_w83781d }, { "w83687thf", print_w83781d }, { "w83627ehf", print_w83627ehf }, + { "w83627dhg", print_w83627ehf }, { "w83791d", print_w83781d }, { "w83792d", print_w83792d }, { "w83793", print_w83793 },