From 876de6a603072fe121afe99fbda5d4f0e9efd266 Mon Sep 17 00:00:00 2001 From: Devin Lu Date: Tue, 26 Nov 2019 16:19:26 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1936077 Reviewed-by: Paul Fagerburg Reviewed-by: Tim Wawrzynczak --- include/thermal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/thermal.h') 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 */ -- cgit v1.2.1