summaryrefslogtreecommitdiff
path: root/src/vendorcode/google
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-05-24 14:50:45 -0500
committerAaron Durbin <adurbin@chromium.org>2016-05-25 18:04:30 +0200
commite6dcafbc1a6b3468ae57003dd481b5143970a61c (patch)
tree03b917e5b0ed3defff8b09d36bb5f34511278df5 /src/vendorcode/google
parent9acd39d95ebf7ffb318a91322d531a777c9b133e (diff)
downloadcoreboot-e6dcafbc1a6b3468ae57003dd481b5143970a61c.tar.xz
vendorcode/google/chromeos/vboot2: use cbmem for postcar region selection
When the vboot cbfs selection runs in postcar stage it should be utilizing cbmem to locate the vboot selected region. Change-Id: I027ba19438468bd690d74ae55007393f051fde42 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/14959 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/vendorcode/google')
-rw-r--r--src/vendorcode/google/chromeos/vboot2/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/google/chromeos/vboot2/common.c b/src/vendorcode/google/chromeos/vboot2/common.c
index 4282408535..749f328a01 100644
--- a/src/vendorcode/google/chromeos/vboot2/common.c
+++ b/src/vendorcode/google/chromeos/vboot2/common.c
@@ -65,8 +65,8 @@ static struct selected_region *vb2_selected_region(void)
{
struct selected_region *sel_reg = NULL;
- /* Ramstage always uses cbmem as a source of truth. */
- if (ENV_RAMSTAGE)
+ /* Ramstage and postcar always uses cbmem as a source of truth. */
+ if (ENV_RAMSTAGE || ENV_POSTCAR)
sel_reg = cbmem_find(CBMEM_ID_VBOOT_SEL_REG);
else if (ENV_ROMSTAGE) {
/* Try cbmem first. Fall back on working data if not found. */