From: Steven Kao Date: Fri, 21 Oct 2016 06:16:59 +0000 (+0800) Subject: Tegra: early init the delay timer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d29d96fb3fbb8900d45e9d3817b7df0366d2ea29;p=project%2Fbcm63xx%2Fatf.git 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 Signed-off-by: Varun Wadekar --- diff --git a/plat/nvidia/tegra/common/tegra_bl31_setup.c b/plat/nvidia/tegra/common/tegra_bl31_setup.c index 8307af70..a61146d0 100644 --- a/plat/nvidia/tegra/common/tegra_bl31_setup.c +++ b/plat/nvidia/tegra/common/tegra_bl31_setup.c @@ -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. */