]> git.ipfire.org Git - people/ms/u-boot.git/blame - 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
CommitLineData
399e5ae0
MK
1/*
2 * Copyright (c) 2009 Samsung Electronics.
3 * Minkyu Kang <mk7.kang@samsung.com>
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
399e5ae0
MK
6 */
7
8#include <asm/arch/cpu.h>
74236aca 9#include <linux/linkage.h>
399e5ae0
MK
10
11#define S5PC100_SWRESET 0xE0200000
12#define S5PC110_SWRESET 0xE0102000
13
74236aca 14ENTRY(reset_cpu)
d93d0f0c 15 ldr r1, =S5PC100_PRO_ID
399e5ae0
MK
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
25110: /* S5PC110 */
26 ldr r1, =S5PC110_SWRESET
27 mov r2, #1
28200:
29 str r2, [r1]
30_loop_forever:
31 b _loop_forever
74236aca 32ENDPROC(reset_cpu)