From daecc449ca1708a2412df6cd394e299ede36bfe2 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 12 May 2014 10:20:45 -0700 Subject: [PATCH] elog: Add event type for CPU thermal trip There is a status bit for this event in most intel chipsets that we can read and report. Start by adding the new event type. Change-Id: Ib06411e3b87a1d069fb469943dd445bee6c1291f Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/199370 Reviewed-by: Aaron Durbin (cherry picked from commit 386a06170ec5afb31d0fe93ace3afbaab897a598) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/7004 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/include/elog.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/elog.h b/src/include/elog.h index eb8352dd3c..648ce42b38 100644 --- a/src/include/elog.h +++ b/src/include/elog.h @@ -145,6 +145,9 @@ struct elog_event_data_me_extended { /* EC Shutdown Reason */ #define ELOG_TYPE_EC_SHUTDOWN 0xa5 +/* CPU Thermal Trip */ +#define ELOG_TYPE_THERM_TRIP 0xa7 + extern int elog_init(void); extern int elog_clear(void); extern void elog_add_event_raw(u8 event_type, void *data, u8 data_size);