]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/cpu/armv7/s5pc1xx/reset.S
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / cpu / armv7 / s5pc1xx / reset.S
1 /*
2 * Copyright (c) 2009 Samsung Electronics.
3 * Minkyu Kang <mk7.kang@samsung.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8 #include <asm/arch/cpu.h>
9 #include <linux/linkage.h>
10
11 #define S5PC100_SWRESET 0xE0200000
12 #define S5PC110_SWRESET 0xE0102000
13
14 ENTRY(reset_cpu)
15 ldr r1, =S5PC100_PRO_ID
16 ldr r2, [r1]
17 ldr r4, =0x00010000
18 and r4, r2, r4
19 cmp r4, #0
20 bne 110f
21 /* S5PC100 */
22 ldr r1, =S5PC100_SWRESET
23 ldr r2, =0xC100
24 b 200f
25 110: /* S5PC110 */
26 ldr r1, =S5PC110_SWRESET
27 mov r2, #1
28 200:
29 str r2, [r1]
30 _loop_forever:
31 b _loop_forever
32 ENDPROC(reset_cpu)