Amol N Sukerkar has uploaded this change for review.
src/lib: Add option to support native display init with vboot 2.0
This change allows display initialization natively in coreboot with vboot 2.0
authentication mechanism is enabled on a non-chromeos platform.
TEST=Set option CONFIG_VBOOT and clear CONFIG_VBOOT_MAY_SKIP_DISPLAY_INIT
and the display should initialize in ramstage when platform boots. Set
CONFIG_VBOOT and set CONFIG_VBOOT_MAY_SKIP_DISPLAY_INIT and the display
initialization should be skipped in coreboot.
Signed-off-by: Sukerkar, Amol N <amol.n.sukerkar@intel.com>
Change-Id: I51361c267e0317d44a58cc5d740c3beb8924a57b
---
M src/lib/bootmode.c
1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/33845/1
diff --git a/src/lib/bootmode.c b/src/lib/bootmode.c
index 737dcf9..bb14cd1 100644
--- a/src/lib/bootmode.c
+++ b/src/lib/bootmode.c
@@ -2,6 +2,7 @@
* This file is part of the coreboot project.
*
* Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -33,8 +34,12 @@
int display_init_required(void)
{
- /* For vboot, always honor VBOOT_WD_FLAG_DISPLAY_INIT. */
- if (CONFIG(VBOOT)) {
+ /* For vboot, always honor VBOOT_WD_FLAG_DISPLAY_INIT.
+ * VBOOT_MAY_SKIP_DISPLAY_INIT, when selected, assumes
+ * CHROMEOS configuration and allows the platform to skip
+ * display init in normal boot.
+ */
+ if (CONFIG(VBOOT_MAY_SKIP_DISPLAY_INIT)) {
/* Must always select MUST_REQUEST_DISPLAY when using this
function. */
if (!CONFIG(VBOOT_MUST_REQUEST_DISPLAY))
To view, visit change 33845. To unsubscribe, or for help writing mail filters, visit settings.