avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
26
u-boot/arch/arm/mach-zynq/lowlevel_init.S
Normal file
26
u-boot/arch/arm/mach-zynq/lowlevel_init.S
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user