xref: /openbmc/u-boot/arch/arm/mach-s5pc1xx/reset.S (revision ad3098f7)
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
14ENTRY(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
25110:	/* S5PC110 */
26	ldr	r1, =S5PC110_SWRESET
27	mov	r2, #1
28200:
29	str	r2, [r1]
30_loop_forever:
31	b	_loop_forever
32ENDPROC(reset_cpu)
33