summaryrefslogtreecommitdiff
path: root/include/thermal.h
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2019-11-26 16:19:26 +0800
committerCommit Bot <commit-bot@chromium.org>2020-01-31 03:05:02 +0000
commit876de6a603072fe121afe99fbda5d4f0e9efd266 (patch)
treed7a515b7e3c05ebe5a15ba9d9427169a9fb2c994 /include/thermal.h
parentd1af13802e268f629e0f591b8f4f16543ebc6322 (diff)
downloadchrome-ec-876de6a603072fe121afe99fbda5d4f0e9efd266.tar.gz
jinlon: add dual fan control by ec
This patch allows the ec to manage two fans. Currently common/thermal.c cannot monitor more than 1 fan at the same time. This CL implements a board-specific thermal policy with multiple fans. BUG=b:141259174 BRANCH=hatch TEST=thermal team verified thermal policy is expected. Change-Id: I6ababcb0795408e8062b7605bc749e23b8bde45a Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1936077 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'include/thermal.h')
-rw-r--r--include/thermal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/thermal.h b/include/thermal.h
index 62e16cb7c2..7628cfd6ae 100644
--- a/include/thermal.h
+++ b/include/thermal.h
@@ -19,4 +19,7 @@ extern struct ec_thermal_config thermal_params[];
/* Helper function to compute percent cooling */
int thermal_fan_percent(int low, int high, int cur);
+/* Allow board custom fan control */
+void board_override_fan_control(int fan, int *tmp);
+
#endif /* __CROS_EC_THERMAL_H */