aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2018-03-06 15:22:55 +0000
committerSoby Mathew <soby.mathew@arm.com>2018-03-07 17:25:28 +0000
commit74847ab203ca1801b450d32a61f3a3cb98adf83b (patch)
tree2491b035d77513729342113de4bcb9d9151f3b3e
parentdbf9f283163e1575fbcd25a64c2313771dfe3bb4 (diff)
downloadtrusted-firmware-a-74847ab203ca1801b450d32a61f3a3cb98adf83b.tar.gz
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 <soby.mathew@arm.com>
-rw-r--r--plat/arm/common/arm_bl2u_setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/arm/common/arm_bl2u_setup.c b/plat/arm/common/arm_bl2u_setup.c
index cc291fc90a..3b8e4aa464 100644
--- a/plat/arm/common/arm_bl2u_setup.c
+++ b/plat/arm/common/arm_bl2u_setup.c
@@ -8,6 +8,7 @@
#include <arm_def.h>
#include <bl_common.h>
#include <console.h>
+#include <generic_delay_timer.h>
#include <plat_arm.h>
#include <platform_def.h>
#include <platform.h>
@@ -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();
}
/*******************************************************************************