util/cbfstool/eventlog: Add low battery event type
This commit adds a new event type, `ELOG_TYPE_LOW_BATTERY_INDICATOR`, to the event log. This event is logged when the system boots due to a low battery condition. It includes the reason for the shutdown, currently only supporting "Power Off". BUG=b:339673254 TEST=Able to capture the eventlog for low battery boot event. ``` > elogtool list 9 | 2025-02-03 09:44:19+0530 | Low Battery Boot | Power Off ``` Change-Id: I5cc5e5f540657c7dfd174a4928e697a272da813a Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86223 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Dinesh Gehlot <digehlot@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
parent
976a28bcfa
commit
d25a73d9a7
2 changed files with 15 additions and 0 deletions
|
|
@ -389,6 +389,9 @@ struct elog_event_extended_event {
|
|||
#define ELOG_FW_POST_RAM_CSE_SYNC 0x1
|
||||
#define ELOG_FW_CSE_SYNC_AT_PAYLOAD 0x2
|
||||
|
||||
#define ELOG_TYPE_LOW_BATTERY_INDICATOR 0xbe
|
||||
#define ELOG_FW_ISSUE_SHUTDOWN 0x0
|
||||
|
||||
/* Only the 7-LSB are used for size */
|
||||
#define ELOG_MAX_EVENT_SIZE 0x7F
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue