plat/leo/l1/sp_min/sp_min_setup.c
/*******************************************************************************
 * Perform any BL32 specific platform actions.
 ******************************************************************************/
Perform any BL32 specific platform actions.
Perform any BL32 specific platform actions .
void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1,
				  u_register_t arg2, u_register_t arg3)
{
	struct dt_node_info dt_uart_info;
	int result;
	bl_params_t *params_from_bl2 = (bl_params_t *)arg0;
	write_scr(read_scr() | SCR_AW_BIT);
	assert(params_from_bl2 != NULL);
	assert(params_from_bl2->h.type == PARAM_BL_PARAMS);
	assert(params_from_bl2->h.version >= VERSION_2);
	bl_params_node_t *bl_params = params_from_bl2->head;
	while (bl_params != NULL) {
		if (bl_params->image_id == BL33_IMAGE_ID) {
			bl33_image_ep_info = *bl_params->ep_info;
			break;
		}
		bl_params = bl_params->next_params_info;
	}
	if (dt_open_and_check() < 0) {
		panic();
	}
	if (bsec_probe() != 0) {
		panic();
	}
	if (leomp1_clk_probe() < 0) {
		panic();
	}
	result = dt_get_stdout_uart_info(&dt_uart_info);
	if ((result > 0) && (dt_uart_info.status != 0U)) {
		if (console_leo_register(dt_uart_info.base, 0,
					   LEO_UART_BAUDRATE, &console) ==
		    0) {
			panic();
		}
	}
}
void sp_min_early_platform_setup2 ( u_register_t arg0 , u_register_t arg1 , u_register_t arg2 , u_register_t arg3 ) { struct dt_node_info dt_uart_info ; int result ; bl_params_t * params_from_bl2 = ( bl_params_t * ) arg0 ; write_scr ( read_scr ( ) | SCR_AW_BIT ) ; assert ( params_from_bl2 != NULL ) ; assert ( params_from_bl2 -> h . type == PARAM_BL_PARAMS ) ; assert ( params_from_bl2 -> h . version >= VERSION_2 ) ; bl_params_node_t * bl_params = params_from_bl2 -> head ; while ( bl_params != NULL ) { if ( bl_params -> image_id == BL33_IMAGE_ID ) { bl33_image_ep_info = * bl_params -> ep_info ; break ; } bl_params = bl_params -> next_params_info ; } if ( dt_open_and_check ( ) < 0 ) { panic ( ) ; } if ( bsec_probe ( ) != 0 ) { panic ( ) ; } if ( leomp1_clk_probe ( ) < 0 ) { panic ( ) ; } result = dt_get_stdout_uart_info ( & dt_uart_info ) ; if ( ( result > 0 ) && ( dt_uart_info . status != 0U ) ) { if ( console_leo_register ( dt_uart_info . base , 0 , LEO_UART_BAUDRATE , & console ) == 0 ) { panic ( ) ; } } }
Perform any BL32 specific platform actions.
Perform any BL32 specific platform actions .
/* Imprecise aborts can be masked in NonSecure */ /*
	 * Copy BL33 entry point information.
	 * They are stored in Secure RAM, in BL2's address space.
	 */