diff options
author | Vic Yang <victoryang@google.com> | 2012-03-13 11:58:58 +0800 |
---|---|---|
committer | Vic Yang <victoryang@google.com> | 2012-03-13 12:00:03 +0800 |
commit | 2a0c6a31eadebc158b3385bedfb780f3d714b11c (patch) | |
tree | d88eb0438e74e3118cb27c18ae2f4028c3cf5a9f /common/thermal.c | |
parent | 9e3e87f802026d1762bb8865f5b2f9125039828f (diff) | |
download | chrome-ec-2a0c6a31eadebc158b3385bedfb780f3d714b11c.tar.gz |
Thermal Engine SMI
Make thermal engine trigger SMI on overheating and sensor failure.
Signed-off-by: Vic Yang <victoryang@google.com>
BUG=chrome-os-partner:8249
TEST=none
Change-Id: I1f8c1d05ae69fae4736c4cc92b060b1813007249
Diffstat (limited to 'common/thermal.c')
-rw-r--r-- | common/thermal.c | 8 |
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)); } |