coreboot/src/drivers/vpd
Subrata Banik dc073ca75c drivers/vpd: Add vpd_get_feature_level() API
This patch introduces the vpd_get_feature_level() API to specifically
extract the "feature_level" field from the "feature_device_info" VPD
key.

This is used to distinguish between Chromebook-Plus and regular
Chromebook devices.

The previous vpd_get_feature_device_info() API is removed as
vpd_get_feature_level() is enough to find VPD and extract the data.

Note: The new API decodes the base64-encoded "feature_device_info" VPD
data.

BUG=b:324107408
TEST=Able to build and boot google/rex0.

Change-Id: I76fc220ed792abdfefb0b1a37873b5b828bfdda8
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80805
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Dinesh Gehlot <digehlot@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
2024-03-05 10:17:00 +00:00
..
Kconfig drivers/vpd: Add support to read device serial from VPD 2021-01-04 23:12:58 +00:00
Makefile.mk drivers/vpd: Add API to read "feature_device_info" VPD 2024-02-28 11:05:42 +00:00
vpd.c cbmem.h: Drop cbmem_possible_online in favor of ENV_HAS_CBMEM 2023-10-25 13:58:02 +00:00
vpd.h drivers/vpd: Add vpd_get_feature_level() API 2024-03-05 10:17:00 +00:00
vpd_decode.c drivers: Use SPDX identifiers 2020-05-25 22:19:21 +00:00
vpd_decode.h drivers: Use SPDX identifiers 2020-05-25 22:19:21 +00:00
vpd_device_feature.c drivers/vpd: Add vpd_get_feature_level() API 2024-03-05 10:17:00 +00:00
vpd_serial.c drivers/vpd: Add support to read device serial from VPD 2021-01-04 23:12:58 +00:00
vpd_tables.h drivers: Use SPDX identifiers 2020-05-25 22:19:21 +00:00