Yatharth Kochar | f9a0f16 | 2016-09-13 17:07:57 +0100 | [diff] [blame] | 1 | /* |
Soby Mathew | 96a1c6b | 2018-01-15 14:45:33 +0000 | [diff] [blame] | 2 | * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. |
Yatharth Kochar | f9a0f16 | 2016-09-13 17:07:57 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Yatharth Kochar | f9a0f16 | 2016-09-13 17:07:57 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <arm_def.h> |
| 8 | #include <bl_common.h> |
| 9 | #include <desc_image_load.h> |
Soby Mathew | 96a1c6b | 2018-01-15 14:45:33 +0000 | [diff] [blame] | 10 | #include <plat_arm.h> |
Yatharth Kochar | f9a0f16 | 2016-09-13 17:07:57 +0100 | [diff] [blame] | 11 | #include <platform.h> |
| 12 | |
| 13 | |
| 14 | #pragma weak plat_flush_next_bl_params |
| 15 | #pragma weak plat_get_bl_image_load_info |
| 16 | #pragma weak plat_get_next_bl_params |
| 17 | |
| 18 | |
| 19 | /******************************************************************************* |
| 20 | * This function flushes the data structures so that they are visible |
| 21 | * in memory for the next BL image. |
| 22 | ******************************************************************************/ |
| 23 | void plat_flush_next_bl_params(void) |
| 24 | { |
| 25 | flush_bl_params_desc(); |
| 26 | } |
| 27 | |
| 28 | /******************************************************************************* |
| 29 | * This function returns the list of loadable images. |
| 30 | ******************************************************************************/ |
Sandrine Bailleux | b3b6e22 | 2018-07-11 12:44:22 +0200 | [diff] [blame] | 31 | struct bl_load_info *plat_get_bl_image_load_info(void) |
Yatharth Kochar | f9a0f16 | 2016-09-13 17:07:57 +0100 | [diff] [blame] | 32 | { |
| 33 | return get_bl_load_info_from_mem_params_desc(); |
| 34 | } |
| 35 | |
| 36 | /******************************************************************************* |
| 37 | * This function returns the list of executable images. |
| 38 | ******************************************************************************/ |
Sandrine Bailleux | b3b6e22 | 2018-07-11 12:44:22 +0200 | [diff] [blame] | 39 | struct bl_params *plat_get_next_bl_params(void) |
Yatharth Kochar | f9a0f16 | 2016-09-13 17:07:57 +0100 | [diff] [blame] | 40 | { |
Soby Mathew | 96a1c6b | 2018-01-15 14:45:33 +0000 | [diff] [blame] | 41 | bl_params_t *next_bl_params = get_next_bl_params_from_mem_params_desc(); |
| 42 | |
| 43 | populate_next_bl_params_config(next_bl_params); |
| 44 | return next_bl_params; |
Yatharth Kochar | f9a0f16 | 2016-09-13 17:07:57 +0100 | [diff] [blame] | 45 | } |