From 3f926bc11056bdb6e3912dec778c37f28320d171 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Thu, 4 Sep 2025 14:51:26 -0700 Subject: [PATCH] commonlib/bsd: Add Bluetooth wake source in ELOG event data This commit introduces a new constant, ELOG_WAKE_SOURCE_PME_BLUETOOTH, with the value 0x31 to represent Bluetooth as a wake source in the ELOG event data structure. This change facilitates diagnostics and event logging related to Bluetooth activity. The cbfstool eventlog has been updated to include "PME - BLUETOOTH" in the wake source types for event data printing. Change-Id: Ib628502ddcccb4a781394a39b2aee6efa05ecf84 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/89059 Tested-by: build bot (Jenkins) Reviewed-by: Jamie Ryu Reviewed-by: Bora Guvendik --- src/commonlib/bsd/include/commonlib/bsd/elog.h | 1 + util/cbfstool/eventlog.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/commonlib/bsd/include/commonlib/bsd/elog.h b/src/commonlib/bsd/include/commonlib/bsd/elog.h index 01f97f6957..4b45f8dda6 100644 --- a/src/commonlib/bsd/include/commonlib/bsd/elog.h +++ b/src/commonlib/bsd/include/commonlib/bsd/elog.h @@ -197,6 +197,7 @@ struct elog_ec_event { #define ELOG_WAKE_SOURCE_PME_TCSS_XHCI 0x2e #define ELOG_WAKE_SOURCE_PME_TCSS_XDCI 0x2f #define ELOG_WAKE_SOURCE_PME_TCSS_DMA 0x30 +#define ELOG_WAKE_SOURCE_PME_BLUETOOTH 0x31 struct elog_event_data_wake { uint8_t source; diff --git a/util/cbfstool/eventlog.c b/util/cbfstool/eventlog.c index 2312b75f8b..74112fb468 100644 --- a/util/cbfstool/eventlog.c +++ b/util/cbfstool/eventlog.c @@ -321,6 +321,7 @@ static int eventlog_print_data(const struct event_header *event) {ELOG_WAKE_SOURCE_PME_TCSS_XHCI, "PME - TCSS XHCI"}, {ELOG_WAKE_SOURCE_PME_TCSS_XDCI, "PME - TCSS XDCI"}, {ELOG_WAKE_SOURCE_PME_TCSS_DMA, "PME - TCSS DMA"}, + {ELOG_WAKE_SOURCE_PME_BLUETOOTH, "PME - BLUETOOTH"}, {0, NULL}, }; static const struct valstr ec_event_types[] = {