From c97dfa8fde68792e0968b1f3fa955f7ea891c4df Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 13 Feb 2004 18:10:43 +0000 Subject: [PATCH] Add support for the W83637HF. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2289 7894878c-1315-0410-8ee3-d5d059ff63e0 --- etc/sensors.conf.eg | 2 +- lib/chips.c | 2 ++ lib/chips.h | 1 + prog/detect/sensors-detect | 2 +- prog/sensors/chips.c | 4 +++- prog/sensors/main.c | 1 + 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/etc/sensors.conf.eg b/etc/sensors.conf.eg index 34257130..1b476758 100644 --- a/etc/sensors.conf.eg +++ b/etc/sensors.conf.eg @@ -595,7 +595,7 @@ chip "w83697hf-*" # set temp2_hyst 47 -chip "w83627thf-*" +chip "w83627thf-*" "w83637hf-*" # Rather than an internal inverting op amp, the 627thf uses standard positive # inputs and the negative voltages are level shifted by a 3.6V reference diff --git a/lib/chips.c b/lib/chips.c index 161b74e3..2bbcb7a0 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -4783,6 +4783,8 @@ sensors_chip_features sensors_chip_features_list[] = { SENSORS_W83627HF_PREFIX, w83782d_features }, /* Cheat on 83627THF for now - no separate #defines */ { SENSORS_W83627THF_PREFIX, w83782d_features }, + /* Cheat on 83637HF for now - no separate #defines */ + { SENSORS_W83637HF_PREFIX, w83782d_features }, { SENSORS_W83791D_PREFIX, w83791d_features }, { SENSORS_W83L785TS_PREFIX, w83l785ts_features }, { SENSORS_AS99127F_PREFIX, as99127f_features }, diff --git a/lib/chips.h b/lib/chips.h index a1b233bd..714f0bab 100644 --- a/lib/chips.h +++ b/lib/chips.h @@ -520,6 +520,7 @@ #define SENSORS_W83782D_PREFIX "w83782d" #define SENSORS_W83627HF_PREFIX "w83627hf" #define SENSORS_W83627THF_PREFIX "w83627thf" +#define SENSORS_W83637HF_PREFIX "w83637hf" #define SENSORS_W83791D_PREFIX "w83791d" diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 747476f9..70eeaad2 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1435,7 +1435,7 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect }, { name => "Winbond W83637HF Super IO Sensors", - driver => "to-be-written", + driver => "w83627hf", addrreg => 0x2e, exitreg => 0x2e, datareg => 0x2f, diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index 4963d95e..92a815f1 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -2084,9 +2084,11 @@ void print_w83781d(const sensors_chip_name *name) is82d = (!strcmp(name->prefix,"w83782d")) || (!strcmp(name->prefix,"w83627hf")) || + (!strcmp(name->prefix,"w83637hf")) || (!strcmp(name->prefix,"w83627thf")); is83s = !strcmp(name->prefix,"w83783s"); - is627thf = !strcmp(name->prefix,"w83627thf"); + is627thf = (!strcmp(name->prefix,"w83627thf")) || + (!strcmp(name->prefix,"w83637hf")); is697hf = !strcmp(name->prefix,"w83697hf"); if (!sensors_get_feature(*name,SENSORS_W83781D_ALARMS,&cur)) diff --git a/prog/sensors/main.c b/prog/sensors/main.c index 0013106d..3367cf22 100644 --- a/prog/sensors/main.c +++ b/prog/sensors/main.c @@ -385,6 +385,7 @@ struct match matches[] = { { "w83783d", print_w83781d }, { "w83627hf", print_w83781d }, { "w83627thf", print_w83781d }, + { "w83637hf", print_w83781d }, { "w83697hf", print_w83781d }, { "w83791d", print_w83781d }, { "w83l785ts", print_w83l785ts },