blob: 2b02a67ed317b1e9e69efda74a483a824096a0b7 [file] [log] [blame]
Fu Weic2f78442017-05-27 21:21:42 +08001/*
Raymond Mao032ba022023-06-28 15:07:15 -07002 * Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved.
Fu Weic2f78442017-05-27 21:21:42 +08003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <common/desc_image_load.h>
Fu Weic2f78442017-05-27 21:21:42 +08008
Raymond Mao032ba022023-06-28 15:07:15 -07009#include "qemu_private.h"
10
Fu Weic2f78442017-05-27 21:21:42 +080011/*******************************************************************************
12 * This function is a wrapper of a common function which flushes the data
13 * structures so that they are visible in memory for the next BL image.
14 ******************************************************************************/
15void plat_flush_next_bl_params(void)
16{
17 flush_bl_params_desc();
Raymond Mao032ba022023-06-28 15:07:15 -070018 qemu_bl2_sync_transfer_list();
Fu Weic2f78442017-05-27 21:21:42 +080019}
20
21/*******************************************************************************
22 * This function is a wrapper of a common function which returns the list of
23 * loadable images.
24 ******************************************************************************/
25bl_load_info_t *plat_get_bl_image_load_info(void)
26{
27 return get_bl_load_info_from_mem_params_desc();
28}
29
30/*******************************************************************************
31 * This function is a wrapper of a common function which returns the data
32 * structures of the next BL image.
33 ******************************************************************************/
34bl_params_t *plat_get_next_bl_params(void)
35{
36 return get_next_bl_params_from_mem_params_desc();
37}