{commonlib, libpayload}: Add RTC_WAKE to boot_mode_t

Define CB_BOOT_MODE_RTC_WAKE and LB_BOOT_MODE_RTC_WAKE in the
coreboot table headers. This allows the firmware to communicate
to the payload (such as depthcharge) that the device started
up due to a Real-Time Clock alarm.

Synchronize the change across:
- payloads/libpayload/include/coreboot_tables.h
- src/commonlib/include/commonlib/coreboot_tables.h

BUG=b:493760057
BRANCH=none
TEST=Build coreboot and libpayload. Verify that the new boot mode
is accessible in the payload.

Change-Id: I8f5e118e6965f29498ab5bb46e153bc6d24bc116
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91764
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Subrata Banik 2026-03-19 19:04:00 +00:00
commit 941597e52f
2 changed files with 4 additions and 0 deletions

View file

@ -464,6 +464,8 @@ enum boot_mode_t {
CB_BOOT_MODE_LOW_BATTERY_CHARGING,
/* Device is booting in due to charger insertion */
CB_BOOT_MODE_OFFMODE_CHARGING,
/* Device is booting in due to RTC alarm */
CB_BOOT_MODE_RTC_WAKE,
};
/*

View file

@ -647,6 +647,8 @@ enum boot_mode_t {
LB_BOOT_MODE_LOW_BATTERY_CHARGING,
/* Device is booting in due to charger insertion */
LB_BOOT_MODE_OFFMODE_CHARGING,
/* Device is booting in due to RTC alarm */
LB_BOOT_MODE_RTC_WAKE,
};
/*