diff options
author | Bill Richardson <wfrichar@chromium.org> | 2012-06-26 16:33:56 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-27 17:40:40 -0700 |
commit | 17b8224ea582b2ba90b30a3e8e2d913e49c7818a (patch) | |
tree | 17458e3e00091416f4c09608b2e07e8848d6ed46 /host | |
parent | 66b47ba37d3658cceecf30d25edc3becbb692c4a (diff) | |
download | vboot-17b8224ea582b2ba90b30a3e8e2d913e49c7818a.tar.gz |
Add bits to request and acknowledge Option ROM loading.
For fastest boot, we don't want to load the VGA Option ROM every time, but
only when we need it. Coreboot does that loading, but it can't always know
when it's needed (with keyboard-based dev-mode, coreboot can't tell if we're
in dev-mode or not). By the time we get to U-Boot, it's too late, so we need
two extra bits - one for vboot to tell coreboot to load the Option ROM and
another for coreboot to let vboot know it's been done.
BUG=chrome-os-partner:8789
TEST=manual
The only visible change is that crossystem will now have an "oprom_needed"
flag that can be set or cleared. Nothing actually pays attention to it yet,
though.
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Change-Id: I521a6afdfb8ea17a8148b32eeb858844c981de9c
Reviewed-on: https://gerrit.chromium.org/gerrit/26272
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/crossystem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c index d80f8430..80a3d3c2 100644 --- a/host/lib/crossystem.c +++ b/host/lib/crossystem.c @@ -381,6 +381,8 @@ int VbGetSystemPropertyInt(const char* name) { value = VbGetNvStorage(VBNV_DEV_BOOT_USB); } else if (!strcasecmp(name,"dev_boot_signed_only")) { value = VbGetNvStorage(VBNV_DEV_BOOT_SIGNED_ONLY); + } else if (!strcasecmp(name,"oprom_needed")) { + value = VbGetNvStorage(VBNV_OPROM_NEEDED); } /* Other parameters */ else if (!strcasecmp(name,"cros_debug")) { @@ -460,6 +462,8 @@ int VbSetSystemPropertyInt(const char* name, int value) { return VbSetNvStorage(VBNV_DEV_BOOT_USB, value); } else if (!strcasecmp(name,"dev_boot_signed_only")) { return VbSetNvStorage(VBNV_DEV_BOOT_SIGNED_ONLY, value); + } else if (!strcasecmp(name,"oprom_needed")) { + return VbSetNvStorage(VBNV_OPROM_NEEDED, value); } return -1; |