Merge branch 'master' of git://git.denx.de/u-boot-spi
[platform/kernel/u-boot.git] / arch / arm / mach-k3 / lowlevel_init.S
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
4  *      Lokesh Vutla <lokeshvutla@ti.com>
5  */
6
7 #include <linux/linkage.h>
8
9 ENTRY(lowlevel_init)
10
11         mrc     p15, 0, r0, c0, c0, 5           @ Read MPIDR
12         and     r0, #0xff
13         cmp     r0, #0x0
14         bne     park_cpu
15         bx      lr
16 park_cpu:
17         wfi
18         b       park_cpu
19
20 ENDPROC(lowlevel_init)