Sheetal Tigadoli | 13680c9 | 2019-12-13 10:39:06 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019-2020, ARM Limited and Contributors. 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 | #pragma weak plat_flush_next_bl_params |
| 12 | #pragma weak plat_get_bl_image_load_info |
| 13 | #pragma weak plat_get_next_bl_params |
| 14 | |
| 15 | /******************************************************************************* |
| 16 | * This function flushes the data structures so that they are visible |
| 17 | * in memory for the next BL image. |
| 18 | ******************************************************************************/ |
| 19 | void plat_flush_next_bl_params(void) |
| 20 | { |
| 21 | flush_bl_params_desc(); |
| 22 | } |
| 23 | |
| 24 | /******************************************************************************* |
| 25 | * This function returns the list of loadable images. |
| 26 | ******************************************************************************/ |
| 27 | struct bl_load_info *plat_get_bl_image_load_info(void) |
| 28 | { |
| 29 | return get_bl_load_info_from_mem_params_desc(); |
| 30 | } |
| 31 | |
| 32 | /******************************************************************************* |
| 33 | * This function returns the list of executable images. |
| 34 | ******************************************************************************/ |
| 35 | struct bl_params *plat_get_next_bl_params(void) |
| 36 | { |
| 37 | bl_params_t *next_bl_params = get_next_bl_params_from_mem_params_desc(); |
| 38 | |
| 39 | populate_next_bl_params_config(next_bl_params); |
| 40 | return next_bl_params; |
| 41 | } |