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