Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Michal Simek | ac679ae | 2015-01-23 09:45:12 +0100 | [diff] [blame] | 2 | /* |
Michal Simek | 98d0f1f | 2018-01-17 07:37:47 +0100 | [diff] [blame] | 3 | * Copyright (C) 2013 - 2015 Xilinx, Inc. All rights reserved. |
Michal Simek | ac679ae | 2015-01-23 09:45:12 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <asm-offsets.h> |
| 7 | #include <config.h> |
| 8 | #include <linux/linkage.h> |
| 9 | |
| 10 | ENTRY(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 | |
| 25 | ENDPROC(lowlevel_init) |