1 /* 2 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <arch.h> 8 #include <arch_helpers.h> 9 #include <assert.h> 10 #include <bl_common.h> 11 #include <debug.h> 12 #include <platform_def.h> 13 #include <string.h> 14 15 /******************************************************************************* 16 * Perform any BL3-1 early platform setup, such as console init and deciding on 17 * memory layout. 18 ******************************************************************************/ 19 void bl31_early_platform_setup(bl31_params_t *from_bl2, 20 void *plat_params_from_bl2) 21 { 22 /* There are no parameters from BL2 if BL31 is a reset vector */ 23 assert(from_bl2 == NULL); 24 assert(plat_params_from_bl2 == NULL); 25 } 26 27 void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, 28 u_register_t arg2, u_register_t arg3) 29 { 30 bl31_early_platform_setup((void *)arg0, (void *)arg1); 31 } 32 33 void bl31_plat_arch_setup(void) 34 { 35 /* TODO: Initialize the MMU tables */ 36 } 37 38 void bl31_platform_setup(void) 39 { 40 /* TODO: Initialize the GIC CPU and distributor interfaces */ 41 } 42 43 void platform_mem_init(void) 44 { 45 /* Do nothing for now... */ 46 } 47 48 /* 49 * Empty function to prevent the console from being uninitialized after BL33 is 50 * started and allow us to see messages from BL31. 51 */ 52 void bl31_plat_runtime_setup(void) 53 { 54 } 55 56 /******************************************************************************* 57 * Return a pointer to the 'entry_point_info' structure of the next image 58 * for the security state specified. BL3-3 corresponds to the non-secure 59 * image type while BL3-2 corresponds to the secure image type. A NULL 60 * pointer is returned if the image does not exist. 61 ******************************************************************************/ 62 entry_point_info_t *bl31_plat_get_next_image_ep_info(uint32_t type) 63 { 64 return NULL; 65 } 66