summaryrefslogtreecommitdiff
path: root/include/thermal.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-02-29 10:04:46 -0800
committerVic Yang <victoryang@chromium.org>2012-02-29 14:42:45 -0800
commit747b1f752007d6563288f7be41c20b8cc43ca3f6 (patch)
treea2137b57819b3eb368c95a3ed2956ff6485d10c7 /include/thermal.h
parent13b5c41951c2da3e90ac115a3dbe8aaddb959782 (diff)
downloadchrome-ec-747b1f752007d6563288f7be41c20b8cc43ca3f6.tar.gz
Thermal Engine: LPC commands.
Implement LPC commands and ectool commands to 1. Set/get threshold temperature values. 2. Toggle on/off automatic fan speed control. Signed-off-by: Vic Yang <victoryang@chromium.org> BUG=chrome-os-partner:8251 TEST=Manual test Change-Id: Ia4282a6fa47a838aed26540f33c1eb7acc92ef0e
Diffstat (limited to 'include/thermal.h')
-rw-r--r--include/thermal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/thermal.h b/include/thermal.h
index aa6cc08f4f..0998b70fcc 100644
--- a/include/thermal.h
+++ b/include/thermal.h
@@ -47,4 +47,13 @@ struct thermal_config_t {
int16_t thresholds[THRESHOLD_COUNT];
};
+/* Set the threshold temperature value. Return -1 on error. */
+int thermal_set_threshold(int sensor_id, int threshold_id, int value);
+
+/* Get the threshold temperature value. Return -1 on error. */
+int thermal_get_threshold(int sensor_id, int threshold_id);
+
+/* Toggle automatic fan speed control. Return -1 on error. */
+int thermal_toggle_auto_fan_ctrl(int auto_fan_on);
+
#endif /* __CROS_EC_THERMAL_H */