diff options
author | Karthikeyan Ramasubramanian <kramasub@google.com> | 2020-02-04 23:03:26 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-02-09 19:25:27 +0000 |
commit | 3fde8c997713488b79639bf0345ceb9ccb9dc923 (patch) | |
tree | 559109067bb882a5e8af32b01cc366a6555c0f97 | |
parent | f8a13d5a2292c08515e4970d3f9bf5a9d0bee7d1 (diff) |
mb/google/dedede: Log mainboard events to elog
BUG=b:148410914
TEST=Build the mainboard.
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Change-Id: I7dffa5c021787dca75786ead42164bd29ba56828
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38724
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
-rw-r--r-- | src/mainboard/google/dedede/smihandler.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/smihandler.c b/src/mainboard/google/dedede/smihandler.c index 2c2230f4e4..4e3c830384 100644 --- a/src/mainboard/google/dedede/smihandler.c +++ b/src/mainboard/google/dedede/smihandler.c @@ -8,7 +8,9 @@ #include <baseboard/variants.h> #include <cpu/x86/smm.h> +#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/smm.h> +#include <elog.h> #include <intelblocks/smihandler.h> #include <variant/ec.h> @@ -35,3 +37,8 @@ int mainboard_smi_apmc(u8 apmc) MAINBOARD_EC_SMI_EVENTS); return 0; } + +void elog_gsmi_cb_mainboard_log_wake_source(void) +{ + google_chromeec_log_events(MAINBOARD_EC_LOG_EVENTS | MAINBOARD_EC_S0IX_WAKE_EVENTS); +} |