From f72c090b7f0df83e73711565b9d966aaf83e1b56 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sat, 22 Oct 2022 22:34:35 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68753 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/google/reef/variants/snappy/mainboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard/google/reef/variants/snappy') diff --git a/src/mainboard/google/reef/variants/snappy/mainboard.c b/src/mainboard/google/reef/variants/snappy/mainboard.c index fc0652cf91..0b155054bb 100644 --- a/src/mainboard/google/reef/variants/snappy/mainboard.c +++ b/src/mainboard/google/reef/variants/snappy/mainboard.c @@ -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)) -- cgit v1.2.3