diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-08-24 19:26:56 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-08-26 15:19:06 +0000 |
commit | 42df9af4c4c6ea07a98ace10ecdbb1683119524c (patch) | |
tree | 8f81e8be697b909eb6be4ca92ad8534c0c7b5dfa /src/drivers/intel | |
parent | e44dad3096a21ca86398f08f882da13dff6e68ac (diff) |
drivers/intel/fsp2_0: rename soc_validate_fsp_version
Rename soc_validate_fsp_version to soc_validate_fspm_header, since it
can not only be used to check the version info in the FSP-M binary's
header, but also to check every other field in the binary's header. This
is a preparation for a follow-up patch that implements this function to
check the FSP-M binary's size.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Suggested-by: Furquan Shaikh <furquan@google.com>
Change-Id: Ifadcfd1869bea0774dc17b69c5d1e1c241a45de1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57130
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/util.h | 2 | ||||
-rw-r--r-- | src/drivers/intel/fsp2_0/util.c | 4 |
2 files changed, 3 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 285674b912..d05b644886 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/util.h +++ b/src/drivers/intel/fsp2_0/include/fsp/util.h @@ -109,7 +109,7 @@ void fsp_get_version(char *buf); void fsp_verify_upd_header_signature(uint64_t upd_signature, uint64_t expected_signature); 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); +void soc_validate_fspm_header(const struct fsp_header *hdr); /* 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); diff --git a/src/drivers/intel/fsp2_0/util.c b/src/drivers/intel/fsp2_0/util.c index 5045d29448..112801333f 100644 --- a/src/drivers/intel/fsp2_0/util.c +++ b/src/drivers/intel/fsp2_0/util.c @@ -98,7 +98,7 @@ enum cb_err fsp_validate_component(struct fsp_header *hdr, void *fsp_file, size_ } if (ENV_ROMSTAGE) - soc_validate_fsp_version(hdr); + soc_validate_fspm_header(hdr); return CB_SUCCESS; } @@ -224,6 +224,6 @@ void lb_string_platform_blob_version(struct lb_header *header) memcpy(rec->string, fsp_version, len+1); } -__weak void soc_validate_fsp_version(const struct fsp_header *hdr) +__weak void soc_validate_fspm_header(const struct fsp_header *hdr) { } |