aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@foss.st.com>2021-05-11 13:39:55 +0200
committerYann Gautier <yann.gautier@foss.st.com>2021-06-03 10:45:17 +0200
commite1db570a30661755c29ef03213c96f66a449c511 (patch)
treeaeaf9b0e1b2ddf7c2a1aafddea7443a98bde273c
parent06c3b100ea29336e34a3abde3f87e62c56d03b4c (diff)
downloadtrusted-firmware-a-e1db570a30661755c29ef03213c96f66a449c511.tar.gz
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 <yann.gautier@foss.st.com> Change-Id: I464cedf588114d60522433123f8dbef32ae36818
-rw-r--r--plat/st/common/bl2_io_storage.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/plat/st/common/bl2_io_storage.c b/plat/st/common/bl2_io_storage.c
index 77b72a1bfa..18ee35e2be 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,