diff options
author | Alexei Fedorov <Alexei.Fedorov@arm.com> | 2020-07-13 12:11:05 +0100 |
---|---|---|
committer | Alexei Fedorov <Alexei.Fedorov@arm.com> | 2020-07-21 20:33:07 +0000 |
commit | 7b4e1fbb8f5c2d0e18326223aa0a945d6e7c3a55 (patch) | |
tree | ed22594ef3070f3eb544e346ab9361bb9f7848df /include/plat/common/platform.h | |
parent | 1f7307232f6388cb3bebbeb640a3f3f0f1d4bb2b (diff) | |
download | trusted-firmware-a-7b4e1fbb8f5c2d0e18326223aa0a945d6e7c3a55.tar.gz |
TF-A: Add support for Measured Boot driver
This patch adds support for Measured Boot driver functionality
in common Arm platform code.
Change-Id: If049dcf8d847c39023b77c0d805a8cf5b8bcaa3e
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Diffstat (limited to 'include/plat/common/platform.h')
-rw-r--r-- | include/plat/common/platform.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h index 720c259b8f..658b423801 100644 --- a/include/plat/common/platform.h +++ b/include/plat/common/platform.h @@ -175,6 +175,14 @@ __dead2 void bl1_plat_fwu_done(void *client_cookie, void *reserved); int bl1_plat_handle_pre_image_load(unsigned int image_id); int bl1_plat_handle_post_image_load(unsigned int image_id); +#if MEASURED_BOOT +/* + * Calculates and writes BL2 hash data to the platform's defined location. + * For ARM platforms the data are written to TB_FW_CONFIG DTB. + */ +void bl1_plat_set_bl2_hash(const image_desc_t *image_desc); +#endif + /******************************************************************************* * Mandatory BL2 functions ******************************************************************************/ @@ -190,11 +198,13 @@ struct meminfo *bl2_plat_sec_mem_layout(void); int bl2_plat_handle_pre_image_load(unsigned int image_id); int bl2_plat_handle_post_image_load(unsigned int image_id); - /******************************************************************************* * Optional BL2 functions (may be overridden) ******************************************************************************/ - +#if MEASURED_BOOT +/* Read TCG_DIGEST_SIZE bytes of BL2 hash data */ +void bl2_plat_get_hash(void *data); +#endif /******************************************************************************* * Mandatory BL2 at EL3 functions: Must be implemented if BL2_AT_EL3 image is @@ -204,7 +214,6 @@ void bl2_el3_early_platform_setup(u_register_t arg0, u_register_t arg1, u_register_t arg2, u_register_t arg3); void bl2_el3_plat_arch_setup(void); - /******************************************************************************* * Optional BL2 at EL3 functions (may be overridden) ******************************************************************************/ |