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