plat/rockchip/common/sp_min_plat_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)
{
	static console_16550_t console;
	struct rockchip_bl31_params *arg_from_bl2 = (struct rockchip_bl31_params *) arg0;
	void *plat_params_from_bl2 = (void *) arg1;
	params_early_setup(plat_params_from_bl2);
#if COREBOOT
	if (coreboot_serial.type)
		console_16550_register(coreboot_serial.baseaddr,
				       coreboot_serial.input_hertz,
				       coreboot_serial.baud,
				       &console);
#else
	console_16550_register(rockchip_get_uart_base(), PLAT_RK_UART_CLOCK,
			       PLAT_RK_UART_BAUDRATE, &console);
#endif
	VERBOSE("sp_min_setup\n");
	assert(arg_from_bl2);
	assert(arg_from_bl2->h.type == PARAM_BL31);
	assert(arg_from_bl2->h.version >= VERSION_1);
	bl33_ep_info = *arg_from_bl2->bl33_ep_info;
}
void sp_min_early_platform_setup2 ( u_register_t arg0 , u_register_t arg1 , u_register_t arg2 , u_register_t arg3 ) { static console_16550_t console ; struct rockchip_bl31_params * arg_from_bl2 = ( struct rockchip_bl31_params * ) arg0 ; void * plat_params_from_bl2 = ( void * ) arg1 ; params_early_setup ( plat_params_from_bl2 ) ; #if COREBOOT if ( coreboot_serial . type ) console_16550_register ( coreboot_serial . baseaddr , coreboot_serial . input_hertz , coreboot_serial . baud , & console ) ; #else console_16550_register ( rockchip_get_uart_base ( ) , PLAT_RK_UART_CLOCK , PLAT_RK_UART_BAUDRATE , & console ) ; #endif VERBOSE ( " \n " ) ; assert ( arg_from_bl2 ) ; assert ( arg_from_bl2 -> h . type == PARAM_BL31 ) ; assert ( arg_from_bl2 -> h . version >= VERSION_1 ) ; bl33_ep_info = * arg_from_bl2 -> bl33_ep_info ; }
Perform any BL32 specific platform actions.
Perform any BL32 specific platform actions .
/* Passing a NULL context is a critical programming error */