1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2013 - 2015 Xilinx, Inc. All rights reserved.
4 */
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)
26