brcm_image_load.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2019-2020, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <common/bl_common.h>
  7. #include <common/desc_image_load.h>
  8. #include <plat/common/platform.h>
  9. #pragma weak plat_flush_next_bl_params
  10. #pragma weak plat_get_bl_image_load_info
  11. #pragma weak plat_get_next_bl_params
  12. /*******************************************************************************
  13. * This function flushes the data structures so that they are visible
  14. * in memory for the next BL image.
  15. ******************************************************************************/
  16. void plat_flush_next_bl_params(void)
  17. {
  18. flush_bl_params_desc();
  19. }
  20. /*******************************************************************************
  21. * This function returns the list of loadable images.
  22. ******************************************************************************/
  23. struct bl_load_info *plat_get_bl_image_load_info(void)
  24. {
  25. return get_bl_load_info_from_mem_params_desc();
  26. }
  27. /*******************************************************************************
  28. * This function returns the list of executable images.
  29. ******************************************************************************/
  30. struct bl_params *plat_get_next_bl_params(void)
  31. {
  32. bl_params_t *next_bl_params = get_next_bl_params_from_mem_params_desc();
  33. populate_next_bl_params_config(next_bl_params);
  34. return next_bl_params;
  35. }