xref: /rk3399_ARM-atf/plat/st/stm32mp2/plat_bl2_mem_params_desc.c (revision e264b5573952c72805a14e69e438168c00163e9a)
1 /*
2  * Copyright (c) 2023-2024, STMicroelectronics - All Rights Reserved
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <common/bl_common.h>
8 #include <common/desc_image_load.h>
9 #include <plat/common/platform.h>
10 
11 #include <platform_def.h>
12 
13 /*******************************************************************************
14  * Following descriptor provides BL image/ep information that gets used
15  * by BL2 to load the images and also subset of this information is
16  * passed to next BL image. The image loading sequence is managed by
17  * populating the images in required loading order. The image execution
18  * sequence is managed by populating the `next_handoff_image_id` with
19  * the next executable image id.
20  ******************************************************************************/
21 static bl_mem_params_node_t bl2_mem_params_descs[] = {
22 	/* Fill FW_CONFIG related information if it exists */
23 	{
24 		.image_id = FW_CONFIG_ID,
25 		SET_STATIC_PARAM_HEAD(ep_info, PARAM_IMAGE_BINARY,
26 				      VERSION_2, entry_point_info_t,
27 				      SECURE | NON_EXECUTABLE),
28 		SET_STATIC_PARAM_HEAD(image_info, PARAM_IMAGE_BINARY,
29 				      VERSION_2, image_info_t,
30 				      IMAGE_ATTRIB_PLAT_SETUP),
31 
32 		.image_info.image_base = STM32MP_FW_CONFIG_BASE,
33 		.image_info.image_max_size = STM32MP_FW_CONFIG_MAX_SIZE,
34 
35 		.next_handoff_image_id = INVALID_IMAGE_ID,
36 	},
37 };
38 
39 REGISTER_BL_IMAGE_DESCS(bl2_mem_params_descs)
40