1 /*
2  * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <common/desc_image_load.h>
8 
9 /*******************************************************************************
10  * This function flushes the data structures so that they are visible
11  * in memory for the next BL image.
12  ******************************************************************************/
plat_flush_next_bl_params(void)13 void plat_flush_next_bl_params(void)
14 {
15 	flush_bl_params_desc();
16 }
17 
18 /*******************************************************************************
19  * This function returns the list of loadable images.
20  ******************************************************************************/
plat_get_bl_image_load_info(void)21 bl_load_info_t *plat_get_bl_image_load_info(void)
22 {
23 	return get_bl_load_info_from_mem_params_desc();
24 }
25 
26 /*******************************************************************************
27  * This function returns the list of executable images.
28  ******************************************************************************/
plat_get_next_bl_params(void)29 bl_params_t *plat_get_next_bl_params(void)
30 {
31 	bl_params_t *bl_params = get_next_bl_params_from_mem_params_desc();
32 
33 	populate_next_bl_params_config(bl_params);
34 
35 	return bl_params;
36 }
37