plat/mediatek/mt8183/bl31_plat_setup.c
void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
				u_register_t arg2, u_register_t arg3)
{
	struct mtk_bl31_params *arg_from_bl2 = (struct mtk_bl31_params *)arg0;

	static console_16550_t console;
	console_16550_register(UART0_BASE, UART_CLOCK, UART_BAUDRATE, &console);

	NOTICE("MT8183 bl31_setup\n");

	assert(arg_from_bl2 != NULL);
	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 BL31 early platform setup. Here is an opportunity to copy
 * parameters passed by the calling EL (S-EL1 in BL2 & S-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 BL31 early platform setup. Here is an opportunity to copy
parameters passed by the calling EL (S-EL1 in BL2 & S-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 BL31 early platform setup . Here is an opportunity to copy parameters passed by the calling EL ( S - EL1 in BL2 & S - 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)
{
	struct mtk_bl31_params *arg_from_bl2 = (struct mtk_bl31_params *)arg0;
	static console_16550_t console;
	console_16550_register(UART0_BASE, UART_CLOCK, UART_BAUDRATE, &console);
	NOTICE("MT8183 bl31_setup\n");
	assert(arg_from_bl2 != NULL);
	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 ) { struct mtk_bl31_params * arg_from_bl2 = ( struct mtk_bl31_params * ) arg0 ; static console_16550_t console ; console_16550_register ( UART0_BASE , UART_CLOCK , UART_BAUDRATE , & console ) ; NOTICE ( " \n " ) ; assert ( arg_from_bl2 != NULL ) ; 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 BL31 early platform setup.
Perform any BL31 early platform setup .