mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +00:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user