Tegra: early init the delay timer
authorSteven Kao <skao@nvidia.com>
Fri, 21 Oct 2016 06:16:59 +0000 (14:16 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 1 May 2017 22:27:38 +0000 (15:27 -0700)
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>
plat/nvidia/tegra/common/tegra_bl31_setup.c

index 8307af706abb173b37af84a0241c8d960762e223..a61146d03ba478f7b1b4235b181eb1faeca574cd 100644 (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.
         */