mb/google/reef: Fix guarding of reading SKU from VPD

VPD read depends on CONFIG(VPD), not CONFIG(CHROMEOS).

TEST=build/boot snappy, verify SKU set properly in SMBIOS

Change-Id: I8aa57f793bd04dbe31f3b49bbff23e05c96592a6
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68753
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Matt DeVillier 2022-10-22 22:34:35 -05:00 committed by Angel Pons
parent 2890841e6f
commit f72c090b7f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ uint8_t variant_board_sku(void)
board_sku_num = sku_strapping_value();
if (!CONFIG(CHROMEOS))
if (!CONFIG(VPD))
return board_sku_num;
if (!vpd_gets(vpd_skuid, vpd_buffer, ARRAY_SIZE(vpd_buffer), VPD_RO_THEN_RW))