summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorJon Murphy <jpmurphy@google.com>2022-02-17 16:15:45 -0700
committerFelix Held <felix-coreboot@felixheld.de>2022-02-28 13:29:57 +0000
commitf79cc51b3f8e490788598b51523897a68152abc6 (patch)
tree99352860a8cd282a468b3858eca72fa7a7a4e955 /src/mainboard/google
parent6ad5f4ec1626d223aca8321775ab7883646351e7 (diff)
mb/google/skyrim: Log mainboard events to elog
BUG=b:214414851 TEST=builds Signed-off-by: Jon Murphy <jpmurphy@google.com> Change-Id: Ic427f88fee7739b064a8836e07841c80c99212a3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62154 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/skyrim/Kconfig2
-rw-r--r--src/mainboard/google/skyrim/variants/baseboard/smihandler.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/skyrim/Kconfig b/src/mainboard/google/skyrim/Kconfig
index c5b81f79c9..2a0ce65ef5 100644
--- a/src/mainboard/google/skyrim/Kconfig
+++ b/src/mainboard/google/skyrim/Kconfig
@@ -20,6 +20,8 @@ config BOARD_SPECIFIC_OPTIONS
select BOARD_ROMSIZE_KB_16384
select EC_GOOGLE_CHROMEEC
select EC_GOOGLE_CHROMEEC_ESPI
+ select ELOG
+ select ELOG_GSMI
select FW_CONFIG
select MAINBOARD_HAS_CHROMEOS
select SOC_AMD_SABRINA
diff --git a/src/mainboard/google/skyrim/variants/baseboard/smihandler.c b/src/mainboard/google/skyrim/variants/baseboard/smihandler.c
index f5131e9461..b0da5bd5bc 100644
--- a/src/mainboard/google/skyrim/variants/baseboard/smihandler.c
+++ b/src/mainboard/google/skyrim/variants/baseboard/smihandler.c
@@ -5,6 +5,7 @@
#include <cpu/x86/smm.h>
#include <ec/google/chromeec/ec.h>
#include <ec/google/chromeec/smm.h>
+#include <elog.h>
#include <variant/ec.h>
void mainboard_smi_sleep(u8 slp_typ)
@@ -24,3 +25,8 @@ int mainboard_smi_apmc(u8 apmc)
return 0;
}
+
+void elog_gsmi_cb_mainboard_log_wake_source(void)
+{
+ google_chromeec_log_events(MAINBOARD_EC_LOG_EVENTS | MAINBOARD_EC_S0IX_WAKE_EVENTS);
+}