From 43c9d709c75813276f166da8b6bc7bc220e5288d Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Mon, 12 Apr 2021 17:00:16 -0700 Subject: 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 Change-Id: If1f0239eefa4542e4d23f6e2e3ff19106f2e3c0d Reviewed-on: https://review.coreboot.org/c/coreboot/+/52281 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/drivers/intel/fsp2_0/silicon_init.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/drivers/intel/fsp2_0/silicon_init.c') diff --git a/src/drivers/intel/fsp2_0/silicon_init.c b/src/drivers/intel/fsp2_0/silicon_init.c index 6326d53622ac..53c962649a9b 100644 --- a/src/drivers/intel/fsp2_0/silicon_init.c +++ b/src/drivers/intel/fsp2_0/silicon_init.c @@ -204,10 +204,7 @@ void fsps_load(void) if (resume_from_stage_cache()) { printk(BIOS_DEBUG, "Loading FSPS from stage_cache\n"); stage_cache_load_stage(STAGE_REFCODE, fsps); - - struct region_device prog_rdev; - prog_chain_rdev(fsps, &prog_rdev); - if (fsp_validate_component(&fsps_hdr, &prog_rdev) != CB_SUCCESS) + if (fsp_validate_component(&fsps_hdr, prog_start(fsps), prog_size(fsps))) die("On resume fsps header is invalid\n"); load_done = 1; return; -- cgit v1.2.3