plat/rockchip/common/bl31_plat_setup.c
/*******************************************************************************
 * Perform any BL3-1 early platform setup. Here is an opportunity to copy
 * parameters passed by the calling EL (S-EL1 in BL2 & EL3 in BL1) before they
 * are lost (potentially). This needs to be done before the MMU is initialized
 * so that the memory layout can be used while creating page tables.
 * BL2 has flushed this information to memory, so we are guaranteed to pick up
 * good data.
 ******************************************************************************/
Perform any BL3-1 early platform setup. Here is an opportunity to copy
parameters passed by the calling EL (S-EL1 in BL2 & EL3 in BL1) before they
are lost (potentially). This needs to be done before the MMU is initialized
so that the memory layout can be used while creating page tables.
BL2 has flushed this information to memory, so we are guaranteed to pick up
good data.
Perform any BL3 - 1 early platform setup . Here is an opportunity to copy parameters passed by the calling EL ( S - EL1 in BL2 & EL3 in BL1 ) before they are lost ( potentially ) . This needs to be done before the MMU is initialized so that the memory layout can be used while creating page tables . BL2 has flushed this information to memory so we are guaranteed to pick up good data .
void bl31_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("bl31_setup\n");
	assert(arg_from_bl2);
	assert(arg_from_bl2->h.type == PARAM_BL31);
	assert(arg_from_bl2->h.version >= VERSION_1);
	bl32_ep_info = *arg_from_bl2->bl32_ep_info;
	bl33_ep_info = *arg_from_bl2->bl33_ep_info;
}
void bl31_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 ) ; bl32_ep_info = * arg_from_bl2 -> bl32_ep_info ; bl33_ep_info = * arg_from_bl2 -> bl33_ep_info ; }
Perform any BL3-1 early platform setup.
Perform any BL3 - 1 early platform setup .
/* Passing a NULL context is a critical programming error */