1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de
6 * Copyright 2009 Freescale Semiconductor, Inc.
17 /* For ifc, elbc, esdhc, espi, all need the SPL without section .resetvec */
18 #if CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
32 __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
33 __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
45 KEEP(*(SORT(__u_boot_list*)));
49 __start___ex_table = .;
50 __ex_table : { *(__ex_table) }
51 __stop___ex_table = .;
57 #ifdef CONFIG_SPL_SKIP_RELOCATE
68 /* For nor and nand is needed the SPL with section .resetvec */
69 #if !CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
70 #if defined(CONFIG_FSL_IFC) /* Restrict bootpg at 4K boundry for IFC */
71 #ifndef BOOT_PAGE_OFFSET
72 #define BOOT_PAGE_OFFSET 0x1000
74 .bootpg IMAGE_TEXT_BASE + BOOT_PAGE_OFFSET :
76 arch/powerpc/cpu/mpc85xx/start.o (.bootpg)
78 #ifndef RESET_VECTOR_OFFSET
79 #define RESET_VECTOR_OFFSET 0x1ffc /* IFC has 8K sram */
81 #elif defined(CONFIG_FSL_ELBC)
82 #define RESET_VECTOR_OFFSET 0xffc /* LBC has 4k sram */
84 #error unknown NAND controller
86 .resetvec IMAGE_TEXT_BASE + RESET_VECTOR_OFFSET : {
91 #ifndef CONFIG_SPL_SKIP_RELOCATE
93 * Make sure that the bss segment isn't linked at 0x0, otherwise its
94 * address won't be updated during relocation fixups.