summaryrefslogtreecommitdiff
path: root/board/peppy/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/peppy/board.c')
-rw-r--r--board/peppy/board.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/board/peppy/board.c b/board/peppy/board.c
index 540247e191..9b30ac8865 100644
--- a/board/peppy/board.c
+++ b/board/peppy/board.c
@@ -24,6 +24,7 @@
#include "switch.h"
#include "temp_sensor.h"
#include "temp_sensor_g781.h"
+#include "thermal.h"
#include "timer.h"
#include "util.h"
@@ -180,7 +181,6 @@ const struct i2c_port_t i2c_ports[] = {
};
BUILD_ASSERT(ARRAY_SIZE(i2c_ports) == I2C_PORTS_USED);
-
/* Temperature sensors data; must be in same order as enum temp_sensor_id. */
const struct temp_sensor_t temp_sensors[] = {
{"PECI", TEMP_SENSOR_TYPE_CPU, peci_temp_sensor_get_val, 0, 2},
@@ -192,6 +192,18 @@ const struct temp_sensor_t temp_sensors[] = {
};
BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
+/* Thermal limits for each temp sensor. All temps are in degrees K. Must be in
+ * same order as enum temp_sensor_id. To always ignore any temp, use 0.
+ */
+struct ec_thermal_config thermal_params[] = {
+ /* Only the AP affects the thermal limits and fan speed. */
+ {{C_TO_K(100), C_TO_K(114), C_TO_K(110)}, C_TO_K(60), C_TO_K(90)},
+ {{0, 0, 0}, 0, 0},
+ {{0, 0, 0}, 0, 0},
+ {{0, 0, 0}, 0, 0},
+};
+BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);
+
struct keyboard_scan_config keyscan_config = {
.output_settle_us = 40,
.debounce_down_us = 6 * MSEC,