Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34674 )
Change subject: mb/google/mistral: Store developer mode status in coreboot table ......................................................................
mb/google/mistral: Store developer mode status in coreboot table
It's needed downstream and the recent vboot rework dropped the information when killing the hand-off block.
Change-Id: I411eb8ee6783402db6d4443a6ea1026cf7ad3ae3 Signed-off-by: Patrick Georgi pgeorgi@google.com --- M src/mainboard/google/mistral/mainboard.c 1 file changed, 21 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/34674/1
diff --git a/src/mainboard/google/mistral/mainboard.c b/src/mainboard/google/mistral/mainboard.c index d50758c..b350b27 100644 --- a/src/mainboard/google/mistral/mainboard.c +++ b/src/mainboard/google/mistral/mainboard.c @@ -14,7 +14,9 @@ */
#include <device/device.h> +#include <boot/coreboot_tables.h> #include <bootblock_common.h> +#include <security/vboot/vboot_common.h> #include <vendorcode/google/chromeos/chromeos.h> #include <soc/usb.h>
@@ -50,3 +52,22 @@ .name = CONFIG_MAINBOARD_PART_NUMBER, .enable_dev = mainboard_enable, }; + +void lb_board(struct lb_header *header) +{ + struct lb_modeflags { + uint32_t tag; + uint32_t size; + uint32_t reserved; + uint32_t out_flags; + } *entry; + + entry = (struct lb_modeflags *)lb_new_record(header); + entry->tag = LB_TAG_VBOOT_HANDOFF; + entry->size = sizeof(*entry); + entry->reserved = 0; + entry->out_flags = 0; + if (vboot_developer_mode_enabled()) { + entry->out_flags |= VB_INIT_OUT_ENABLE_DEVELOPER; + } +}