xref: /openbmc/u-boot/arch/arm/mach-versatile/reset.S (revision cf0bcd7d)
1/*
2 *  armboot - Startup Code for ARM926EJS CPU-core
3 *
4 *  Copyright (c) 2003  Texas Instruments
5 *
6 *  ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------
7 *
8 *  Copyright (c) 2001	Marius Gröger <mag@sysgo.de>
9 *  Copyright (c) 2002	Alex Züpke <azu@sysgo.de>
10 *  Copyright (c) 2002	Gary Jennejohn <garyj@denx.de>
11 *  Copyright (c) 2003	Richard Woodruff <r-woodruff2@ti.com>
12 *  Copyright (c) 2003	Kshitij <kshitij@ti.com>
13 *
14 * SPDX-License-Identifier:	GPL-2.0+
15 */
16
17	.align	5
18.globl reset_cpu
19reset_cpu:
20	ldr	r1, rstctl1	/* get clkm1 reset ctl */
21	mov	r3, #0x0
22	strh	r3, [r1]	/* clear it */
23	mov	r3, #0x8
24	strh	r3, [r1]	/* force dsp+arm reset */
25_loop_forever:
26	b	_loop_forever
27
28rstctl1:
29	.word	0xfffece10
30