Skip to content

Commit 13e60ba

Browse files
author
Josh Tsai
committed
Modified thermal sensor setting
Signed-off-by: Josh Tsai <josh_tsai@compal.com>
1 parent 9acadbf commit 13e60ba

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
@@ -951,11 +951,11 @@ static const struct ec_thermal_config thermal_inductor_local = {
951951
},
952952
.temp_host_release = {
953953
[EC_TEMP_THRESH_WARN] = 0,
954-
[EC_TEMP_THRESH_HIGH] = C_TO_K(68),
954+
[EC_TEMP_THRESH_HIGH] = C_TO_K(78),
955955
[EC_TEMP_THRESH_HALT] = 0,
956956
},
957957
.temp_fan_off = C_TO_K(40),
958-
.temp_fan_max = C_TO_K(62),
958+
.temp_fan_max = C_TO_K(69),
959959
};
960960

961961
static const struct ec_thermal_config thermal_inductor_cpu = {
@@ -966,7 +966,7 @@ static const struct ec_thermal_config thermal_inductor_cpu = {
966966
},
967967
.temp_host_release = {
968968
[EC_TEMP_THRESH_WARN] = 0,
969-
[EC_TEMP_THRESH_HIGH] = C_TO_K(68),
969+
[EC_TEMP_THRESH_HIGH] = C_TO_K(78),
970970
[EC_TEMP_THRESH_HALT] = 0,
971971
},
972972
.temp_fan_off = C_TO_K(40),
@@ -980,11 +980,11 @@ static const struct ec_thermal_config thermal_inductor_ddr = {
980980
},
981981
.temp_host_release = {
982982
[EC_TEMP_THRESH_WARN] = 0,
983-
[EC_TEMP_THRESH_HIGH] = C_TO_K(67),
983+
[EC_TEMP_THRESH_HIGH] = C_TO_K(77),
984984
[EC_TEMP_THRESH_HALT] = 0,
985985
},
986986
.temp_fan_off = C_TO_K(40),
987-
.temp_fan_max = C_TO_K(62),
987+
.temp_fan_max = C_TO_K(69),
988988
};
989989

990990
static const struct ec_thermal_config thermal_battery = {
@@ -1004,20 +1004,35 @@ static const struct ec_thermal_config thermal_battery = {
10041004
#ifdef CONFIG_PECI
10051005
static const struct ec_thermal_config thermal_cpu = {
10061006
.temp_host = {
1007-
[EC_TEMP_THRESH_WARN] = C_TO_K(95),
1008-
[EC_TEMP_THRESH_HIGH] = C_TO_K(103),
1009-
[EC_TEMP_THRESH_HALT] = C_TO_K(105),
1007+
[EC_TEMP_THRESH_WARN] = C_TO_K(115),
1008+
[EC_TEMP_THRESH_HIGH] = C_TO_K(120),
1009+
[EC_TEMP_THRESH_HALT] = C_TO_K(127),
10101010
},
10111011
.temp_host_release = {
10121012
[EC_TEMP_THRESH_WARN] = 0,
10131013
[EC_TEMP_THRESH_HIGH] = 0,
10141014
[EC_TEMP_THRESH_HALT] = 0,
10151015
},
1016-
.temp_fan_off = C_TO_K(104),
1017-
.temp_fan_max = C_TO_K(105),
1016+
.temp_fan_off = C_TO_K(55),
1017+
.temp_fan_max = C_TO_K(98),
10181018
};
10191019
#endif
10201020

1021+
static const struct ec_thermal_config thermal_inductor2_vccgt = {
1022+
.temp_host = {
1023+
[EC_TEMP_THRESH_WARN] = 0,
1024+
[EC_TEMP_THRESH_HIGH] = C_TO_K(88),
1025+
[EC_TEMP_THRESH_HALT] = C_TO_K(98),
1026+
},
1027+
.temp_host_release = {
1028+
[EC_TEMP_THRESH_WARN] = 0,
1029+
[EC_TEMP_THRESH_HIGH] = C_TO_K(78),
1030+
[EC_TEMP_THRESH_HALT] = 0,
1031+
},
1032+
.temp_fan_off = C_TO_K(40),
1033+
.temp_fan_max = C_TO_K(98),
1034+
};
1035+
10211036
struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT];
10221037
BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);
10231038
static void setup_fans(void)
@@ -1029,6 +1044,7 @@ static void setup_fans(void)
10291044
#ifdef CONFIG_PECI
10301045
thermal_params[TEMP_SENSOR_PECI] = thermal_cpu;
10311046
#endif
1047+
thermal_params[TEMP_SENSOR2_REMOTE] = thermal_inductor2_vccgt;
10321048
}
10331049
DECLARE_HOOK(HOOK_INIT, setup_fans, HOOK_PRIO_DEFAULT);
10341050
#endif

0 commit comments

Comments
 (0)