Added the lowlevel_init to enable the Neon instructions. Initially the u-boot was causing undefined instruction exception if loaded through tcl, and working fine if loaded through FSBL. The exception was causing in convertion formula of given time to ticks. It was because, the Neon instructions were disabled and hence causing the undefined exception. In FSBL case, the FSBL was enabling the Neon instructions. Hence, added the lowlevel_init to enable the Neon instructions. Also enable neon instructions for non-xilinx toolchain. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Acked-by: Radhey Shyam Pandey <radheys@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>master
parent
92fa7f53f1
commit
c08cfc2d2c
@ -0,0 +1,7 @@ |
||||
#
|
||||
# Copyright (C) 2013 - 2015 Xilinx, Inc. All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Allow NEON instructions (needed for lowlevel_init.S with GNU toolchain)
|
||||
PLATFORM_RELFLAGS += -mfpu=neon
|
@ -0,0 +1,26 @@ |
||||
/* |
||||
* Copyright (C) 2013 Xilinx, Inc. All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
#include <asm-offsets.h> |
||||
#include <config.h> |
||||
#include <linux/linkage.h> |
||||
|
||||
ENTRY(lowlevel_init) |
||||
|
||||
/* Enable the the VFP */ |
||||
mrc p15, 0, r1, c1, c0, 2 |
||||
orr r1, r1, #(0x3 << 20) |
||||
orr r1, r1, #(0x3 << 20) |
||||
mcr p15, 0, r1, c1, c0, 2 |
||||
isb |
||||
fmrx r1, FPEXC |
||||
orr r1,r1, #(1<<30) |
||||
fmxr FPEXC, r1 |
||||
|
||||
/* Move back to caller */ |
||||
mov pc, lr |
||||
|
||||
ENDPROC(lowlevel_init) |
Loading…
Reference in new issue