xref: /rk3399_ARM-atf/plat/hisilicon/poplar/poplar_image_load.c (revision 9a207532f8216bf83fed0891fed9ed0bc72ca450)
10d8052a4SVictor Chong /*
20d8052a4SVictor Chong  * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
30d8052a4SVictor Chong  *
40d8052a4SVictor Chong  * SPDX-License-Identifier: BSD-3-Clause
50d8052a4SVictor Chong  */
60d8052a4SVictor Chong 
7*09d40e0eSAntonio Nino Diaz #include <common/bl_common.h>
8*09d40e0eSAntonio Nino Diaz #include <common/desc_image_load.h>
9*09d40e0eSAntonio Nino Diaz #include <plat/common/platform.h>
100d8052a4SVictor Chong 
110d8052a4SVictor Chong /*******************************************************************************
120d8052a4SVictor Chong  * This function flushes the data structures so that they are visible
130d8052a4SVictor Chong  * in memory for the next BL image.
140d8052a4SVictor Chong  ******************************************************************************/
plat_flush_next_bl_params(void)150d8052a4SVictor Chong void plat_flush_next_bl_params(void)
160d8052a4SVictor Chong {
170d8052a4SVictor Chong 	flush_bl_params_desc();
180d8052a4SVictor Chong }
190d8052a4SVictor Chong 
200d8052a4SVictor Chong /*******************************************************************************
210d8052a4SVictor Chong  * This function returns the list of loadable images.
220d8052a4SVictor Chong  ******************************************************************************/
plat_get_bl_image_load_info(void)230d8052a4SVictor Chong bl_load_info_t *plat_get_bl_image_load_info(void)
240d8052a4SVictor Chong {
250d8052a4SVictor Chong 	return get_bl_load_info_from_mem_params_desc();
260d8052a4SVictor Chong }
270d8052a4SVictor Chong 
280d8052a4SVictor Chong /*******************************************************************************
290d8052a4SVictor Chong  * This function returns the list of executable images.
300d8052a4SVictor Chong  ******************************************************************************/
plat_get_next_bl_params(void)310d8052a4SVictor Chong bl_params_t *plat_get_next_bl_params(void)
320d8052a4SVictor Chong {
330d8052a4SVictor Chong 	return get_next_bl_params_from_mem_params_desc();
340d8052a4SVictor Chong }
35