From eacd74f22348f664ffdc3a797511c02e2c623c24 Mon Sep 17 00:00:00 2001 From: Jonathan Zhang Date: Mon, 24 Oct 2022 17:08:47 -0700 Subject: drivers/ocp: add VPD processing framework Add VPD processing framework to be shared by OCP mainboards: * define VPD configuration items in vpd.h. * add helper functions: ** get_bool_from_vpd() ** get_int_from_vpd_range() Change-Id: I705bea348b1611f25ccbd798b77cfee22ec30f0f Signed-off-by: Johnny Lin Signed-off-by: Tim Chu Signed-off-by: Marc Jones Signed-off-by: Jonathan Zhang Reviewed-on: https://review.coreboot.org/c/coreboot/+/68784 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- src/drivers/ocp/vpd/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/drivers/ocp/vpd/Makefile.inc (limited to 'src/drivers/ocp/vpd/Makefile.inc') diff --git a/src/drivers/ocp/vpd/Makefile.inc b/src/drivers/ocp/vpd/Makefile.inc new file mode 100644 index 0000000000..c34866ff38 --- /dev/null +++ b/src/drivers/ocp/vpd/Makefile.inc @@ -0,0 +1,2 @@ +romstage-$(CONFIG_OCP_VPD) += vpd_util.c +ramstage-$(CONFIG_OCP_VPD) += vpd_util.c -- cgit v1.2.3