Victor Chong | 2d9a42d | 2017-08-17 15:21:10 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <bl_common.h> |
| 8 | #include <desc_image_load.h> |
| 9 | #include <platform.h> |
| 10 | |
| 11 | #include "hikey960_private.h" |
| 12 | |
| 13 | /******************************************************************************* |
| 14 | * This function flushes the data structures so that they are visible |
| 15 | * in memory for the next BL image. |
| 16 | ******************************************************************************/ |
| 17 | void plat_flush_next_bl_params(void) |
| 18 | { |
| 19 | flush_bl_params_desc(); |
| 20 | } |
| 21 | |
| 22 | /******************************************************************************* |
| 23 | * This function returns the list of loadable images. |
| 24 | ******************************************************************************/ |
| 25 | bl_load_info_t *plat_get_bl_image_load_info(void) |
| 26 | { |
| 27 | /* Required before loading scp_bl2 */ |
| 28 | hikey960_init_ufs(); |
| 29 | hikey960_io_setup(); |
| 30 | |
| 31 | return get_bl_load_info_from_mem_params_desc(); |
| 32 | } |
| 33 | |
| 34 | /******************************************************************************* |
| 35 | * This function returns the list of executable images. |
| 36 | ******************************************************************************/ |
| 37 | bl_params_t *plat_get_next_bl_params(void) |
| 38 | { |
| 39 | return get_next_bl_params_from_mem_params_desc(); |
| 40 | } |