blob: e5ec9bea55cbc73289d7cc4c0890ecb9488cf6a9 [file] [log] [blame]
Michal Simekac679ae2015-01-23 09:45:12 +01001/*
Michal Simek98d0f1f2018-01-17 07:37:47 +01002 * Copyright (C) 2013 - 2015 Xilinx, Inc. All rights reserved.
Michal Simekac679ae2015-01-23 09:45:12 +01003 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <asm-offsets.h>
8#include <config.h>
9#include <linux/linkage.h>
10
11ENTRY(lowlevel_init)
12
13 /* Enable the the VFP */
14 mrc p15, 0, r1, c1, c0, 2
15 orr r1, r1, #(0x3 << 20)
16 orr r1, r1, #(0x3 << 20)
17 mcr p15, 0, r1, c1, c0, 2
18 isb
19 fmrx r1, FPEXC
20 orr r1,r1, #(1<<30)
21 fmxr FPEXC, r1
22
23 /* Move back to caller */
24 mov pc, lr
25
26ENDPROC(lowlevel_init)