magolor: add thermal table
Add setup_thermal for setting thermal table
BRANCH=master
TEST=thermal team verify value on AP
Tested-by: Henry Sun
@@ -187,10 +187,23 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
const static struct ec_thermal_config thermal_a = {
+ .temp_host = {
+ [EC_TEMP_THRESH_WARN] = 0,
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(70),
+ [EC_TEMP_THRESH_HALT] = C_TO_K(85),
+ },
+ .temp_host_release = {
+ [EC_TEMP_THRESH_WARN] = 0,
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(65),
+ [EC_TEMP_THRESH_HALT] = 0,
+ },
+};
+
+const static struct ec_thermal_config thermal_b = {
.temp_host = {
[EC_TEMP_THRESH_WARN] = 0,
[EC_TEMP_THRESH_HIGH] = C_TO_K(73),
- [EC_TEMP_THRESH_HALT] = C_TO_K(80),
+ [EC_TEMP_THRESH_HALT] = C_TO_K(85),
},
.temp_host_release = {
[EC_TEMP_THRESH_WARN] = 0,
@@ -204,7 +217,7 @@ struct ec_thermal_config thermal_params[TEMP_SENSOR_COUNT];
static void setup_thermal(void)
{
thermal_params[TEMP_SENSOR_1] = thermal_a;
- thermal_params[TEMP_SENSOR_2] = thermal_a;
+ thermal_params[TEMP_SENSOR_2] = thermal_b;
}
void board_init(void)
