diff options
author | Julius Werner <jwerner@chromium.org> | 2021-04-12 17:00:16 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2021-04-14 01:03:26 +0000 |
commit | 43c9d709c75813276f166da8b6bc7bc220e5288d (patch) | |
tree | e8d34d85dc8c16f4dd420d9f679834ebe2df1d4d /src/drivers/intel/fsp2_0/include | |
parent | b3182fbb0021f725c302bf327663696ca0800a4d (diff) |
intel: fsp2_0: Move last pieces to new CBFS API
This patch ports the last remaining use of cbfs_boot_locate() in the
Intel FSP drivers to the new CBFS API. As a consequence, there is no
longer a reason for fsp_validate_component() to operate on rdevs, and
the function is simplified to take a direct void pointer and size to a
memory-mapping of the FSP blob instead.
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: If1f0239eefa4542e4d23f6e2e3ff19106f2e3c0d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52281
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/intel/fsp2_0/include')
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/util.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/util.h b/src/drivers/intel/fsp2_0/include/fsp/util.h index 6583b649a1..0e11eceda4 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/util.h +++ b/src/drivers/intel/fsp2_0/include/fsp/util.h @@ -104,9 +104,8 @@ void lb_string_platform_blob_version(struct lb_header *header); void report_fspt_output(void); void soc_validate_fsp_version(const struct fsp_header *hdr); -/* Fill in header and validate sanity of component within region device. */ -enum cb_err fsp_validate_component(struct fsp_header *hdr, - const struct region_device *rdev); +/* 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); struct fsp_load_descriptor { /* fsp_prog object will have region_device initialized to final |