vboot: communicate display requirements with vb2api_fw_phase1
Input: tell vb2api_fw_phase1 if display unconditionally available Output: vb2api_fw_phase1 may request coreboot to initialize display, if needed based on some internal request Move setting the VBOOT_FLAG_DISPLAY_REQUESTED flag into verstage_main. BUG=b:124141368, b:124192753, chromium:948529 TEST=make clean && make test-abuild BRANCH=none Change-Id: I81c82c46303564b63b8a32e7f80beb9d891a4628 Cq-Depend: chromium:1564232 Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32324 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Patrick Georgi
parent
9e8cf3cc86
commit
5923d67cfd
@ -68,14 +68,11 @@ static void fill_vboot_handoff(struct vboot_handoff *vboot_handoff,
|
||||
vb_sd->flags |= VBSD_BOOT_DEV_SWITCH_ON;
|
||||
vb_sd->flags |= VBSD_LF_DEV_SWITCH_ON;
|
||||
}
|
||||
/* Inform vboot if the display was requested by vboot kernel phase
|
||||
or enabled by dev/rec mode. */
|
||||
/* TODO(chromium:948529): Remove these two flags after downstream
|
||||
vboot code longer reads them. */
|
||||
if (vboot_wants_oprom() || vb2_sd->recovery_reason ||
|
||||
vb2_sd->flags & VB2_SD_FLAG_DEV_MODE_ENABLED) {
|
||||
vboot_get_working_data()->flags |= VBOOT_WD_FLAG_DISPLAY_INIT;
|
||||
vb2_sd->flags & VB2_SD_FLAG_DEV_MODE_ENABLED)
|
||||
vb_sd->flags |= VBSD_OPROM_LOADED;
|
||||
}
|
||||
/* TODO: Remove when depthcharge no longer reads this flag. */
|
||||
if (CONFIG(VBOOT_MUST_REQUEST_DISPLAY))
|
||||
vb_sd->flags |= VBSD_OPROM_MATTERS;
|
||||
|
||||
|
Reference in New Issue
Block a user