From e1db570a30661755c29ef03213c96f66a449c511 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Tue, 11 May 2021 13:39:55 +0200 Subject: [PATCH] refactor(plat/st): remove BL2 image loading STM32MP1 does not use BL1, the loading of BL2 is done by ROM code. It is then useless to have an entry BL2_IMAGE_ID in the policies. Signed-off-by: Yann Gautier Change-Id: I464cedf588114d60522433123f8dbef32ae36818 --- plat/st/common/bl2_io_storage.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plat/st/common/bl2_io_storage.c b/plat/st/common/bl2_io_storage.c index 77b72a1bf..18ee35e2b 100644 --- a/plat/st/common/bl2_io_storage.c +++ b/plat/st/common/bl2_io_storage.c @@ -118,11 +118,6 @@ static const io_block_spec_t bl32_block_spec = { }; #endif -static const io_block_spec_t bl2_block_spec = { - .offset = BL2_BASE, - .length = STM32MP_BL2_SIZE, -}; - static const struct stm32image_part_info bl33_partition_spec = { .name = BL33_IMAGE_NAME, .binary_type = BL33_BINARY_TYPE, @@ -178,11 +173,6 @@ struct plat_io_policy { }; static const struct plat_io_policy policies[] = { - [BL2_IMAGE_ID] = { - .dev_handle = &dummy_dev_handle, - .image_spec = (uintptr_t)&bl2_block_spec, - .check = open_dummy - }, #ifdef AARCH32_SP_OPTEE [BL32_IMAGE_ID] = { .dev_handle = &image_dev_handle,