From f5f756d50743e7a23ab99d779bba98b5fec363cf Mon Sep 17 00:00:00 2001 From: Pratikkumar Prajapati Date: Wed, 1 Feb 2023 17:25:07 -0800 Subject: drivers/intel/fsp2_0: Add API to find FSP resource HOB by GUID The API finds the FSP resource HOB for the given GUID. Returns the pointer to the HOB if found, otherwise NULL Change-Id: I4ebc9b7d214e5fc731ae45f28e7f5732a7635cbc Signed-off-by: Pratikkumar Prajapati Reviewed-on: https://review.coreboot.org/c/coreboot/+/72721 Tested-by: build bot (Jenkins) Reviewed-by: Sridhar Siricilla --- src/drivers/intel/fsp2_0/include/fsp/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/drivers/intel/fsp2_0/include') diff --git a/src/drivers/intel/fsp2_0/include/fsp/util.h b/src/drivers/intel/fsp2_0/include/fsp/util.h index 5ff5814642..f9b31e96bf 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/util.h +++ b/src/drivers/intel/fsp2_0/include/fsp/util.h @@ -145,6 +145,11 @@ void fsp_verify_upd_header_signature(uint64_t upd_signature, uint64_t expected_s void lb_string_platform_blob_version(struct lb_header *header); void report_fspt_output(void); void soc_validate_fspm_header(const struct fsp_header *hdr); +/* + * This function finds the FSP resource HOB for the given GUID. + * Returns the pointer to the HOB if found, otherwise NULL + */ +const void *fsp_find_resource_hob_by_guid(const uint8_t *guid); /* Fill in header and validate a loaded FSP component. */ enum cb_err fsp_validate_component(struct fsp_header *hdr, void *fsp_blob, size_t size); -- cgit v1.2.3