plat/arm/common/arm_bl31_setup.c
/*******************************************************************************
 * Perform any BL31 platform setup common to ARM standard platforms
 ******************************************************************************/
Perform any BL31 platform setup common to ARM standard platforms
Perform any BL31 platform setup common to ARM standard platforms
void arm_bl31_platform_setup(void)
{
	plat_arm_gic_driver_init();
	plat_arm_gic_init();
#if RESET_TO_BL31
	plat_arm_security_setup();
#if defined(PLAT_ARM_MEM_PROT_ADDR)
	arm_nor_psci_do_dyn_mem_protect();
#endif 
#endif 
	mmio_write_32(ARM_SYS_CNTCTL_BASE + CNTCR_OFF,
			CNTCR_FCREQ(0) | CNTCR_EN);
	arm_configure_sys_timer();
	plat_arm_pwrc_setup();
#if RAS_EXTENSION
	ras_init();
#endif
}
void arm_bl31_platform_setup ( void ) { plat_arm_gic_driver_init ( ) ; plat_arm_gic_init ( ) ; #if RESET_TO_BL31 plat_arm_security_setup ( ) ; #if defined ( PLAT_ARM_MEM_PROT_ADDR ) arm_nor_psci_do_dyn_mem_protect ( ) ; #endif #endif mmio_write_32 ( ARM_SYS_CNTCTL_BASE + CNTCR_OFF , CNTCR_FCREQ ( 0 ) | CNTCR_EN ) ; arm_configure_sys_timer ( ) ; plat_arm_pwrc_setup ( ) ; #if RAS_EXTENSION ras_init ( ) ; #endif }
Perform any BL31 platform setup common to ARM standard platforms
Perform any BL31 platform setup common to ARM standard platforms
/* Initialize the GIC driver, cpu and distributor interfaces */ /*
	 * Do initial security configuration to allow DRAM/device access
	 * (if earlier BL has not already done so).
	 */ /* PLAT_ARM_MEM_PROT_ADDR */ /* RESET_TO_BL31 */ /* Enable and initialize the System level generic timer */ /* Allow access to the System counter timer module */ /* Initialize power controller before setting up topology */