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
This commit is contained in:
Vic Yang
2012-03-13 11:58:58 +08:00
parent 9e3e87f802
commit 2a0c6a31ea

View File

@@ -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));
}