2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
4 * SPDX-License-Identifier: GPL-2.0+
10 /* Save the parameter pass in by previous boot loader */
11 .global save_boot_params
13 /* save the parameter here */
16 * Setup stack for exception, which is located
17 * at the end of on-chip RAM. We don't expect exception prior to
18 * relocation and if that happens, we won't worry -- it will overide
19 * global data region as the code will goto reset. After relocation,
20 * this region won't be used by other part of program.
23 ldr r0, =(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE)
24 ldr r1, =IRQ_STACK_START_IN
30 /* Set up the platform, once the cpu has been initialized */
35 #ifdef CONFIG_SPL_BUILD
37 * SPL : configure the remap (L3 NIC-301 GPV)
38 * so the on-chip RAM at lower memory instead ROM.
40 ldr r0, =SOCFPGA_L3REGS_ADDRESS
45 * U-Boot : configure the remap (L3 NIC-301 GPV)
46 * so the SDRAM at lower memory instead on-chip RAM.
48 ldr r0, =SOCFPGA_L3REGS_ADDRESS
52 /* Private components security */
55 * U-Boot : configure private timer, global timer and cpu
56 * component access as non secure for kernel stage (as required
65 #endif /* #ifdef CONFIG_SPL_BUILD */