diff options
author | Andrew F. Davis <afd@ti.com> | 2016-09-22 15:28:00 -0500 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2016-09-23 09:18:19 +0530 |
commit | 51edcdfd6f1d876c30e2c46507de3892339c300e (patch) | |
tree | 757e1483c1fd32b30b507a161c4295744b9d6a3a /include | |
parent | 68b751bc2bab34bed1309e5d9aa0cb41c19bb663 (diff) | |
download | jacinto6evm-51edcdfd6f1d876c30e2c46507de3892339c300e.tar.gz |
image: Add TEE loading to FIT loadable processing
To help automate the loading of a TEE image during the boot we add a new
FIT section type 'tee', when we see this type while loading the loadable
sections we automatically call the platforms TEE processing function on
this image section.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/image.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h index 8d3cb3550d..baa174c58c 100644 --- a/include/image.h +++ b/include/image.h @@ -246,8 +246,9 @@ struct lmb; #define IH_TYPE_RKSD 24 /* Rockchip SD card */ #define IH_TYPE_RKSPI 25 /* Rockchip SPI image */ #define IH_TYPE_ZYNQIMAGE 26 /* Xilinx Zynq Boot Image */ +#define IH_TYPE_TEE 27 /* Trusted Execution Environment OS Image */ -#define IH_TYPE_COUNT 27 /* Number of image types */ +#define IH_TYPE_COUNT 28 /* Number of image types */ /* * Compression Types @@ -1185,4 +1186,18 @@ int board_fit_config_name_match(const char *name); void board_fit_image_post_process(void **p_image, size_t *p_size); #endif /* CONFIG_SPL_FIT_IMAGE_POST_PROCESS */ +#ifdef CONFIG_FIT_IMAGE_TEE_PROCESS +/** + * board_fit_tee_process() - Do any needed processing on a loaded TEE image + * + * This is used to verify, decrypt, and/or install a TEE in a platform or + * board specific way. + * + * @tee_image: pointer to the image + * @tee_size: the image size + * @return no return value (failure should be handled internally) + */ +void board_tee_image_process(void *tee_image, size_t tee_size); +#endif /* CONFIG_FIT_IMAGE_TEE_PROCESS */ + #endif /* __IMAGE_H__ */ |