summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2021-08-09 18:08:57 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-10 00:04:48 +0000
commite7c0bbeddb24a0c44e49aa720589932bafba5aea (patch)
treedf90c7b880cbcb8c240d148dbacaace222887bb6
parenta6c9ea5050f6f3b1414c38e1d55e7decef5f9121 (diff)
downloadchrome-ec-e7c0bbeddb24a0c44e49aa720589932bafba5aea.tar.gz
primus: add fan control
- Need EN_P5000_FAN to be off when S5. - Don't let fan keep on in S5 when using dummy fan. BUG=b:195901486, b:195387997 BRANCH=none TEST=make -j BOARD=primus Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I3f2d060967d0538e54dfe2f99df7025ccb9a36ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3081041 Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r--board/primus/board.h5
-rw-r--r--board/primus/sensors.c6
2 files changed, 4 insertions, 7 deletions
diff --git a/board/primus/board.h b/board/primus/board.h
index 7a2e77543b..6d96e80e21 100644
--- a/board/primus/board.h
+++ b/board/primus/board.h
@@ -130,10 +130,7 @@
/* LED */
#define CONFIG_BATTERY_LEVEL_NEAR_FULL 91
-/*
- * TODO: no fan control loop until sensors are tuned
- */
-/* #define CONFIG_FANS FAN_CH_COUNT */
+#define CONFIG_FANS FAN_CH_COUNT
/* Charger defines */
#define CONFIG_CHARGER_BQ25720
diff --git a/board/primus/sensors.c b/board/primus/sensors.c
index 50fe62c198..57fecaf780 100644
--- a/board/primus/sensors.c
+++ b/board/primus/sensors.c
@@ -86,7 +86,7 @@ const struct temp_sensor_t temp_sensors[] = {
BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
/*
- * TODO(b/190459738): update for Alder Lake/primus
+ * TODO(b/195901486): update for Alder Lake/primus
*
* Tiger Lake specifies 100 C as maximum TDP temperature. THRMTRIP# occurs at
* 130 C. However, sensor is located next to DDR, so we need to use the lower
@@ -105,7 +105,7 @@ static const struct ec_thermal_config thermal_cpu = {
};
/*
- * TODO(b/190459738): update for Alder Lake/primus
+ * TODO(b/195901486): update for Alder Lake/primus
*
* Inductor limits - used for both charger and PP3300 regulator
*
@@ -130,7 +130,7 @@ static const struct ec_thermal_config thermal_inductor = {
};
/*
- * TODO(b/190459738): Thermal table need to be fine tuned.
+ * TODO(b/195901486): Thermal table need to be fine tuned.
*/
struct ec_thermal_config thermal_params[] = {
[TEMP_SENSOR_1_DDR_SOC] = thermal_cpu,