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>
This commit is contained in:
Tarun Tuli
2023-01-31 19:25:27 +00:00
committed by Julius Werner
parent 9722f5ff59
commit 0b40ea2f6e

View File

@@ -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