From 749d0fa80d1c7ca30b4092a381a06deeeaf1747f Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Mon, 26 Jul 2021 13:19:39 +0300 Subject: [PATCH] fix(plat/fvp): provide boot files via semihosting These files are needed during boot, but they were missing for semihosting. With this patch, the list of files is complete enough to boot on ATF platform via semihosting. Change-Id: I2f0ca25983a6e18096f040780776f19f8040ea79 Signed-off-by: stsp@users.sourceforge.net --- plat/arm/board/fvp/fvp_io_storage.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/plat/arm/board/fvp/fvp_io_storage.c b/plat/arm/board/fvp/fvp_io_storage.c index 109d32150..4eef51c31 100644 --- a/plat/arm/board/fvp/fvp_io_storage.c +++ b/plat/arm/board/fvp/fvp_io_storage.c @@ -20,6 +20,10 @@ #define BL32_IMAGE_NAME "bl32.bin" #define BL33_IMAGE_NAME "bl33.bin" #define TB_FW_CONFIG_NAME "fvp_tb_fw_config.dtb" +#define SOC_FW_CONFIG_NAME "fvp_soc_fw_config.dtb" +#define TOS_FW_CONFIG_NAME "fvp_tsp_fw_config.dtb" +#define NT_FW_CONFIG_NAME "fvp_nt_fw_config.dtb" +#define FW_CONFIG_NAME "fvp_fw_config.dtb" #define HW_CONFIG_NAME "hw_config.dtb" #if TRUSTED_BOARD_BOOT @@ -58,6 +62,22 @@ static const io_file_spec_t sh_file_spec[] = { .path = TB_FW_CONFIG_NAME, .mode = FOPEN_MODE_RB }, + [SOC_FW_CONFIG_ID] = { + .path = SOC_FW_CONFIG_NAME, + .mode = FOPEN_MODE_RB + }, + [TOS_FW_CONFIG_ID] = { + .path = TOS_FW_CONFIG_NAME, + .mode = FOPEN_MODE_RB + }, + [NT_FW_CONFIG_ID] = { + .path = NT_FW_CONFIG_NAME, + .mode = FOPEN_MODE_RB + }, + [FW_CONFIG_ID] = { + .path = FW_CONFIG_NAME, + .mode = FOPEN_MODE_RB + }, [HW_CONFIG_ID] = { .path = HW_CONFIG_NAME, .mode = FOPEN_MODE_RB