Tegra: early init the delay timer

This patch moves the platform delay timer init to early BL31
platform setup, so that platforms can use the udelay/mdelay
routines in the early init code.

Change-Id: I6fe20b76176ea22589539c180c5b6f9d09eda8de
Signed-off-by: Steven Kao <skao@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
This commit is contained in:
Steven Kao 2016-10-21 14:16:59 +08:00 committed by Varun Wadekar
parent dd454b40df
commit d29d96fb3f

View File

@ -204,6 +204,11 @@ void bl31_early_platform_setup(bl31_params_t *from_bl2,
TEGRA_CONSOLE_BAUDRATE);
}
/*
* Initialize delay timer
*/
tegra_delay_timer_init();
/*
* Do initial security configuration to allow DRAM/device access.
*/
@ -263,11 +268,6 @@ void bl31_platform_setup(void)
/* Initialize the gic cpu and distributor interfaces */
plat_gic_setup();
/*
* Initialize delay timer
*/
tegra_delay_timer_init();
/*
* Setup secondary CPU POR infrastructure.
*/