summaryrefslogtreecommitdiffstats
path: root/src/commonlib/bsd
diff options
context:
space:
mode:
authorTarun Tuli <taruntuli@google.com>2023-01-31 19:25:27 +0000
committerJulius Werner <jwerner@chromium.org>2023-02-02 21:43:52 +0000
commit0b40ea2f6e7218b062e019f0270166e6230ff786 (patch)
tree020427fb02c4b6dc58b4b698752d734903141fad /src/commonlib/bsd
parent9722f5ff59dfc7c2c692b48a452b48623f70f073 (diff)
downloadcoreboot-0b40ea2f6e7218b062e019f0270166e6230ff786.tar.gz
coreboot-0b40ea2f6e7218b062e019f0270166e6230ff786.tar.bz2
coreboot-0b40ea2f6e7218b062e019f0270166e6230ff786.zip
commonlib: Add ELOG_TYPE_FW_EARLY_SOL eventLog type
Add a new eventLog type of ELOG_TYPE_FW_EARLY_SOL to support logging when we show early signs of life to the user. BUG=b:266113626 TEST=event shows in eventlog after CSE sync and/or MRC Change-Id: I3bd5a250c0be824dbbad0236cee7d61a1ffdbc6c Signed-off-by: Tarun Tuli <tarun.tuli@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72670 Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Nick Vaccaro <nvaccaro@google.com> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/commonlib/bsd')
-rw-r--r--src/commonlib/bsd/include/commonlib/bsd/elog.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/elog.h b/src/commonlib/bsd/include/commonlib/bsd/elog.h
index 1f390903906e..783557faf644 100644
--- a/src/commonlib/bsd/include/commonlib/bsd/elog.h
+++ b/src/commonlib/bsd/include/commonlib/bsd/elog.h
@@ -360,7 +360,14 @@ struct elog_event_extended_event {
* Firmware boot related information retrieved from vboot and store as
* per `union vb2_fw_boot_info` data structure.
*/
-#define ELOG_TYPE_FW_VBOOT_INFO 0xb7
+#define ELOG_TYPE_FW_VBOOT_INFO 0xb7
+
+/*
+ * Events related to early Sign Of Life
+ */
+#define ELOG_TYPE_FW_EARLY_SOL 0xb8
+#define ELOG_FW_EARLY_SOL_CSE_SYNC 0x0
+#define ELOG_FW_EARLY_SOL_MRC 0x1
/* Only the 7-LSB are used for size */
#define ELOG_MAX_EVENT_SIZE 0x7F