1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2019 NXP
4  */
5 
6 #if defined(CONFIG_SPL_BUILD)
7 	/*
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
22