blob: fc580b20a469ee685a02ed850a453df5787822d3 [file] [log] [blame]
Ye Li97b41652019-07-12 09:33:52 +00001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2019 NXP
4 */
5
Simon Glass85ed77d2024-09-29 19:49:46 -06006#if defined(CONFIG_XPL_BUILD)
Ye Li97b41652019-07-12 09:33:52 +00007 /*
8 * We use absolute address not PC relative address to jump.
9 * When running SPL on iMX8, the A core starts at address 0, a alias to OCRAM 0x100000,
10 * our linker address for SPL is from 0x100000. So using absolute address can jump to
11 * the OCRAM address from the alias.
12 * The alias only map first 96KB of OCRAM, so this require the SPL size can't beyond 96KB.
13 * But when using SPL DM, the size increase significantly and may exceed 96KB.
14 * That's why we have to jump to OCRAM.
15 */
16
17 ldr x0, =reset
18 br x0
19#else
20 b reset
21#endif