diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-07-03 15:55:09 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-07 17:36:46 -0700 |
commit | e129d5f1fa1a686c6f06aecbcc28e27cc8334483 (patch) | |
tree | 7e7d22a5824f29a023da6e5ef6800dbc415d3471 /common/thermal.c | |
parent | 7f5f7be3e5df92ec2e9447b3d5d0b8ddeb96c9a0 (diff) | |
download | chrome-ec-e129d5f1fa1a686c6f06aecbcc28e27cc8334483.tar.gz |
Support host event get/set/clear on all host interfaces
BUG=chrome-os-partner:11090
TEST=suspend laptop, then press power button; should resume from suspend
Change-Id: I36b7c62b2e115bb97d37defcd3c783af0f91d5f8
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26730
Diffstat (limited to 'common/thermal.c')
-rw-r--r-- | common/thermal.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/common/thermal.c b/common/thermal.c index d95df670dd..fa54b3123b 100644 --- a/common/thermal.c +++ b/common/thermal.c @@ -5,12 +5,11 @@ /* Thermal engine module for Chrome EC */ -#include "board.h" #include "chipset.h" +#include "common.h" #include "console.h" #include "gpio.h" -#include "lpc.h" -#include "ec_commands.h" +#include "host_command.h" #include "pwm.h" #include "task.h" #include "temp_sensor.h" @@ -89,18 +88,14 @@ int thermal_toggle_auto_fan_ctrl(int auto_fan_on) return EC_SUCCESS; } - static void smi_overheated_warning(void) { - lpc_set_host_events( - EC_HOST_EVENT_MASK(EC_HOST_EVENT_THERMAL_OVERLOAD)); + host_set_single_event(EC_HOST_EVENT_THERMAL_OVERLOAD); } - static void smi_sensor_failure_warning(void) { - lpc_set_host_events( - EC_HOST_EVENT_MASK(EC_HOST_EVENT_THERMAL)); + host_set_single_event(EC_HOST_EVENT_THERMAL); } |