2 * armboot - Startup Code for ARM926EJS CPU-core
4 * Copyright (c) 2003 Texas Instruments
6 * ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------
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>
14 * SPDX-License-Identifier: GPL-2.0+
17 #include <asm-offsets.h>
22 *************************************************************************
24 * Startup Code (reset vector)
26 * do important init only if we don't start from memory!
27 * setup memory and board specific bits prior to relocation.
28 * relocate armboot to ram
31 *************************************************************************
38 * set the cpu to SVC32 mode
46 * we do sys-critical inits only at reboot,
47 * not when booting from ram!
49 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
55 /*------------------------------------------------------------------------------*/
57 .globl c_runtime_cpu_setup
63 *************************************************************************
65 * CPU_init_critical registers
67 * setup important registers
70 *************************************************************************
73 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
75 /* arm_int_generic assumes the ARM boot monitor, or user software,
76 * has initialized the platform
78 mov pc, lr /* back to my caller */