plat/ti/k3/common/k3_bl31_setup.c
/*******************************************************************************
 * Perform any BL3-1 early platform setup, such as console init and deciding on
 * memory layout.
 ******************************************************************************/
Perform any BL3-1 early platform setup, such as console init and deciding on
memory layout.
Perform any BL3 - 1 early platform setup such as console init and deciding on memory layout .
void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
				u_register_t arg2, u_register_t arg3)
{
	assert(arg0 == 0U);
	assert(arg1 == 0U);
	bl31_console_setup();
#ifdef BL32_BASE
	SET_PARAM_HEAD(&bl32_image_ep_info, PARAM_EP, VERSION_1, 0);
	bl32_image_ep_info.pc = BL32_BASE;
	bl32_image_ep_info.spsr = SPSR_64(MODE_EL1, MODE_SP_ELX,
					  DISABLE_ALL_EXCEPTIONS);
	SET_SECURITY_STATE(bl32_image_ep_info.h.attr, SECURE);
#endif
	SET_PARAM_HEAD(&bl33_image_ep_info, PARAM_EP, VERSION_1, 0);
	bl33_image_ep_info.pc = PRELOADED_BL33_BASE;
	bl33_image_ep_info.spsr = k3_get_spsr_for_bl33_entry();
	SET_SECURITY_STATE(bl33_image_ep_info.h.attr, NON_SECURE);
#ifdef K3_HW_CONFIG_BASE
	bl33_image_ep_info.args.arg0 = (u_register_t)K3_HW_CONFIG_BASE;
	bl33_image_ep_info.args.arg1 = 0U;
	bl33_image_ep_info.args.arg2 = 0U;
	bl33_image_ep_info.args.arg3 = 0U;
#endif
}
void bl31_early_platform_setup2 ( u_register_t arg0 , u_register_t arg1 , u_register_t arg2 , u_register_t arg3 ) { assert ( arg0 == 0U ) ; assert ( arg1 == 0U ) ; bl31_console_setup ( ) ; #ifdef BL32_BASE SET_PARAM_HEAD ( & bl32_image_ep_info , PARAM_EP , VERSION_1 , 0 ) ; bl32_image_ep_info . pc = BL32_BASE ; bl32_image_ep_info . spsr = SPSR_64 ( MODE_EL1 , MODE_SP_ELX , DISABLE_ALL_EXCEPTIONS ) ; SET_SECURITY_STATE ( bl32_image_ep_info . h . attr , SECURE ) ; #endif SET_PARAM_HEAD ( & bl33_image_ep_info , PARAM_EP , VERSION_1 , 0 ) ; bl33_image_ep_info . pc = PRELOADED_BL33_BASE ; bl33_image_ep_info . spsr = k3_get_spsr_for_bl33_entry ( ) ; SET_SECURITY_STATE ( bl33_image_ep_info . h . attr , NON_SECURE ) ; #ifdef K3_HW_CONFIG_BASE bl33_image_ep_info . args . arg0 = ( u_register_t ) K3_HW_CONFIG_BASE ; bl33_image_ep_info . args . arg1 = 0U ; bl33_image_ep_info . args . arg2 = 0U ; bl33_image_ep_info . args . arg3 = 0U ; #endif }
Perform any BL3-1 early platform setup, such as console init and deciding on
 memory layout.
Perform any BL3 - 1 early platform setup such as console init and deciding on memory layout .
/* There are no parameters from BL2 if BL31 is a reset vector */ /* Populate entry point information for BL32 */ /* Populate entry point information for BL33 */ /*
	 * According to the file ``Documentation/arm64/booting.txt`` of the
	 * Linux kernel tree, Linux expects the physical address of the device
	 * tree blob (DTB) in x0, while x1-x3 are reserved for future use and
	 * must be 0.
	 */