plat/arm/common/arm_bl1_setup.c
/*******************************************************************************
 * BL1 specific platform actions shared between ARM standard platforms.
 ******************************************************************************/
BL1 specific platform actions shared between ARM standard platforms.
BL1 specific platform actions shared between ARM standard platforms .
void arm_bl1_early_platform_setup(void)
{
#if !ARM_DISABLE_TRUSTED_WDOG
	sp805_start(ARM_SP805_TWDG_BASE, ARM_TWDG_LOAD_VAL);
#endif
	arm_console_boot_init();
	bl1_tzram_layout.total_base = ARM_BL_RAM_BASE;
	bl1_tzram_layout.total_size = ARM_BL_RAM_SIZE;
#if !LOAD_IMAGE_V2
	bl1_tzram_layout.free_base = ARM_BL_RAM_BASE;
	bl1_tzram_layout.free_size = ARM_BL_RAM_SIZE;
	reserve_mem(&bl1_tzram_layout.free_base,
		    &bl1_tzram_layout.free_size,
		    BL1_RAM_BASE,
		    BL1_RAM_LIMIT - BL1_RAM_BASE);
#endif 
}
void arm_bl1_early_platform_setup ( void ) { #if ! ARM_DISABLE_TRUSTED_WDOG sp805_start ( ARM_SP805_TWDG_BASE , ARM_TWDG_LOAD_VAL ) ; #endif arm_console_boot_init ( ) ; bl1_tzram_layout . total_base = ARM_BL_RAM_BASE ; bl1_tzram_layout . total_size = ARM_BL_RAM_SIZE ; #if ! LOAD_IMAGE_V2 bl1_tzram_layout . free_base = ARM_BL_RAM_BASE ; bl1_tzram_layout . free_size = ARM_BL_RAM_SIZE ; reserve_mem ( & bl1_tzram_layout . free_base , & bl1_tzram_layout . free_size , BL1_RAM_BASE , BL1_RAM_LIMIT - BL1_RAM_BASE ) ; #endif }
BL1 specific platform actions shared between ARM standard platforms.
BL1 specific platform actions shared between ARM standard platforms .
/* Enable watchdog */ /* Initialize the console to provide early debug support */ /* Allow BL1 to see the whole Trusted RAM */ /* Calculate how much RAM BL1 is using and how much remains free */ /* LOAD_IMAGE_V2 */