plat/marvell/a8k/common/mss/mss_bl2_setup.c
/*******************************************************************************
 * Transfer SCP_BL2 from Trusted RAM using the SCP Download protocol.
 * Return 0 on success, -1 otherwise.
 ******************************************************************************/
Transfer SCP_BL2 from Trusted RAM using the SCP Download protocol.
Return 0 on success, -1 otherwise.
Transfer SCP_BL2 from Trusted RAM using the SCP Download protocol . Return 0 on success - 1 otherwise .
int bl2_plat_handle_scp_bl2(image_info_t *scp_bl2_image_info)
{
	int ret;
	INFO("BL2: Initiating SCP_BL2 transfer to SCP\n");
	printf("BL2: Initiating SCP_BL2 transfer to SCP\n");
	plat_delay_timer_init();
	ret = bl2_plat_mmap_init();
	if (ret != 0)
		return ret;
	ret = scp_bootloader_transfer((void *)scp_bl2_image_info->image_base,
		scp_bl2_image_info->image_size);
	if (ret == 0)
		INFO("BL2: SCP_BL2 transferred to SCP\n");
	else
		ERROR("BL2: SCP_BL2 transfer failure\n");
	return ret;
}
int bl2_plat_handle_scp_bl2 ( image_info_t * scp_bl2_image_info ) { int ret ; INFO ( " \n " ) ; printf ( " \n " ) ; plat_delay_timer_init ( ) ; ret = bl2_plat_mmap_init ( ) ; if ( ret != 0 ) return ret ; ret = scp_bootloader_transfer ( ( void * ) scp_bl2_image_info -> image_base , scp_bl2_image_info -> image_size ) ; if ( ret == 0 ) INFO ( " \n " ) ; else ERROR ( " \n " ) ; return ret ; }
Transfer SCP_BL2 from Trusted RAM using the SCP Download protocol.
Transfer SCP_BL2 from Trusted RAM using the SCP Download protocol .
/* initialize time (for delay functionality) */