Skip to content

Commit cfc5420

Browse files
authored
Merge pull request #447 from FrameworkComputer/hx30.modified_thermal_fan_table
Modified thermal sensor setting
2 parents 7ed69e5 + 13e60ba commit cfc5420

1 file changed

Lines changed: 26 additions & 10 deletions

File tree

board/hx30/board.c

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -956,11 +956,11 @@ static const struct ec_thermal_config thermal_inductor_local = {
956956
},
957957
.temp_host_release = {
958958
[EC_TEMP_THRESH_WARN] = 0,
959-
[EC_TEMP_THRESH_HIGH] = C_TO_K(68),
959+
[EC_TEMP_THRESH_HIGH] = C_TO_K(78),
960960
[EC_TEMP_THRESH_HALT] = 0,
961961
},
962962
.temp_fan_off = C_TO_K(40),
963-
.temp_fan_max = C_TO_K(62),
963+
.temp_fan_max = C_TO_K(69),
964964
};
965965

966966
static const struct ec_thermal_config thermal_inductor_cpu = {
@@ -971,7 +971,7 @@ static const struct ec_thermal_config thermal_inductor_cpu = {
971971
},
972972
.temp_host_release = {
973973
[EC_TEMP_THRESH_WARN] = 0,
974-
[EC_TEMP_THRESH_HIGH] = C_TO_K(68),
974+
[EC_TEMP_THRESH_HIGH] = C_TO_K(78),
975975
[EC_TEMP_THRESH_HALT] = 0,
976976
},
977977
.temp_fan_off = C_TO_K(40),
@@ -985,11 +985,11 @@ static const struct ec_thermal_config thermal_inductor_ddr = {
985985
},
986986
.temp_host_release = {
987987
[EC_TEMP_THRESH_WARN] = 0,
988-
[EC_TEMP_THRESH_HIGH] = C_TO_K(67),
988+
[EC_TEMP_THRESH_HIGH] = C_TO_K(77),
989989
[EC_TEMP_THRESH_HALT] = 0,
990990
},
991991
.temp_fan_off = C_TO_K(40),
992-
.temp_fan_max = C_TO_K(62),
992+
.temp_fan_max = C_TO_K(69),
993993
};
994994

995995
static const struct ec_thermal_config thermal_battery = {
@@ -1009,20 +1009,35 @@ static const struct ec_thermal_config thermal_battery = {
10091009
#ifdef CONFIG_PECI
10101010
static const struct ec_thermal_config thermal_cpu = {
10111011
.temp_host = {
1012-
[EC_TEMP_THRESH_WARN] = C_TO_K(95),
1013-
[EC_TEMP_THRESH_HIGH] = C_TO_K(103),
1014-
[EC_TEMP_THRESH_HALT] = C_TO_K(105),
1012+
[EC_TEMP_THRESH_WARN] = C_TO_K(115),
1013+
[EC_TEMP_THRESH_HIGH] = C_TO_K(120),
1014+
[EC_TEMP_THRESH_HALT] = C_TO_K(127),
10151015
},
10161016
.temp_host_release = {
10171017
[EC_TEMP_THRESH_WARN] = 0,
10181018
[EC_TEMP_THRESH_HIGH] = 0,
10191019
[EC_TEMP_THRESH_HALT] = 0,
10201020
},
1021-
.temp_fan_off = C_TO_K(104),
1022-
.temp_fan_max = C_TO_K(105),
1021+
.temp_fan_off = C_TO_K(55),
1022+
.temp_fan_max = C_TO_K(98),
10231023
};
10241024
#endif
10251025

1026+
static const struct ec_thermal_config thermal_inductor2_vccgt = {
1027+
.temp_host = {
1028+
[EC_TEMP_THRESH_WARN] = 0,
1029+
[EC_TEMP_THRESH_HIGH] = C_TO_K(88),
1030+
[EC_TEMP_THRESH_HALT] = C_TO_K(98),
1031+
},
1032+
.temp_host_release = {
1033+
[EC_TEMP_THRESH_WARN] = 0,
1034+
[EC_TEMP_THRESH_HIGH] = C_TO_K(78),
1035+
[EC_TEMP_THRESH_HALT] = 0,
1036+
},
1037+
.temp_fan_off = C_TO_K(40),
1038+
.temp_fan_max = C_TO_K(98),
1039+
};
1040+
10261041
struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT];
10271042
BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);
10281043
static void setup_fans(void)
@@ -1034,6 +1049,7 @@ static void setup_fans(void)
10341049
#ifdef CONFIG_PECI
10351050
thermal_params[TEMP_SENSOR_PECI] = thermal_cpu;
10361051
#endif
1052+
thermal_params[TEMP_SENSOR2_REMOTE] = thermal_inductor2_vccgt;
10371053
}
10381054
DECLARE_HOOK(HOOK_INIT, setup_fans, HOOK_PRIO_DEFAULT);
10391055
#endif

0 commit comments

Comments
 (0)