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>
This commit is contained in:
Aaron Durbin 2016-05-24 14:50:45 -05:00
parent 9acd39d95e
commit e6dcafbc1a
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ static struct selected_region *vb2_selected_region(void)
{ {
struct selected_region *sel_reg = NULL; struct selected_region *sel_reg = NULL;
/* Ramstage always uses cbmem as a source of truth. */ /* Ramstage and postcar always uses cbmem as a source of truth. */
if (ENV_RAMSTAGE) if (ENV_RAMSTAGE || ENV_POSTCAR)
sel_reg = cbmem_find(CBMEM_ID_VBOOT_SEL_REG); sel_reg = cbmem_find(CBMEM_ID_VBOOT_SEL_REG);
else if (ENV_ROMSTAGE) { else if (ENV_ROMSTAGE) {
/* Try cbmem first. Fall back on working data if not found. */ /* Try cbmem first. Fall back on working data if not found. */