diff options
author | Shelley Chen <shchen@google.com> | 2020-10-16 10:55:07 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-10-19 07:01:04 +0000 |
commit | d5faa90df50c820ed3b79d4a5e479767efd73287 (patch) | |
tree | d13f7478d50924b5c653532243a2bedcbe285696 /src/drivers/intel | |
parent | dc667980f8ab78296e77b53d4afd1ce8d21dd2a6 (diff) |
security/vboot: Rename mem_init.h to mrc_cache_hash_tpm.h
As ongoing work for generalizing mrc_cache to be used by all
platforms, we are pulling it out from fsp 2.0 and renaming it as
mrc_cache_hash_tpm.h in security/vboot.
BUG=b:150502246
BRANCH=None
TEST=emerge-nami coreboot chromeos-bootimage
Change-Id: I5a204bc3342a3462f177c3ed6b8443e31816091c
Signed-off-by: Shelley Chen <shchen@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46508
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/memory_init.h | 19 | ||||
-rw-r--r-- | src/drivers/intel/fsp2_0/memory_init.c | 2 |
2 files changed, 1 insertions, 20 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/memory_init.h b/src/drivers/intel/fsp2_0/include/fsp/memory_init.h deleted file mode 100644 index e100efbeaa..0000000000 --- a/src/drivers/intel/fsp2_0/include/fsp/memory_init.h +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef _FSP2_0_MEMORY_INIT_H_ -#define _FSP2_0_MEMORY_INIT_H_ - -#include <types.h> - -/* - * Updates mrc cache hash if it differs. - */ -void mrc_cache_update_hash(const uint8_t *data, size_t size); - -/* - * Verifies mrc cache hash which is stored somewhere. - * return 1 verification was successful and 0 for error. - */ -int mrc_cache_verify_hash(const uint8_t *data, size_t size); - -#endif /* _FSP2_0_MEMORY_INIT_H_ */ diff --git a/src/drivers/intel/fsp2_0/memory_init.c b/src/drivers/intel/fsp2_0/memory_init.c index 1ef9324d40..14aec98d43 100644 --- a/src/drivers/intel/fsp2_0/memory_init.c +++ b/src/drivers/intel/fsp2_0/memory_init.c @@ -20,8 +20,8 @@ #include <timestamp.h> #include <security/vboot/vboot_common.h> #include <security/tpm/tspi.h> +#include <security/vboot/mrc_cache_hash_tpm.h> #include <vb2_api.h> -#include <fsp/memory_init.h> #include <types.h> static uint8_t temp_ram[CONFIG_FSP_TEMP_RAM_SIZE] __aligned(sizeof(uint64_t)); |