blob: bf1fbfd416f0611f5dd3b4631a98e381484687e1 [file] [log] [blame]
Yatharth Kocharf9a0f162016-09-13 17:07:57 +01001/*
Soby Mathew96a1c6b2018-01-15 14:45:33 +00002 * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
Yatharth Kocharf9a0f162016-09-13 17:07:57 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Yatharth Kocharf9a0f162016-09-13 17:07:57 +01005 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <common/bl_common.h>
8#include <common/desc_image_load.h>
9#include <plat/common/platform.h>
10
Soby Mathew96a1c6b2018-01-15 14:45:33 +000011#include <plat_arm.h>
Yatharth Kocharf9a0f162016-09-13 17:07:57 +010012
13#pragma weak plat_flush_next_bl_params
14#pragma weak plat_get_bl_image_load_info
15#pragma weak plat_get_next_bl_params
16
17
18/*******************************************************************************
19 * This function flushes the data structures so that they are visible
20 * in memory for the next BL image.
21 ******************************************************************************/
22void plat_flush_next_bl_params(void)
23{
24 flush_bl_params_desc();
25}
26
27/*******************************************************************************
28 * This function returns the list of loadable images.
29 ******************************************************************************/
Sandrine Bailleuxb3b6e222018-07-11 12:44:22 +020030struct bl_load_info *plat_get_bl_image_load_info(void)
Yatharth Kocharf9a0f162016-09-13 17:07:57 +010031{
32 return get_bl_load_info_from_mem_params_desc();
33}
34
35/*******************************************************************************
36 * This function returns the list of executable images.
37 ******************************************************************************/
Sandrine Bailleuxb3b6e222018-07-11 12:44:22 +020038struct bl_params *plat_get_next_bl_params(void)
Yatharth Kocharf9a0f162016-09-13 17:07:57 +010039{
Soby Mathew96a1c6b2018-01-15 14:45:33 +000040 bl_params_t *next_bl_params = get_next_bl_params_from_mem_params_desc();
41
42 populate_next_bl_params_config(next_bl_params);
43 return next_bl_params;
Yatharth Kocharf9a0f162016-09-13 17:07:57 +010044}