]> git.sur5r.net Git - u-boot/blob - arch/arm/mach-tegra/lowlevel_init.S
ARM: uniphier: move spl_boot_mode() to a separate file
[u-boot] / arch / arm / mach-tegra / lowlevel_init.S
1 /*
2  * SoC-specific setup info
3  *
4  * (C) Copyright 2010,2011
5  * NVIDIA Corporation <www.nvidia.com>
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9
10 #include <config.h>
11 #include <linux/linkage.h>
12
13 #ifdef CONFIG_ARM64
14         .align  5
15 ENTRY(reset_cpu)
16         /* get address for global reset register */
17         ldr     x1, =PRM_RSTCTRL
18         ldr     w3, [x1]
19         /* force reset */
20         orr     w3, w3, #0x10
21         str     w3, [x1]
22         mov     w0, w0
23 1:
24         b       1b
25 ENDPROC(reset_cpu)
26 #else
27         .align  5
28 ENTRY(reset_cpu)
29         ldr     r1, rstctl                      @ get addr for global reset
30                                                 @ reg
31         ldr     r3, [r1]
32         orr     r3, r3, #0x10
33         str     r3, [r1]                        @ force reset
34         mov     r0, r0
35 _loop_forever:
36         b       _loop_forever
37 rstctl:
38         .word   PRM_RSTCTRL
39 ENDPROC(reset_cpu)
40 #endif