mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
microblaze: Do not call timer init that early
Timer needs to be converted to DM but as of now it can't be called so early because intc controller is not ready. Call it later in board_r.c. Before this patch timer_init is called twice which is wrong. The patch is blocking initialization before relocation. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0df9bea434
commit
35670665d6
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ int timer_init (void)
|
|||
|
||||
debug("TIMER: Initialization\n");
|
||||
|
||||
/* Do not init before relocation */
|
||||
if (!(gd->flags & GD_FLG_RELOC))
|
||||
return 0;
|
||||
|
||||
node = fdt_node_offset_by_compatible(blob, node,
|
||||
"xlnx,xps-timer-1.00.a");
|
||||
if (node != -1) {
|
||||
|
|
Loading…
Reference in a new issue