summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerrit <chrome-bot@google.com>2012-03-13 20:04:09 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2012-03-13 20:04:09 -0700
commit386f4618f38e47b3f38e99b47fb2dd35ce670c04 (patch)
tree74d8f6b3ba0d0d292d6c9432a34056d2cef90aee
parentf69b2ffc9021215e7205565b55d1c2d7b6b28095 (diff)
parent2a0c6a31eadebc158b3385bedfb780f3d714b11c (diff)
downloadchrome-ec-386f4618f38e47b3f38e99b47fb2dd35ce670c04.tar.gz
Merge "Thermal Engine SMI"
-rw-r--r--common/thermal.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/thermal.c b/common/thermal.c
index 673cfd189e..6e525fda6e 100644
--- a/common/thermal.c
+++ b/common/thermal.c
@@ -9,6 +9,8 @@
#include "chipset.h"
#include "console.h"
#include "gpio.h"
+#include "lpc.h"
+#include "lpc_commands.h"
#include "pwm.h"
#include "task.h"
#include "temp_sensor.h"
@@ -67,13 +69,15 @@ int thermal_toggle_auto_fan_ctrl(int auto_fan_on)
static void smi_overheated_warning(void)
{
- /* TODO: crosbug.com/p/8249 */
+ lpc_set_host_events(
+ EC_LPC_HOST_EVENT_MASK(EC_LPC_HOST_EVENT_THERMAL_OVERLOAD));
}
static void smi_sensor_failure_warning(void)
{
- /* TODO: crosbug.com/p/8249 */
+ lpc_set_host_events(
+ EC_LPC_HOST_EVENT_MASK(EC_LPC_HOST_EVENT_THERMAL));
}