From: Soby Mathew Date: Tue, 6 Mar 2018 15:22:55 +0000 (+0000) Subject: BL2U: Fix ARM platform timer initilization X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=74847ab203ca1801b450d32a61f3a3cb98adf83b;p=project%2Fbcm63xx%2Fatf.git BL2U: Fix ARM platform timer initilization This issue was detected when testing FWU on Juno. The Timer `timer_ops` was not being initialized before being used by the SDS driver on Juno. This patch adds the call to `generic_delay_timer_init()` during bl2u_early_platform_setup(). This is done generically for all ARM platforms because the cost involved is minimal. Change-Id: I349cf0bd1db68406eb2298b65f9c729f792cabdc Signed-off-by: Soby Mathew --- diff --git a/plat/arm/common/arm_bl2u_setup.c b/plat/arm/common/arm_bl2u_setup.c index cc291fc9..3b8e4aa4 100644 --- a/plat/arm/common/arm_bl2u_setup.c +++ b/plat/arm/common/arm_bl2u_setup.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -37,6 +38,7 @@ void arm_bl2u_early_platform_setup(meminfo_t *mem_layout, void *plat_info) /* Initialize the console to provide early debug support */ console_init(PLAT_ARM_BOOT_UART_BASE, PLAT_ARM_BOOT_UART_CLK_IN_HZ, ARM_CONSOLE_BAUDRATE); + generic_delay_timer_init(); } /*******************************************************************************