1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * armboot - Startup Code for ARM720 CPU-core
5 * Copyright (c) 2001 Marius Gröger <mag@sysgo.de>
6 * Copyright (c) 2002 Alex Züpke <azu@sysgo.de>
9 #include <asm-offsets.h>
13 *************************************************************************
15 * Startup Code (reset vector)
17 * do important init only if we don't start from RAM!
18 * relocate armboot to ram
20 * jump to second stage
22 *************************************************************************
29 * set the cpu to SVC32 mode
37 * we do sys-critical inits only at reboot,
38 * not when booting from ram!
40 #if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && \
41 !defined(CONFIG_SKIP_LOWLEVEL_INIT_ONLY)
47 /*------------------------------------------------------------------------------*/
49 .globl c_runtime_cpu_setup
55 *************************************************************************
57 * CPU_init_critical registers
59 * setup important registers
62 *************************************************************************
65 #if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && \
66 !defined(CONFIG_SKIP_LOWLEVEL_INIT_ONLY)
71 * before relocating, we have to setup RAM timing
72 * because memory timing is board-dependent, you will
73 * find a lowlevel_init.S in your board directory.
79 #endif /* CONFIG_SKIP_LOWLEVEL_INIT */