blob: 5f8343fe6287432463a9c4bba4962ac4df0a3dd3 [file] [log] [blame]
Sascha Hauer5252ed92008-03-26 20:40:36 +01001/*
2 * armboot - Startup Code for OMP2420/ARM1136 CPU-core
3 *
4 * Copyright (c) 2004 Texas Instruments <r-woodruff2@ti.com>
5 *
6 * Copyright (c) 2001 Marius Gröger <mag@sysgo.de>
7 * Copyright (c) 2002 Alex Züpke <azu@sysgo.de>
Detlev Zundel792a09e2009-05-13 10:54:10 +02008 * Copyright (c) 2002 Gary Jennejohn <garyj@denx.de>
Sascha Hauer5252ed92008-03-26 20:40:36 +01009 * Copyright (c) 2003 Richard Woodruff <r-woodruff2@ti.com>
10 * Copyright (c) 2003 Kshitij <kshitij@ti.com>
11 *
12 * See file CREDITS for list of people who contributed to this
13 * project.
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of
18 * the License, or (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 * MA 02111-1307 USA
29 */
30
31#include <asm/arch/omap2420.h>
32
33.globl reset_cpu
34reset_cpu:
35 ldr r1, rstctl /* get addr for global reset reg */
36 mov r3, #0x2 /* full reset pll+mpu */
37 str r3, [r1] /* force reset */
38 mov r0, r0
39_loop_forever:
40 b _loop_forever
41rstctl:
42 .word PM_RSTCTRL_WKUP