"Das U-Boot" Source Tree

arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD

Use the new symbol to refer to any 'SPL' build, including TPL and VPL

Signed-off-by: Simon Glass <sjg@chromium.org>

authored by

Simon Glass and committed by
Tom Rini
bef9fdbe ac644df9

+439 -439
+3 -3
arch/arm/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_ARCH_TEGRA),yy) 3 + ifeq ($(CONFIG_XPL_BUILD)$(CONFIG_ARCH_TEGRA),yy) 4 4 CONFIG_CPU_V7A= 5 5 CONFIG_CPU_ARM720T=y 6 6 endif ··· 24 24 25 25 # On Tegra systems we must build SPL for the armv4 core on the device 26 26 # but otherwise we can use the value in CONFIG_SYS_ARM_ARCH 27 - ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_ARCH_TEGRA),yy) 27 + ifeq ($(CONFIG_XPL_BUILD)$(CONFIG_ARCH_TEGRA),yy) 28 28 arch-y += -D__LINUX_ARM_ARCH__=4 29 29 else 30 30 arch-y += -D__LINUX_ARM_ARCH__=$(CONFIG_SYS_ARM_ARCH) ··· 106 106 107 107 head-y := arch/arm/cpu/$(CPU)/start.o 108 108 109 - ifeq ($(CONFIG_SPL_BUILD),y) 109 + ifeq ($(CONFIG_XPL_BUILD),y) 110 110 ifeq ($(CONFIG_SYS_SOC)$(CONFIG_SPL_FRAMEWORK),"mxs") 111 111 head-y := arch/arm/cpu/arm926ejs/mxs/start.o 112 112 endif
+3 -3
arch/arm/config.mk
··· 99 99 ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS))) 100 100 # This file is parsed many times, so the string may get added multiple 101 101 # times. Also, the prefix needs to be different based on whether 102 - # CONFIG_SPL_BUILD is defined or not. 'filter-out' the existing entry 102 + # CONFIG_XPL_BUILD is defined or not. 'filter-out' the existing entry 103 103 # before adding the correct one. 104 104 PLATFORM_LIBS := arch/arm/lib/eabi_compat.o \ 105 105 $(filter-out arch/arm/lib/eabi_compat.o, $(PLATFORM_LIBS)) ··· 126 126 endif 127 127 endif 128 128 129 - ifneq ($(CONFIG_SPL_BUILD),y) 129 + ifneq ($(CONFIG_XPL_BUILD),y) 130 130 # Check that only R_ARM_RELATIVE relocations are generated. 131 131 INPUTS-y += checkarmreloc 132 132 # The movt / movw can hardcode 16 bit parts of the addresses in the ··· 160 160 ifdef CONFIG_MACH_IMX 161 161 ifneq ($(CONFIG_IMX_CONFIG),"") 162 162 ifdef CONFIG_SPL 163 - ifndef CONFIG_SPL_BUILD 163 + ifndef CONFIG_XPL_BUILD 164 164 INPUTS-y += SPL 165 165 endif 166 166 else
+1 -1
arch/arm/cpu/arm11/Makefile
··· 5 5 6 6 obj-y = cpu.o 7 7 8 - ifneq ($(CONFIG_SPL_BUILD),y) 8 + ifneq ($(CONFIG_XPL_BUILD),y) 9 9 obj-$(CONFIG_EFI_LOADER) += sctlr.o 10 10 endif
+1 -1
arch/arm/cpu/arm1176/start.S
··· 65 65 * When booting from NAND - it has definitely been a reset, so, no need 66 66 * to flush caches and disable the MMU 67 67 */ 68 - #ifndef CONFIG_SPL_BUILD 68 + #ifndef CONFIG_XPL_BUILD 69 69 /* 70 70 * flush v4 I/D caches 71 71 */
+1 -1
arch/arm/cpu/arm926ejs/Makefile
··· 6 6 extra-y = start.o 7 7 obj-y = cpu.o cache.o 8 8 9 - ifdef CONFIG_SPL_BUILD 9 + ifdef CONFIG_XPL_BUILD 10 10 ifdef CONFIG_SPL_NO_CPU_SUPPORT 11 11 extra-y := 12 12 endif
+2 -2
arch/arm/cpu/arm926ejs/mxs/Makefile
··· 3 3 # (C) Copyright 2000-2006 4 4 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 5 6 - extra-$(CONFIG_SPL_BUILD) := start.o 6 + extra-$(CONFIG_XPL_BUILD) := start.o 7 7 8 8 obj-y = clock.o mxs.o iomux.o timer.o 9 9 10 - ifdef CONFIG_SPL_BUILD 10 + ifdef CONFIG_XPL_BUILD 11 11 obj-y += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o 12 12 endif 13 13
+1 -1
arch/arm/cpu/arm926ejs/sunxi/config.mk
··· 1 1 # Build a combined spl + u-boot image 2 2 ifdef CONFIG_SPL 3 - ifndef CONFIG_SPL_BUILD 3 + ifndef CONFIG_XPL_BUILD 4 4 ALL-y += u-boot-sunxi-with-spl.bin 5 5 endif 6 6 endif
+1 -1
arch/arm/cpu/armv7/Makefile
··· 12 12 13 13 obj-$(CONFIG_SYS_ARM_MPU) += mpu_v7r.o 14 14 15 - ifneq ($(CONFIG_SPL_BUILD),y) 15 + ifneq ($(CONFIG_XPL_BUILD),y) 16 16 obj-$(CONFIG_EFI_LOADER) += sctlr.o 17 17 obj-$(CONFIG_ARMV7_NONSEC) += exception_level.o 18 18 endif
+1 -1
arch/arm/cpu/armv7/cpu.c
··· 32 32 * 33 33 * we turn off caches etc ... 34 34 */ 35 - #ifndef CONFIG_SPL_BUILD 35 + #ifndef CONFIG_XPL_BUILD 36 36 disable_interrupts(); 37 37 #endif 38 38
+2 -2
arch/arm/cpu/armv7/lowlevel_init.S
··· 26 26 /* 27 27 * Setup a temporary stack. Global data is not available yet. 28 28 */ 29 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK) 29 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_STACK) 30 30 ldr sp, =CONFIG_SPL_STACK 31 31 #else 32 32 ldr sp, =SYS_INIT_SP_ADDR ··· 39 39 * Set up global data for boards that still need it. This will be 40 40 * removed soon. 41 41 */ 42 - #ifdef CONFIG_SPL_BUILD 42 + #ifdef CONFIG_XPL_BUILD 43 43 ldr r9, =gdata 44 44 #else 45 45 sub sp, sp, #GD_SIZE
+1 -1
arch/arm/cpu/armv7/s5p-common/Makefile
··· 8 8 obj-$(CONFIG_S5P4418_ONEWIRE) += pwm.o 9 9 else 10 10 obj-y += cpu_info.o 11 - ifndef CONFIG_SPL_BUILD 11 + ifndef CONFIG_XPL_BUILD 12 12 obj-y += timer.o 13 13 obj-y += sromc.o 14 14 endif
+1 -1
arch/arm/cpu/armv7/start.S
··· 279 279 orr r2, r4, r2 @ r2 has combined CPU variant + revision 280 280 281 281 /* Early stack for ERRATA that needs into call C code */ 282 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK) 282 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_STACK) 283 283 ldr r0, =(CONFIG_SPL_STACK) 284 284 #else 285 285 ldr r0, =(SYS_INIT_SP_ADDR)
+2 -2
arch/arm/cpu/armv7/sunxi/Makefile
··· 12 12 obj-$(CONFIG_MACH_SUN6I) += sram.o 13 13 obj-$(CONFIG_MACH_SUN8I) += sram.o 14 14 15 - ifndef CONFIG_SPL_BUILD 15 + ifndef CONFIG_XPL_BUILD 16 16 obj-$(CONFIG_ARMV7_PSCI) += psci.o 17 17 endif 18 18 19 - ifdef CONFIG_SPL_BUILD 19 + ifdef CONFIG_XPL_BUILD 20 20 obj-y += fel_utils.o 21 21 endif
+3 -3
arch/arm/cpu/armv8/Makefile
··· 13 13 obj-y += cache_v8.o 14 14 obj-y += cache.o 15 15 endif 16 - ifdef CONFIG_SPL_BUILD 16 + ifdef CONFIG_XPL_BUILD 17 17 obj-$(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) += exceptions.o 18 18 else 19 19 obj-y += exceptions.o ··· 27 27 obj-y += cpu-dt.o 28 28 obj-$(CONFIG_ARM_SMCCC) += smccc-call.o 29 29 30 - ifndef CONFIG_SPL_BUILD 30 + ifndef CONFIG_XPL_BUILD 31 31 obj-$(CONFIG_ARMV8_SPIN_TABLE) += spin_table.o spin_table_v8.o 32 32 else 33 33 obj-$(CONFIG_ARCH_SUNXI) += fel_utils.o 34 34 endif 35 35 obj-$(CONFIG_$(SPL_)ARMV8_SEC_FIRMWARE_SUPPORT) += sec_firmware.o sec_firmware_asm.o 36 36 37 - ifdef CONFIG_SPL_BUILD 37 + ifdef CONFIG_XPL_BUILD 38 38 obj-$(CONFIG_SPL_RECOVER_DATA_SECTION) += spl_data.o 39 39 endif 40 40
+1 -1
arch/arm/cpu/armv8/cache_v8.c
··· 1016 1016 * running however really wants to have dcache and the MMU active. Check that 1017 1017 * everything is sane and give the developer a hint if it isn't. 1018 1018 */ 1019 - #ifndef CONFIG_SPL_BUILD 1019 + #ifndef CONFIG_XPL_BUILD 1020 1020 #error Please describe your MMU layout in CONFIG_SYS_MEM_MAP and enable dcache. 1021 1021 #endif 1022 1022
+1 -1
arch/arm/cpu/armv8/fsl-layerscape/Makefile
··· 5 5 obj-y += cpu.o 6 6 obj-y += lowlevel.o 7 7 obj-y += soc.o 8 - ifndef CONFIG_SPL_BUILD 8 + ifndef CONFIG_XPL_BUILD 9 9 obj-$(CONFIG_MP) += mp.o spintable.o 10 10 obj-$(CONFIG_OF_LIBFDT) += fdt.o 11 11 endif
+7 -7
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
··· 122 122 { CFG_SYS_FSL_DRAM_BASE1, CFG_SYS_FSL_DRAM_BASE1, 123 123 CFG_SYS_FSL_DRAM_SIZE1, 124 124 #if defined(CONFIG_TFABOOT) || \ 125 - (defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)) 125 + (defined(CONFIG_SPL) && !defined(CONFIG_XPL_BUILD)) 126 126 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 127 127 #else /* Start with nGnRnE and PXN and UXN to prevent speculative access */ 128 128 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_PXN | PTE_BLOCK_UXN | ··· 181 181 { CFG_SYS_FSL_DRAM_BASE1, CFG_SYS_FSL_DRAM_BASE1, 182 182 CFG_SYS_FSL_DRAM_SIZE1, 183 183 #if defined(CONFIG_TFABOOT) || \ 184 - (defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)) 184 + (defined(CONFIG_SPL) && !defined(CONFIG_XPL_BUILD)) 185 185 PTE_BLOCK_MEMTYPE(MT_NORMAL) | 186 186 #else /* Start with nGnRnE and PXN and UXN to prevent speculative access */ 187 187 PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_PXN | PTE_BLOCK_UXN | ··· 1055 1055 { 1056 1056 int error = 0; 1057 1057 1058 - #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD) 1058 + #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_XPL_BUILD) 1059 1059 error = fsl_mc_ldpaa_init(bis); 1060 1060 #endif 1061 1061 return error; ··· 1285 1285 { 1286 1286 phys_size_t ram_top = ram_size; 1287 1287 1288 - #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD) 1288 + #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_XPL_BUILD) 1289 1289 ram_top = mc_get_dram_block_size(); 1290 1290 if (ram_top > ram_size) 1291 1291 return ram_size + ram_top; ··· 1381 1381 if (i > 0) 1382 1382 ret = 0; 1383 1383 1384 - #if defined(CONFIG_RESV_RAM) && !defined(CONFIG_SPL_BUILD) 1384 + #if defined(CONFIG_RESV_RAM) && !defined(CONFIG_XPL_BUILD) 1385 1385 /* Assign memory for MC */ 1386 1386 #ifdef CONFIG_SYS_DDR_BLOCK3_BASE 1387 1387 if (gd->bd->bi_dram[2].size >= ··· 1467 1467 } 1468 1468 #endif /* CFG_SYS_MEM_RESERVE_SECURE */ 1469 1469 1470 - #if defined(CONFIG_RESV_RAM) && !defined(CONFIG_SPL_BUILD) 1470 + #if defined(CONFIG_RESV_RAM) && !defined(CONFIG_XPL_BUILD) 1471 1471 /* Assign memory for MC */ 1472 1472 #ifdef CONFIG_SYS_DDR_BLOCK3_BASE 1473 1473 if (gd->bd->bi_dram[2].size >= ··· 1624 1624 #ifdef CONFIG_SYS_FSL_DDR 1625 1625 fsl_initdram(); 1626 1626 #if (!defined(CONFIG_SPL) && !defined(CONFIG_TFABOOT)) || \ 1627 - defined(CONFIG_SPL_BUILD) 1627 + defined(CONFIG_XPL_BUILD) 1628 1628 /* This will break-before-make MMU for DDR */ 1629 1629 update_early_mmu_table(); 1630 1630 #endif
+1 -1
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
··· 93 93 94 94 #define HWA_CGA_M1_CLK_SEL 0xe0000000 95 95 #define HWA_CGA_M1_CLK_SHIFT 29 96 - #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD) 96 + #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_XPL_BUILD) 97 97 rcw_tmp = in_be32(&gur->rcwsr[7]); 98 98 switch ((rcw_tmp & HWA_CGA_M1_CLK_SEL) >> HWA_CGA_M1_CLK_SHIFT) { 99 99 case 2:
+3 -3
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
··· 25 25 static u8 serdes3_prtcl_map[SERDES_PRCTL_COUNT]; 26 26 #endif 27 27 28 - #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD) 28 + #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_XPL_BUILD) 29 29 #if defined(CONFIG_ARCH_LX2160A) || defined(CONFIG_ARCH_LX2162A) 30 30 int xfi_dpmac[XFI14 + 1]; 31 31 int sgmii_dpmac[SGMII18 + 1]; ··· 162 162 debug("Unknown SerDes lane protocol %d\n", lane_prtcl); 163 163 else { 164 164 serdes_prtcl_map[lane_prtcl] = 1; 165 - #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD) 165 + #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_XPL_BUILD) 166 166 #if defined(CONFIG_ARCH_LX2160A) || defined(CONFIG_ARCH_LX2162A) 167 167 if (lane_prtcl >= XFI1 && lane_prtcl <= XFI14) 168 168 wriop_init_dpmac(sd, xfi_dpmac[lane_prtcl], ··· 553 553 554 554 void fsl_serdes_init(void) 555 555 { 556 - #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD) 556 + #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_XPL_BUILD) 557 557 int i , j; 558 558 559 559 #if defined(CONFIG_ARCH_LX2160A) || defined(CONFIG_ARCH_LX2162A)
+3 -3
arch/arm/cpu/armv8/fsl-layerscape/icid.c
··· 23 23 out_be32((u32 *)(tbl[i].reg_addr), tbl[i].reg); 24 24 } 25 25 26 - #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD) 26 + #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_XPL_BUILD) 27 27 static void set_fman_icids(struct fman_icid_id_table *tbl, int size) 28 28 { 29 29 int i; ··· 41 41 /* setup general icid offsets */ 42 42 set_icid(icid_tbl, icid_tbl_sz); 43 43 44 - #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD) 44 + #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_XPL_BUILD) 45 45 set_fman_icids(fman_icid_tbl, fman_icid_tbl_sz); 46 46 #endif 47 47 } 48 48 49 - #ifndef CONFIG_SPL_BUILD 49 + #ifndef CONFIG_XPL_BUILD 50 50 int fdt_set_iommu_prop(void *blob, int off, int smmu_ph, u32 *ids, int num_ids) 51 51 { 52 52 int i, ret;
+3 -3
arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S
··· 183 183 #endif 184 184 185 185 /* Initialize GIC Secure Bank Status */ 186 - #if !defined(CONFIG_SPL_BUILD) 186 + #if !defined(CONFIG_XPL_BUILD) 187 187 #if defined(CONFIG_GICV2) || defined(CONFIG_GICV3) 188 188 branch_if_slave x0, 1f 189 189 bl get_gic_offset ··· 306 306 #endif 307 307 308 308 #if !defined(CONFIG_TFABOOT) && \ 309 - (defined(CONFIG_FSL_LSCH2) && !defined(CONFIG_SPL_BUILD)) 309 + (defined(CONFIG_FSL_LSCH2) && !defined(CONFIG_XPL_BUILD)) 310 310 bl fsl_ocram_init 311 311 #endif 312 312 ··· 314 314 ret 315 315 ENDPROC(lowlevel_init) 316 316 317 - #if defined(CONFIG_FSL_LSCH2) && !defined(CONFIG_SPL_BUILD) 317 + #if defined(CONFIG_FSL_LSCH2) && !defined(CONFIG_XPL_BUILD) 318 318 ENTRY(fsl_ocram_init) 319 319 mov x28, lr /* Save LR */ 320 320 bl fsl_clear_ocram
+1 -1
arch/arm/cpu/armv8/fsl-layerscape/ls1043_ids.c
··· 60 60 61 61 int icid_tbl_sz = ARRAY_SIZE(icid_tbl); 62 62 63 - #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD) 63 + #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_XPL_BUILD) 64 64 struct fman_icid_id_table fman_icid_tbl[] = { 65 65 /* port id, icid */ 66 66 SET_FMAN_ICID_ENTRY(0x02, FSL_DPAA1_STREAM_ID_END),
+1 -1
arch/arm/cpu/armv8/fsl-layerscape/ls1046_ids.c
··· 59 59 60 60 int icid_tbl_sz = ARRAY_SIZE(icid_tbl); 61 61 62 - #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD) 62 + #if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_XPL_BUILD) 63 63 struct fman_icid_id_table fman_icid_tbl[] = { 64 64 /* port id, icid */ 65 65 SET_FMAN_ICID_ENTRY(0x02, FSL_DPAA1_STREAM_ID_END),
+2 -2
arch/arm/cpu/armv8/fsl-layerscape/spl.c
··· 41 41 return 0; 42 42 } 43 43 44 - #ifdef CONFIG_SPL_BUILD 44 + #ifdef CONFIG_XPL_BUILD 45 45 46 46 void spl_board_init(void) 47 47 { ··· 136 136 return 1; 137 137 } 138 138 #endif /* CONFIG_SPL_OS_BOOT */ 139 - #endif /* CONFIG_SPL_BUILD */ 139 + #endif /* CONFIG_XPL_BUILD */
+4 -4
arch/arm/cpu/armv8/start.S
··· 58 58 .globl save_boot_params_ret 59 59 save_boot_params_ret: 60 60 61 - #if CONFIG_POSITION_INDEPENDENT && !defined(CONFIG_SPL_BUILD) 61 + #if CONFIG_POSITION_INDEPENDENT && !defined(CONFIG_XPL_BUILD) 62 62 /* Verify that we're 4K aligned. */ 63 63 adr x0, _start 64 64 ands x0, x0, #0xfff ··· 104 104 pie_fixup_done: 105 105 #endif 106 106 107 - #if defined(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) || !defined(CONFIG_SPL_BUILD) 107 + #if defined(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) || !defined(CONFIG_XPL_BUILD) 108 108 .macro set_vbar, regname, reg 109 109 msr \regname, \reg 110 110 .endm ··· 174 174 /* Processor specific initialization */ 175 175 bl lowlevel_init 176 176 177 - #if defined(CONFIG_ARMV8_SPIN_TABLE) && !defined(CONFIG_SPL_BUILD) 177 + #if defined(CONFIG_ARMV8_SPIN_TABLE) && !defined(CONFIG_XPL_BUILD) 178 178 branch_if_master x0, master_cpu 179 179 b spin_table_secondary_jump 180 180 /* never return */ ··· 354 354 /*-----------------------------------------------------------------------*/ 355 355 356 356 ENTRY(c_runtime_cpu_setup) 357 - #if defined(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) || !defined(CONFIG_SPL_BUILD) 357 + #if defined(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) || !defined(CONFIG_XPL_BUILD) 358 358 /* Relocate vBAR */ 359 359 adr x0, vectors 360 360 switch_el x1, 3f, 2f, 1f
+1 -1
arch/arm/dts/imx8qm-u-boot.dtsi
··· 10 10 }; 11 11 12 12 &binman { 13 - #ifdef CONFIG_SPL_BUILD 13 + #ifdef CONFIG_XPL_BUILD 14 14 u-boot-spl-ddr { 15 15 align = <4>; 16 16 align-size = <4>;
+1 -1
arch/arm/dts/imx8qxp-u-boot.dtsi
··· 10 10 }; 11 11 12 12 &binman { 13 - #ifdef CONFIG_SPL_BUILD 13 + #ifdef CONFIG_XPL_BUILD 14 14 u-boot-spl-ddr { 15 15 align = <4>; 16 16 align-size = <4>;
+3 -3
arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
··· 12 12 #include <asm/armv8/sec_firmware.h> 13 13 14 14 struct icid_id_table { 15 - #ifndef CONFIG_SPL_BUILD 15 + #ifndef CONFIG_XPL_BUILD 16 16 const char *compat; 17 17 phys_addr_t compat_addr; 18 18 #endif 19 19 phys_addr_t reg_addr; 20 20 u32 reg; 21 - #ifndef CONFIG_SPL_BUILD 21 + #ifndef CONFIG_XPL_BUILD 22 22 u32 id; 23 23 #endif 24 24 bool le; ··· 35 35 void set_icids(void); 36 36 void fdt_fixup_icid(void *blob); 37 37 38 - #ifdef CONFIG_SPL_BUILD 38 + #ifdef CONFIG_XPL_BUILD 39 39 #define SET_ICID_ENTRY(name, idA, regA, addr, compataddr, _le) \ 40 40 { .reg = regA, \ 41 41 .reg_addr = addr, \
+1 -1
arch/arm/include/asm/arch-imx8/boot0.h
··· 3 3 * Copyright 2019 NXP 4 4 */ 5 5 6 - #if defined(CONFIG_SPL_BUILD) 6 + #if defined(CONFIG_XPL_BUILD) 7 7 /* 8 8 * We use absolute address not PC relative address to jump. 9 9 * When running SPL on iMX8, the A core starts at address 0, a alias to OCRAM 0x100000,
+1 -1
arch/arm/include/asm/arch-lpc32xx/sys_proto.h
··· 16 16 void lpc32xx_i2c_init(unsigned int devnum); 17 17 void lpc32xx_ssp_init(void); 18 18 void lpc32xx_usb_init(void); 19 - #if defined(CONFIG_SPL_BUILD) 19 + #if defined(CONFIG_XPL_BUILD) 20 20 void ddr_init(const struct emc_dram_settings *dram); 21 21 #endif 22 22 #endif /* _LPC32XX_SYS_PROTO_H */
+1 -1
arch/arm/include/asm/arch-mx6/litesom.h
··· 8 8 9 9 int litesom_mmc_init(struct bd_info *bis); 10 10 11 - #ifdef CONFIG_SPL_BUILD 11 + #ifdef CONFIG_XPL_BUILD 12 12 void litesom_init_f(void); 13 13 #endif 14 14
+2 -2
arch/arm/include/asm/arch-mx6/mx6-ddr.h
··· 5 5 #ifndef __ASM_ARCH_MX6_DDR_H__ 6 6 #define __ASM_ARCH_MX6_DDR_H__ 7 7 8 - #ifndef CONFIG_SPL_BUILD 8 + #ifndef CONFIG_XPL_BUILD 9 9 #ifdef CONFIG_MX6Q 10 10 #include "mx6q-ddr.h" 11 11 #else ··· 488 488 const struct mx6_mmdc_calibration *, 489 489 const void *); 490 490 491 - #endif /* CONFIG_SPL_BUILD */ 491 + #endif /* CONFIG_XPL_BUILD */ 492 492 493 493 #define MX6_MMDC_P0_MDCTL 0x021b0000 494 494 #define MX6_MMDC_P0_MDPDC 0x021b0004
+1 -1
arch/arm/include/asm/arch-mxs/sys_proto.h
··· 14 14 int mxsmmc_initialize(struct bd_info *bis, int id, int (*wp)(int), 15 15 int (*cd)(int)); 16 16 17 - #ifdef CONFIG_SPL_BUILD 17 + #ifdef CONFIG_XPL_BUILD 18 18 19 19 #if defined(CONFIG_MX23) 20 20 #include <asm/arch/iomux-mx23.h>
+2 -2
arch/arm/include/asm/arch-rk3066/boot0.h
··· 10 10 * (containing the magic 'RK30'). This magic constant will be written into 11 11 * the final image by the rkimage tool, but we need to reserve space for it here. 12 12 */ 13 - #ifdef CONFIG_SPL_BUILD 13 + #ifdef CONFIG_XPL_BUILD 14 14 b 1f /* if overwritten, entry-address is at the next word */ 15 15 1: 16 16 #endif ··· 68 68 pop {r1-r12, pc} 69 69 #endif 70 70 71 - #if (defined(CONFIG_SPL_BUILD)) 71 + #if (defined(CONFIG_XPL_BUILD)) 72 72 /* U-Boot proper of armv7 does not need this */ 73 73 b reset 74 74 #endif
+3 -3
arch/arm/include/asm/arch-rockchip/boot0.h
··· 12 12 * To make life easier for everyone, we build the SPL binary with 13 13 * space for this 4-byte header already included in the binary. 14 14 */ 15 - #ifdef CONFIG_SPL_BUILD 15 + #ifdef CONFIG_XPL_BUILD 16 16 /* 17 17 * We need to add 4 bytes of space for the 'RK33' at the 18 18 * beginning of the executable. However, as we want to keep ··· 39 39 .word 0 40 40 #endif 41 41 42 - #if (defined(CONFIG_SPL_BUILD) || defined(CONFIG_ARM64)) 42 + #if (defined(CONFIG_XPL_BUILD) || defined(CONFIG_ARM64)) 43 43 /* U-Boot proper of armv7 do not need this */ 44 44 b reset 45 45 #endif ··· 54 54 ARM_VECTORS 55 55 #endif 56 56 57 - #if !defined(CONFIG_TPL_BUILD) && defined(CONFIG_SPL_BUILD) && \ 57 + #if !defined(CONFIG_TPL_BUILD) && defined(CONFIG_XPL_BUILD) && \ 58 58 (CONFIG_ROCKCHIP_SPL_RESERVE_IRAM > 0) 59 59 .space CONFIG_ROCKCHIP_SPL_RESERVE_IRAM /* space for the ATF data */ 60 60 #endif
+5 -5
arch/arm/include/asm/arch-rockchip/cru_rv1126.h
··· 11 11 #define KHz 1000 12 12 #define OSC_HZ (24 * MHz) 13 13 14 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 14 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 15 15 #define APLL_HZ (1008 * MHz) 16 16 #else 17 17 #define APLL_HZ (816 * MHz) ··· 20 20 #define CPLL_HZ (500 * MHz) 21 21 #define HPLL_HZ (1400 * MHz) 22 22 #define PCLK_PDPMU_HZ (100 * MHz) 23 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 23 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 24 24 #define ACLK_PDBUS_HZ (396 * MHz) 25 25 #else 26 26 #define ACLK_PDBUS_HZ (500 * MHz) ··· 32 32 #define HCLK_PDCORE_HZ (200 * MHz) 33 33 #define HCLK_PDAUDIO_HZ (150 * MHz) 34 34 #define CLK_OSC0_DIV_HZ (32768) 35 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 35 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 36 36 #define ACLK_PDVI_HZ (297 * MHz) 37 37 #define CLK_ISP_HZ (297 * MHz) 38 38 #define ACLK_PDISPP_HZ (297 * MHz) ··· 324 324 DCLK_VOP_DIV_SHIFT = 0, 325 325 DCLK_VOP_DIV_MASK = 0xff, 326 326 327 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 327 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 328 328 /* CRU_CLK_SEL49_CON */ 329 329 ACLK_PDVI_SEL_SHIFT = 6, 330 330 ACLK_PDVI_SEL_MASK = 0x3 << ACLK_PDVI_SEL_SHIFT, ··· 397 397 CLK_GMAC_SRC_DIV_SHIFT = 0, 398 398 CLK_GMAC_SRC_DIV_MASK = 0x1f << CLK_GMAC_SRC_DIV_SHIFT, 399 399 400 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 400 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_KERNEL_BOOT) 401 401 /* CRU_CLK_SEL68_CON */ 402 402 ACLK_PDISPP_SEL_SHIFT = 6, 403 403 ACLK_PDISPP_SEL_MASK = 0x3 << ACLK_PDISPP_SEL_SHIFT,
+2 -2
arch/arm/include/asm/arch-sunxi/boot0.h
··· 5 5 6 6 #include <asm/arch/cpu.h> 7 7 8 - #if defined(CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER) && !defined(CONFIG_SPL_BUILD) 8 + #if defined(CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER) && !defined(CONFIG_XPL_BUILD) 9 9 /* reserve space for BOOT0 header information */ 10 10 b reset 11 11 .space 1532 ··· 49 49 .word CONFIG_SUNXI_RVBAR_ADDRESS // writable RVBAR mapping addr 50 50 .word SUNXI_SRAMC_BASE 51 51 .word CONFIG_SUNXI_RVBAR_ALTERNATIVE // address for die variant 52 - #ifdef CONFIG_SPL_BUILD 52 + #ifdef CONFIG_XPL_BUILD 53 53 .word CONFIG_SPL_TEXT_BASE 54 54 #else 55 55 .word CONFIG_TEXT_BASE
+1 -1
arch/arm/include/asm/arch-sunxi/sys_proto.h
··· 23 23 void return_to_fel(uint32_t lr, uint32_t sp); 24 24 25 25 /* Board / SoC level designware gmac init */ 26 - #if !defined CONFIG_SPL_BUILD && defined CONFIG_SUN7I_GMAC 26 + #if !defined CONFIG_XPL_BUILD && defined CONFIG_SUN7I_GMAC 27 27 void eth_init_board(void); 28 28 #else 29 29 static inline void eth_init_board(void) {}
+2 -2
arch/arm/include/asm/fsl_secure_boot.h
··· 8 8 #define __FSL_SECURE_BOOT_H 9 9 10 10 #ifdef CONFIG_CHAIN_OF_TRUST 11 - #ifndef CONFIG_SPL_BUILD 11 + #ifndef CONFIG_XPL_BUILD 12 12 13 - #endif /* #ifndef CONFIG_SPL_BUILD */ 13 + #endif /* #ifndef CONFIG_XPL_BUILD */ 14 14 #endif /* #ifdef CONFIG_CHAIN_OF_TRUST */ 15 15 #endif
+1 -1
arch/arm/include/asm/ti-common/sys_proto.h
··· 57 57 */ 58 58 static inline u32 omap_hw_init_context(void) 59 59 { 60 - #ifdef CONFIG_SPL_BUILD 60 + #ifdef CONFIG_XPL_BUILD 61 61 return OMAP_INIT_CONTEXT_SPL; 62 62 #else 63 63 if (uboot_loaded_by_spl())
+1 -1
arch/arm/lib/Makefile
··· 21 21 obj-y += setjmp.o 22 22 endif 23 23 24 - ifndef CONFIG_SPL_BUILD 24 + ifndef CONFIG_XPL_BUILD 25 25 ifdef CONFIG_ARM64 26 26 obj-y += relocate_64.o 27 27 else
+7 -7
arch/arm/lib/crt0.S
··· 102 102 103 103 #if defined(CONFIG_TPL_BUILD) && defined(CONFIG_TPL_NEEDS_SEPARATE_STACK) 104 104 ldr r0, =(CONFIG_TPL_STACK) 105 - #elif defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK) 105 + #elif defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_STACK) 106 106 ldr r0, =(CONFIG_SPL_STACK) 107 107 #else 108 108 ldr r0, =(SYS_INIT_SP_ADDR) ··· 119 119 bl debug_uart_init 120 120 #endif 121 121 122 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_EARLY_BSS) 122 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_EARLY_BSS) 123 123 CLEAR_BSS 124 124 #endif 125 125 126 126 mov r0, #0 127 127 bl board_init_f 128 128 129 - #if ! defined(CONFIG_SPL_BUILD) 129 + #if ! defined(CONFIG_XPL_BUILD) 130 130 131 131 /* 132 132 * Set up intermediate environment (new sp and gd) and call ··· 171 171 172 172 bl c_runtime_cpu_setup /* we still call old routine here */ 173 173 #endif 174 - #if !defined(CONFIG_SPL_BUILD) || CONFIG_IS_ENABLED(FRAMEWORK) 174 + #if !defined(CONFIG_XPL_BUILD) || CONFIG_IS_ENABLED(FRAMEWORK) 175 175 176 - #if !defined(CONFIG_SPL_BUILD) || !defined(CONFIG_SPL_EARLY_BSS) 176 + #if !defined(CONFIG_XPL_BUILD) || !defined(CONFIG_SPL_EARLY_BSS) 177 177 CLEAR_BSS 178 178 #endif 179 179 180 - # ifdef CONFIG_SPL_BUILD 180 + # ifdef CONFIG_XPL_BUILD 181 181 /* Use a DRAM stack for the rest of SPL, if requested */ 182 182 bl spl_relocate_stack_gd 183 183 cmp r0, #0 ··· 185 185 movne r9, r0 186 186 # endif 187 187 188 - #if ! defined(CONFIG_SPL_BUILD) 188 + #if ! defined(CONFIG_XPL_BUILD) 189 189 bl coloured_LED_init 190 190 bl red_led_on 191 191 #endif
+5 -5
arch/arm/lib/crt0_64.S
··· 71 71 */ 72 72 #if defined(CONFIG_TPL_BUILD) && defined(CONFIG_TPL_NEEDS_SEPARATE_STACK) 73 73 ldr x0, =(CONFIG_TPL_STACK) 74 - #elif defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK) 74 + #elif defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_STACK) 75 75 ldr x0, =(CONFIG_SPL_STACK) 76 76 #elif defined(CONFIG_INIT_SP_RELATIVE) 77 77 #if CONFIG_POSITION_INDEPENDENT ··· 99 99 mov x0, #0 100 100 bl board_init_f 101 101 102 - #if !defined(CONFIG_SPL_BUILD) 102 + #if !defined(CONFIG_XPL_BUILD) 103 103 /* 104 104 * Set up intermediate environment (new sp and gd) and call 105 105 * relocate_code(addr_moni). Trick here is that we'll return ··· 139 139 * Set up final (full) environment 140 140 */ 141 141 bl c_runtime_cpu_setup /* still call old routine */ 142 - #endif /* !CONFIG_SPL_BUILD */ 143 - #if !defined(CONFIG_SPL_BUILD) || CONFIG_IS_ENABLED(FRAMEWORK) 144 - #if defined(CONFIG_SPL_BUILD) 142 + #endif /* !CONFIG_XPL_BUILD */ 143 + #if !defined(CONFIG_XPL_BUILD) || CONFIG_IS_ENABLED(FRAMEWORK) 144 + #if defined(CONFIG_XPL_BUILD) 145 145 bl spl_relocate_stack_gd /* may return NULL */ 146 146 /* set up gd here, outside any C code, if new stack is returned */ 147 147 cmp x0, #0
+1 -1
arch/arm/lib/eabi_compat.c
··· 12 12 int raise (int signum) 13 13 { 14 14 /* Even if printf() is available, it's large. Punt it for SPL builds */ 15 - #if !defined(CONFIG_SPL_BUILD) 15 + #if !defined(CONFIG_XPL_BUILD) 16 16 printf("raise: Signal # %d caught\n", signum); 17 17 #endif 18 18 return 0;
+1 -1
arch/arm/lib/stack.c
··· 17 17 18 18 int arch_reserve_stacks(void) 19 19 { 20 - #ifdef CONFIG_SPL_BUILD 20 + #ifdef CONFIG_XPL_BUILD 21 21 gd->start_addr_sp -= 128; /* leave 32 words for abort-stack */ 22 22 gd->irq_sp = gd->start_addr_sp; 23 23 #else
+3 -3
arch/arm/lib/vectors.S
··· 133 133 134 134 /* SPL interrupt handling: just hang */ 135 135 136 - #ifdef CONFIG_SPL_BUILD 136 + #ifdef CONFIG_XPL_BUILD 137 137 138 138 #if !CONFIG_IS_ENABLED(SYS_NO_VECTOR_TABLE) 139 139 .align 5 ··· 166 166 b 1b /* hang and never return */ 167 167 #endif 168 168 169 - #else /* !CONFIG_SPL_BUILD */ 169 + #else /* !CONFIG_XPL_BUILD */ 170 170 171 171 /* IRQ stack memory (calculated at run-time) + 8 bytes */ 172 172 .globl IRQ_STACK_START_IN ··· 332 332 bad_save_user_regs 333 333 bl do_fiq 334 334 335 - #endif /* CONFIG_SPL_BUILD */ 335 + #endif /* CONFIG_XPL_BUILD */
+2 -2
arch/arm/lib/zimage.c
··· 24 24 25 25 if (zi->zi_magic != LINUX_ARM_ZIMAGE_MAGIC && 26 26 zi->zi_magic != BAREBOX_IMAGE_MAGIC) { 27 - if (!IS_ENABLED(CONFIG_SPL_BUILD)) 27 + if (!IS_ENABLED(CONFIG_XPL_BUILD)) 28 28 puts("zimage: Bad magic!\n"); 29 29 return 1; 30 30 } 31 31 32 32 *start = zi->zi_start; 33 33 *end = zi->zi_end; 34 - if (!IS_ENABLED(CONFIG_SPL_BUILD)) 34 + if (!IS_ENABLED(CONFIG_XPL_BUILD)) 35 35 printf("Kernel image @ %#08lx [ %#08lx - %#08lx ]\n", 36 36 image, *start, *end); 37 37
+1 -1
arch/arm/mach-aspeed/ast2600/Makefile
··· 1 1 obj-y += lowlevel_init.o board_common.o 2 - obj-$(CONFIG_SPL_BUILD) += spl.o 2 + obj-$(CONFIG_XPL_BUILD) += spl.o
+1 -1
arch/arm/mach-aspeed/ast2600/lowlevel_init.S
··· 97 97 .globl lowlevel_init 98 98 99 99 lowlevel_init: 100 - #if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD) 100 + #if defined(CONFIG_SPL) && !defined(CONFIG_XPL_BUILD) 101 101 mov pc, lr 102 102 #else 103 103 /* setup ARM arch timer frequency */
+1 -1
arch/arm/mach-at91/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 3 obj-$(CONFIG_AT91_WANTS_COMMON_PHY) += phy.o 4 - ifneq ($(CONFIG_SPL_BUILD),) 4 + ifneq ($(CONFIG_XPL_BUILD),) 5 5 obj-$(CONFIG_AT91SAM9260) += sdram.o spl_at91.o 6 6 obj-$(CONFIG_AT91SAM9G20) += sdram.o spl_at91.o 7 7 obj-$(CONFIG_AT91SAM9M10G45) += mpddrc.o spl_at91.o
+1 -1
arch/arm/mach-at91/config.mk
··· 3 3 endif 4 4 5 5 ifeq ($(CONFIG_CPU_V7A),y) 6 - ifndef CONFIG_SPL_BUILD 6 + ifndef CONFIG_XPL_BUILD 7 7 INPUTS-y += u-boot.img 8 8 endif 9 9 endif
+1 -1
arch/arm/mach-davinci/Makefile
··· 9 9 obj-$(CONFIG_DA850_LOWLEVEL) += da850_lowlevel.o 10 10 obj-$(CONFIG_SOC_DA850) += da850_pinmux.o 11 11 12 - ifdef CONFIG_SPL_BUILD 12 + ifdef CONFIG_XPL_BUILD 13 13 obj-$(CONFIG_SPL_FRAMEWORK) += spl.o 14 14 obj-$(CONFIG_SOC_DA8XX) += da850_lowlevel.o 15 15 endif
+1 -1
arch/arm/mach-davinci/config.mk
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 # 3 3 # Copyright (C) 2012, Texas Instruments, Incorporated - https://www.ti.com/ 4 - ifndef CONFIG_SPL_BUILD 4 + ifndef CONFIG_XPL_BUILD 5 5 INPUTS-$(CONFIG_SPL_FRAMEWORK) += u-boot.ais 6 6 endif
+1 -1
arch/arm/mach-davinci/misc.c
··· 21 21 22 22 DECLARE_GLOBAL_DATA_PTR; 23 23 24 - #ifndef CONFIG_SPL_BUILD 24 + #ifndef CONFIG_XPL_BUILD 25 25 int dram_init(void) 26 26 { 27 27 /* dram_init must store complete ramsize in gd->ram_size */
+1 -1
arch/arm/mach-exynos/Makefile
··· 9 9 10 10 obj-$(CONFIG_EXYNOS5420) += sec_boot.o 11 11 12 - ifdef CONFIG_SPL_BUILD 12 + ifdef CONFIG_XPL_BUILD 13 13 obj-$(CONFIG_ARCH_EXYNOS5) += clock_init_exynos5.o 14 14 obj-$(CONFIG_ARCH_EXYNOS5) += dmc_common.o dmc_init_ddr3.o 15 15 obj-$(CONFIG_EXYNOS4210)+= dmc_init_exynos4.o clock_init_exynos4.o
+2 -2
arch/arm/mach-exynos/lowlevel_init.c
··· 221 221 if (actions & DO_CLOCKS) { 222 222 system_clock_init(); 223 223 #ifdef CONFIG_DEBUG_UART 224 - #if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)) || \ 225 - !defined(CONFIG_SPL_BUILD) 224 + #if (defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_SERIAL)) || \ 225 + !defined(CONFIG_XPL_BUILD) 226 226 exynos_pinmux_config(PERIPH_ID_UART3, PINMUX_FLAG_NONE); 227 227 debug_uart_init(); 228 228 #endif
+1 -1
arch/arm/mach-exynos/pinmux.c
··· 171 171 * this same assumption. 172 172 */ 173 173 if ((peripheral == PERIPH_ID_SDMMC0) && (i == (start + 2))) { 174 - #ifndef CONFIG_SPL_BUILD 174 + #ifndef CONFIG_XPL_BUILD 175 175 gpio_request(i, "sdmmc0_vdden"); 176 176 #endif 177 177 gpio_set_value(i, 1);
+9 -9
arch/arm/mach-imx/Makefile
··· 10 10 endif 11 11 12 12 ifeq ($(SOC),$(filter $(SOC),imx8m)) 13 - ifneq ($(CONFIG_SPL_BUILD),y) 13 + ifneq ($(CONFIG_XPL_BUILD),y) 14 14 obj-$(CONFIG_IMX_BOOTAUX) += imx_bootaux.o 15 15 endif 16 16 obj-$(CONFIG_ENV_IS_IN_MMC) += mmc_env.o ··· 22 22 endif 23 23 24 24 ifeq ($(SOC),$(filter $(SOC),imx8m imx9)) 25 - ifneq ($(CONFIG_SPL_BUILD),y) 25 + ifneq ($(CONFIG_XPL_BUILD),y) 26 26 obj-y += fdt.o 27 27 endif 28 28 endif ··· 38 38 ifeq ($(SOC),$(filter $(SOC),mx7 mx6 mxs imx8m imx8 imx9 imxrt)) 39 39 obj-y += misc.o 40 40 obj-$(CONFIG_CMD_PRIBLOB) += priblob.o 41 - obj-$(CONFIG_SPL_BUILD) += spl.o 41 + obj-$(CONFIG_XPL_BUILD) += spl.o 42 42 endif 43 43 ifeq ($(SOC),$(filter $(SOC),mx7)) 44 44 obj-y += cpu.o ··· 46 46 obj-$(CONFIG_ENV_IS_IN_MMC) += mmc_env.o 47 47 endif 48 48 ifeq ($(SOC),$(filter $(SOC),mx7 imx8m)) 49 - ifneq ($(CONFIG_SPL_BUILD),y) 49 + ifneq ($(CONFIG_XPL_BUILD),y) 50 50 obj-$(CONFIG_FSL_MFGPROT) += cmd_mfgprot.o 51 51 endif 52 52 endif ··· 57 57 obj-y += cache.o init.o 58 58 obj-$(CONFIG_FEC_MXC) += mac.o 59 59 obj-$(CONFIG_IMX_RDC) += rdc-sema.o 60 - ifneq ($(CONFIG_SPL_BUILD),y) 60 + ifneq ($(CONFIG_XPL_BUILD),y) 61 61 obj-$(CONFIG_IMX_BOOTAUX) += imx_bootaux.o 62 62 endif 63 63 obj-$(CONFIG_$(SPL_)SATA) += sata.o ··· 73 73 obj-$(CONFIG_DDRMC_VF610_CALIBRATION) += ddrmc-vf610-calibration.o 74 74 endif 75 75 ifeq ($(SOC),$(filter $(SOC),imx8)) 76 - ifneq ($(CONFIG_SPL_BUILD),y) 76 + ifneq ($(CONFIG_XPL_BUILD),y) 77 77 obj-$(CONFIG_IMX_BOOTAUX) += imx_bootaux.o 78 78 endif 79 79 endif 80 - ifneq ($(CONFIG_SPL_BUILD),y) 80 + ifneq ($(CONFIG_XPL_BUILD),y) 81 81 obj-$(CONFIG_CMD_BMODE) += cmd_bmode.o 82 82 obj-$(CONFIG_CMD_HDMIDETECT) += cmd_hdmidet.o 83 83 obj-$(CONFIG_CMD_DEKBLOB) += cmd_dek.o 84 84 obj-$(CONFIG_CMD_NANDBCB) += cmd_nandbcb.o 85 85 endif 86 86 87 - ifeq ($(CONFIG_SPL_BUILD),y) 87 + ifeq ($(CONFIG_XPL_BUILD),y) 88 88 obj-$(CONFIG_SPL_LOAD_IMX_CONTAINER) += image-container.o 89 89 endif 90 90 ··· 128 128 ifeq ($(CONFIG_ARCH_IMX8), y) 129 129 CNTR_DEPFILES := $(srctree)/tools/imx_cntr_image.sh 130 130 IMAGE_TYPE := imx8image 131 - ifeq ($(CONFIG_SPL_BUILD),y) 131 + ifeq ($(CONFIG_XPL_BUILD),y) 132 132 SPL_DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o spl/u-boot-spl.cfgout $(srctree)/$(IMX_CONFIG); if [ -f spl/u-boot-spl.cfgout ]; then $(CNTR_DEPFILES) spl/u-boot-spl.cfgout; echo $$?; fi) 133 133 endif 134 134 DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o u-boot-dtb.cfgout $(srctree)/$(IMX_CONFIG); if [ -f u-boot-dtb.cfgout ]; then $(CNTR_DEPFILES) u-boot-dtb.cfgout; echo $$?; fi)
+3 -3
arch/arm/mach-imx/cpu.c
··· 39 39 if (reset_cause == -1) { 40 40 reset_cause = readl(&src_regs->srsr); 41 41 /* preserve the value for U-Boot proper */ 42 - #if !defined(CONFIG_SPL_BUILD) 42 + #if !defined(CONFIG_XPL_BUILD) 43 43 writel(reset_cause, &src_regs->srsr); 44 44 #endif 45 45 } ··· 47 47 return reset_cause; 48 48 } 49 49 50 - #if defined(CONFIG_DISPLAY_CPUINFO) && !defined(CONFIG_SPL_BUILD) 50 + #if defined(CONFIG_DISPLAY_CPUINFO) && !defined(CONFIG_XPL_BUILD) 51 51 static char *get_reset_cause(void) 52 52 { 53 53 switch (get_imx_reset_cause()) { ··· 92 92 } 93 93 #endif 94 94 95 - #if defined(CONFIG_DISPLAY_CPUINFO) && !defined(CONFIG_SPL_BUILD) 95 + #if defined(CONFIG_DISPLAY_CPUINFO) && !defined(CONFIG_XPL_BUILD) 96 96 97 97 const char *get_imx_type(u32 imxtype) 98 98 {
+4 -4
arch/arm/mach-imx/hab.c
··· 245 245 return ret; 246 246 } 247 247 248 - #if !defined(CONFIG_SPL_BUILD) 248 + #if !defined(CONFIG_XPL_BUILD) 249 249 250 250 #define MAX_RECORD_BYTES (8*1024) /* 4 kbytes */ 251 251 ··· 727 727 "" 728 728 ); 729 729 730 - #endif /* !defined(CONFIG_SPL_BUILD) */ 730 + #endif /* !defined(CONFIG_XPL_BUILD) */ 731 731 732 732 /* Get CSF Header length */ 733 733 static int get_hab_hdr_len(struct hab_hdr *hdr) ··· 939 939 puts("Dumping CSF Header\n"); 940 940 print_buffer(ivt->csf, (void *)(uintptr_t)(ivt->csf), 4, 0x10, 0); 941 941 942 - #if !defined(CONFIG_SPL_BUILD) 942 + #if !defined(CONFIG_XPL_BUILD) 943 943 get_hab_status(); 944 944 #endif 945 945 ··· 989 989 } 990 990 991 991 hab_exit_failure_print_status: 992 - #if !defined(CONFIG_SPL_BUILD) 992 + #if !defined(CONFIG_XPL_BUILD) 993 993 get_hab_status(); 994 994 #endif 995 995
+2 -2
arch/arm/mach-imx/imx8/cpu.c
··· 89 89 90 90 int arch_cpu_init(void) 91 91 { 92 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_RECOVER_DATA_SECTION) 92 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_RECOVER_DATA_SECTION) 93 93 spl_save_restore_data(); 94 94 #endif 95 95 96 - #ifdef CONFIG_SPL_BUILD 96 + #ifdef CONFIG_XPL_BUILD 97 97 struct pass_over_info_t *pass_over; 98 98 99 99 if (is_soc_rev(CHIP_REV_A)) {
+1 -1
arch/arm/mach-imx/imx8m/clock_imx8mm.c
··· 51 51 return 0; 52 52 } 53 53 54 - #ifdef CONFIG_SPL_BUILD 54 + #ifdef CONFIG_XPL_BUILD 55 55 static struct imx_int_pll_rate_table imx8mm_fracpll_tbl[] = { 56 56 PLL_1443X_RATE(1000000000U, 250, 3, 1, 0), 57 57 PLL_1443X_RATE(933000000U, 311, 4, 1, 0),
+2 -2
arch/arm/mach-imx/imx8m/clock_imx8mq.c
··· 611 611 CLK_ROOT_PRE_DIV(CLK_ROOT_PRE_DIV5)); 612 612 } 613 613 614 - #ifdef CONFIG_SPL_BUILD 614 + #ifdef CONFIG_XPL_BUILD 615 615 void dram_pll_init(ulong pll_val) 616 616 { 617 617 u32 val; ··· 791 791 /* 792 792 * Dump some clockes. 793 793 */ 794 - #ifndef CONFIG_SPL_BUILD 794 + #ifndef CONFIG_XPL_BUILD 795 795 static int do_imx8m_showclocks(struct cmd_tbl *cmdtp, int flag, int argc, 796 796 char *const argv[]) 797 797 {
+8 -8
arch/arm/mach-imx/imx8m/soc.c
··· 45 45 46 46 int timer_init(void) 47 47 { 48 - #ifdef CONFIG_SPL_BUILD 48 + #ifdef CONFIG_XPL_BUILD 49 49 struct sctr_regs *sctr = (struct sctr_regs *)SYSCNT_CTRL_BASE_ADDR; 50 50 unsigned long freq = readl(&sctr->cntfid0); 51 51 ··· 255 255 return ret; 256 256 257 257 /* rom_pointer[1] contains the size of TEE occupies */ 258 - if (!IS_ENABLED(CONFIG_ARMV8_PSCI) && !IS_ENABLED(CONFIG_SPL_BUILD) && rom_pointer[1]) 258 + if (!IS_ENABLED(CONFIG_ARMV8_PSCI) && !IS_ENABLED(CONFIG_XPL_BUILD) && rom_pointer[1]) 259 259 gd->ram_size = sdram_size - rom_pointer[1]; 260 260 else 261 261 gd->ram_size = sdram_size; ··· 284 284 } 285 285 286 286 gd->bd->bi_dram[bank].start = PHYS_SDRAM; 287 - if (!IS_ENABLED(CONFIG_ARMV8_PSCI) && !IS_ENABLED(CONFIG_SPL_BUILD) && rom_pointer[1]) { 287 + if (!IS_ENABLED(CONFIG_ARMV8_PSCI) && !IS_ENABLED(CONFIG_XPL_BUILD) && rom_pointer[1]) { 288 288 phys_addr_t optee_start = (phys_addr_t)rom_pointer[0]; 289 289 phys_size_t optee_size = (size_t)rom_pointer[1]; 290 290 ··· 329 329 sdram_b1_size = sdram_size; 330 330 } 331 331 332 - if (!IS_ENABLED(CONFIG_ARMV8_PSCI) && !IS_ENABLED(CONFIG_SPL_BUILD) && 332 + if (!IS_ENABLED(CONFIG_ARMV8_PSCI) && !IS_ENABLED(CONFIG_XPL_BUILD) && 333 333 rom_pointer[1]) { 334 334 /* We will relocate u-boot to Top of dram1. Tee position has two cases: 335 335 * 1. At the top of dram1, Then return the size removed optee size. ··· 612 612 phys_size_t sdram_size; 613 613 int entry, ret; 614 614 615 - if (IS_ENABLED(CONFIG_SPL_BUILD)) 615 + if (IS_ENABLED(CONFIG_XPL_BUILD)) 616 616 return; 617 617 618 618 if (CONFIG_IS_ENABLED(SYS_ICACHE_OFF) || CONFIG_IS_ENABLED(SYS_DCACHE_OFF)) ··· 646 646 * ROM might disable clock for SCTR, 647 647 * enable the clock before timer_init. 648 648 */ 649 - if (IS_ENABLED(CONFIG_SPL_BUILD)) 649 + if (IS_ENABLED(CONFIG_XPL_BUILD)) 650 650 clock_enable(CCGR_SCTR, 1); 651 651 /* 652 652 * Init timer at very early state, because sscg pll setting ··· 654 654 */ 655 655 timer_init(); 656 656 657 - if (IS_ENABLED(CONFIG_SPL_BUILD)) { 657 + if (IS_ENABLED(CONFIG_XPL_BUILD)) { 658 658 clock_init(); 659 659 imx_set_wdog_powerdown(false); 660 660 ··· 1476 1476 } 1477 1477 #endif 1478 1478 1479 - #if defined(CONFIG_SPL_BUILD) 1479 + #if defined(CONFIG_XPL_BUILD) 1480 1480 #if defined(CONFIG_IMX8MQ) || defined(CONFIG_IMX8MM) || defined(CONFIG_IMX8MN) 1481 1481 bool serror_need_skip = true; 1482 1482
+1 -1
arch/arm/mach-imx/imx8ulp/Makefile
··· 6 6 obj-y += lowlevel_init.o 7 7 obj-y += soc.o clock.o iomux.o pcc.o cgc.o rdc.o 8 8 9 - ifeq ($(CONFIG_SPL_BUILD),y) 9 + ifeq ($(CONFIG_XPL_BUILD),y) 10 10 obj-y += upower/ 11 11 endif
+1 -1
arch/arm/mach-imx/imx8ulp/clock.c
··· 519 519 return pcc_clock_get_rate(lpuart_pcc[index], lpuart_pcc_slots[index]); 520 520 } 521 521 522 - #ifndef CONFIG_SPL_BUILD 522 + #ifndef CONFIG_XPL_BUILD 523 523 /* 524 524 * Dump some core clockes. 525 525 */
+1 -1
arch/arm/mach-imx/imx8ulp/lowlevel_init.S
··· 16 16 17 17 .global save_boot_params 18 18 save_boot_params: 19 - #ifndef CONFIG_SPL_BUILD 19 + #ifndef CONFIG_XPL_BUILD 20 20 /* The firmware provided ATAG/FDT address can be found in r2/x0 */ 21 21 adr x0, rom_pointer 22 22 stp x1, x2, [x0], #16
+6 -6
arch/arm/mach-imx/imx8ulp/soc.c
··· 104 104 105 105 bool m33_image_booted(void) 106 106 { 107 - if (IS_ENABLED(CONFIG_SPL_BUILD)) { 107 + if (IS_ENABLED(CONFIG_XPL_BUILD)) { 108 108 u32 gp6 = 0; 109 109 110 110 /* DGO_GP6 */ ··· 124 124 125 125 bool rdc_enabled_in_boot(void) 126 126 { 127 - if (IS_ENABLED(CONFIG_SPL_BUILD)) { 127 + if (IS_ENABLED(CONFIG_XPL_BUILD)) { 128 128 u32 val = 0; 129 129 int ret; 130 130 bool rdc_en = true; /* Default assume DBD_EN is set */ ··· 146 146 147 147 static void spl_pass_boot_info(void) 148 148 { 149 - if (IS_ENABLED(CONFIG_SPL_BUILD)) { 149 + if (IS_ENABLED(CONFIG_XPL_BUILD)) { 150 150 bool m33_booted = m33_image_booted(); 151 151 bool rdc_en = rdc_enabled_in_boot(); 152 152 u32 val = 0; ··· 164 164 bool is_m33_handshake_necessary(void) 165 165 { 166 166 /* Only need handshake in u-boot */ 167 - if (!IS_ENABLED(CONFIG_SPL_BUILD)) 167 + if (!IS_ENABLED(CONFIG_XPL_BUILD)) 168 168 return (m33_image_booted() || rdc_enabled_in_boot()); 169 169 else 170 170 return false; ··· 716 716 717 717 int arch_cpu_init(void) 718 718 { 719 - if (IS_ENABLED(CONFIG_SPL_BUILD)) { 719 + if (IS_ENABLED(CONFIG_XPL_BUILD)) { 720 720 /* Enable System Reset Interrupt using WDOG_AD */ 721 721 setbits_le32(CMC1_BASE_ADDR + 0x8C, BIT(13)); 722 722 /* Clear AD_PERIPH Power switch domain out of reset interrupt flag */ ··· 805 805 } 806 806 EVENT_SPY_SIMPLE(EVT_DM_POST_INIT_F, imx8ulp_dm_post_init); 807 807 808 - #if defined(CONFIG_SPL_BUILD) 808 + #if defined(CONFIG_XPL_BUILD) 809 809 __weak void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) 810 810 { 811 811 debug("image entry point: 0x%lx\n", spl_image->entry_point);
+1 -1
arch/arm/mach-imx/imx9/Makefile
··· 5 5 obj-y += lowlevel_init.o 6 6 obj-y += soc.o clock.o clock_root.o trdc.o 7 7 8 - #ifndef CONFIG_SPL_BUILD 8 + #ifndef CONFIG_XPL_BUILD 9 9 obj-y += imx_bootaux.o 10 10 #endif
+2 -2
arch/arm/mach-imx/imx9/clock.c
··· 640 640 } 641 641 } 642 642 643 - #ifdef CONFIG_SPL_BUILD 643 + #ifdef CONFIG_XPL_BUILD 644 644 void dram_pll_init(ulong pll_val) 645 645 { 646 646 configure_fracpll(DRAM_PLL_CLK, pll_val); ··· 950 950 /* 951 951 * Dump some clockes. 952 952 */ 953 - #ifndef CONFIG_SPL_BUILD 953 + #ifndef CONFIG_XPL_BUILD 954 954 int do_showclocks(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]) 955 955 { 956 956 u32 freq;
+1 -1
arch/arm/mach-imx/imx9/lowlevel_init.S
··· 16 16 17 17 .global save_boot_params 18 18 save_boot_params: 19 - #ifndef CONFIG_SPL_BUILD 19 + #ifndef CONFIG_XPL_BUILD 20 20 /* The firmware provided ATAG/FDT address can be found in r2/x0 */ 21 21 adr x0, rom_pointer 22 22 stp x1, x2, [x0], #16
+6 -6
arch/arm/mach-imx/imx9/soc.c
··· 383 383 return ret; 384 384 385 385 /* rom_pointer[1] contains the size of TEE occupies */ 386 - if (!IS_ENABLED(CONFIG_SPL_BUILD) && rom_pointer[1]) 386 + if (!IS_ENABLED(CONFIG_XPL_BUILD) && rom_pointer[1]) 387 387 gd->ram_size = sdram_size - rom_pointer[1]; 388 388 else 389 389 gd->ram_size = sdram_size; ··· 412 412 } 413 413 414 414 gd->bd->bi_dram[bank].start = PHYS_SDRAM; 415 - if (!IS_ENABLED(CONFIG_SPL_BUILD) && rom_pointer[1]) { 415 + if (!IS_ENABLED(CONFIG_XPL_BUILD) && rom_pointer[1]) { 416 416 phys_addr_t optee_start = (phys_addr_t)rom_pointer[0]; 417 417 phys_size_t optee_size = (size_t)rom_pointer[1]; 418 418 ··· 457 457 else 458 458 sdram_b1_size = sdram_size; 459 459 460 - if (!IS_ENABLED(CONFIG_SPL_BUILD) && rom_pointer[1]) { 460 + if (!IS_ENABLED(CONFIG_XPL_BUILD) && rom_pointer[1]) { 461 461 /* We will relocate u-boot to top of dram1. TEE position has two cases: 462 462 * 1. At the top of dram1, Then return the size removed optee size. 463 463 * 2. In the middle of dram1, return the size of dram1. ··· 629 629 } 630 630 631 631 #ifdef CONFIG_OF_BOARD_FIXUP 632 - #ifndef CONFIG_SPL_BUILD 632 + #ifndef CONFIG_XPL_BUILD 633 633 int board_fix_fdt(void *fdt) 634 634 { 635 635 /* Update dtb clocks for low drive mode */ ··· 701 701 702 702 int arch_cpu_init(void) 703 703 { 704 - if (IS_ENABLED(CONFIG_SPL_BUILD)) { 704 + if (IS_ENABLED(CONFIG_XPL_BUILD)) { 705 705 /* Disable wdog */ 706 706 init_wdog(); 707 707 ··· 745 745 746 746 int timer_init(void) 747 747 { 748 - #ifdef CONFIG_SPL_BUILD 748 + #ifdef CONFIG_XPL_BUILD 749 749 struct sctr_regs *sctr = (struct sctr_regs *)SYSCNT_CTRL_BASE_ADDR; 750 750 unsigned long freq = readl(&sctr->cntfid0); 751 751
+1 -1
arch/arm/mach-imx/mx5/clock.c
··· 940 940 } 941 941 #endif 942 942 943 - #ifndef CONFIG_SPL_BUILD 943 + #ifndef CONFIG_XPL_BUILD 944 944 /* 945 945 * Dump some core clockes. 946 946 */
+1 -1
arch/arm/mach-imx/mx6/Makefile
··· 7 7 8 8 obj-y := soc.o clock.o 9 9 obj-$(CONFIG_IMX_MODULE_FUSE) += module_fuse.o 10 - obj-$(CONFIG_SPL_BUILD) += ddr.o 10 + obj-$(CONFIG_XPL_BUILD) += ddr.o 11 11 obj-$(CONFIG_MP) += mp.o 12 12 obj-$(CONFIG_MX6UL_LITESOM) += litesom.o 13 13 obj-$(CONFIG_MX6UL_OPOS6UL) += opos6ul.o
+1 -1
arch/arm/mach-imx/mx6/clock.c
··· 1367 1367 } 1368 1368 #endif 1369 1369 1370 - #ifndef CONFIG_SPL_BUILD 1370 + #ifndef CONFIG_XPL_BUILD 1371 1371 /* 1372 1372 * Dump some core clockes. 1373 1373 */
+1 -1
arch/arm/mach-imx/mx6/litesom.c
··· 78 78 } 79 79 #endif 80 80 81 - #ifdef CONFIG_SPL_BUILD 81 + #ifdef CONFIG_XPL_BUILD 82 82 #include <linux/libfdt.h> 83 83 #include <spl.h> 84 84 #include <asm/arch/mx6-ddr.h>
+2 -2
arch/arm/mach-imx/mx6/opos6ul.c
··· 79 79 return 0; 80 80 } 81 81 82 - #ifdef CONFIG_SPL_BUILD 82 + #ifdef CONFIG_XPL_BUILD 83 83 #include <asm/arch/mx6-ddr.h> 84 84 #include <linux/libfdt.h> 85 85 #include <spl.h> ··· 210 210 /* DDR initialization */ 211 211 spl_dram_init(); 212 212 } 213 - #endif /* CONFIG_SPL_BUILD */ 213 + #endif /* CONFIG_XPL_BUILD */
+3 -3
arch/arm/mach-imx/mx6/soc.c
··· 37 37 u32 fpga_rev; 38 38 }; 39 39 40 - #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_IMX_THERMAL) 40 + #if !defined(CONFIG_XPL_BUILD) && defined(CONFIG_IMX_THERMAL) 41 41 static const struct imx_thermal_plat imx6_thermal_plat = { 42 42 .regs = (void *)ANATOP_BASE_ADDR, 43 43 .fuse_bank = 1, ··· 565 565 return 0; 566 566 } 567 567 568 - #ifndef CONFIG_SPL_BUILD 568 + #ifndef CONFIG_XPL_BUILD 569 569 /* 570 570 * cfg_val will be used for 571 571 * Boot_cfg4[7:0]:Boot_cfg3[7:0]:Boot_cfg2[7:0]:Boot_cfg1[7:0] ··· 600 600 601 601 void reset_misc(void) 602 602 { 603 - #ifndef CONFIG_SPL_BUILD 603 + #ifndef CONFIG_XPL_BUILD 604 604 #if defined(CONFIG_VIDEO_MXS) && !defined(CONFIG_VIDEO) 605 605 lcdif_power_down(); 606 606 #endif
+1 -1
arch/arm/mach-imx/mx7/clock.c
··· 1100 1100 } 1101 1101 #endif 1102 1102 1103 - #ifndef CONFIG_SPL_BUILD 1103 + #ifndef CONFIG_XPL_BUILD 1104 1104 /* 1105 1105 * Dump some core clockes. 1106 1106 */
+2 -2
arch/arm/mach-imx/mx7/soc.c
··· 432 432 return; 433 433 } 434 434 435 - #ifndef CONFIG_SPL_BUILD 435 + #ifndef CONFIG_XPL_BUILD 436 436 const struct boot_mode soc_boot_modes[] = { 437 437 {"normal", MAKE_CFGVAL(0x00, 0x00, 0x00, 0x00)}, 438 438 {"primary", MAKE_CFGVAL_PRIMARY_BOOT}, ··· 450 450 451 451 void reset_misc(void) 452 452 { 453 - #ifndef CONFIG_SPL_BUILD 453 + #ifndef CONFIG_XPL_BUILD 454 454 #if defined(CONFIG_VIDEO_MXS) && !defined(CONFIG_VIDEO) 455 455 lcdif_power_down(); 456 456 #endif
+1 -1
arch/arm/mach-imx/mx7ulp/clock.c
··· 327 327 } 328 328 #endif 329 329 330 - #ifndef CONFIG_SPL_BUILD 330 + #ifndef CONFIG_XPL_BUILD 331 331 /* 332 332 * Dump some core clockes. 333 333 */
+1 -1
arch/arm/mach-imx/mx7ulp/soc.c
··· 171 171 return false; 172 172 } 173 173 174 - #if !defined(CONFIG_SPL) || (defined(CONFIG_SPL) && defined(CONFIG_SPL_BUILD)) 174 + #if !defined(CONFIG_SPL) || (defined(CONFIG_SPL) && defined(CONFIG_XPL_BUILD)) 175 175 #if defined(CONFIG_LDO_ENABLED_MODE) 176 176 static void init_ldo_mode(void) 177 177 {
+1 -1
arch/arm/mach-imx/syscounter.c
··· 59 59 return usec; 60 60 } 61 61 62 - #if !CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT) || IS_ENABLED(CONFIG_SPL_BUILD) 62 + #if !CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT) || IS_ENABLED(CONFIG_XPL_BUILD) 63 63 int timer_init(void) 64 64 { 65 65 struct sctr_regs *sctr = (struct sctr_regs *)SCTR_BASE_ADDR;
+1 -1
arch/arm/mach-k3/am62ax/Makefile
··· 4 4 # Andrew Davis <afd@ti.com> 5 5 6 6 obj-$(CONFIG_OF_SYSTEM_SETUP) += am62a7_fdt.o 7 - obj-$(CONFIG_SPL_BUILD) += am62a7_init.o 7 + obj-$(CONFIG_XPL_BUILD) += am62a7_init.o
+1 -1
arch/arm/mach-k3/am62px/Makefile
··· 4 4 # Andrew Davis <afd@ti.com> 5 5 6 6 obj-$(CONFIG_OF_SYSTEM_SETUP) += am62p5_fdt.o 7 - obj-$(CONFIG_SPL_BUILD) += am62p5_init.o 7 + obj-$(CONFIG_XPL_BUILD) += am62p5_init.o
+1 -1
arch/arm/mach-k3/am62x/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 3 obj-$(CONFIG_OF_SYSTEM_SETUP) += am625_fdt.o 4 - obj-$(CONFIG_SPL_BUILD) += am625_init.o 4 + obj-$(CONFIG_XPL_BUILD) += am625_init.o 5 5 obj-y += boot.o
+1 -1
arch/arm/mach-k3/am64x/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - obj-$(CONFIG_SPL_BUILD) += am642_init.o 3 + obj-$(CONFIG_XPL_BUILD) += am642_init.o 4 4 obj-y += boot.o
+1 -1
arch/arm/mach-k3/am65x/Makefile
··· 4 4 # Andrew Davis <afd@ti.com> 5 5 6 6 obj-$(CONFIG_OF_SYSTEM_SETUP) += am654_fdt.o 7 - obj-$(CONFIG_SPL_BUILD) += am654_init.o 7 + obj-$(CONFIG_XPL_BUILD) += am654_init.o
+1 -1
arch/arm/mach-k3/arm64/cache.S
··· 7 7 #include <config.h> 8 8 #include <linux/linkage.h> 9 9 10 - #if defined(CONFIG_SPL_BUILD) 10 + #if defined(CONFIG_XPL_BUILD) 11 11 ENTRY(__asm_invalidate_l3_dcache) 12 12 /* Invalidate SPL address range */ 13 13 mov x0, #CONFIG_SPL_TEXT_BASE
+1 -1
arch/arm/mach-k3/j721e/Makefile
··· 4 4 # Andrew Davis <afd@ti.com> 5 5 6 6 obj-$(CONFIG_OF_SYSTEM_SETUP) += j721e_fdt.o 7 - obj-$(CONFIG_SPL_BUILD) += j721e_init.o 7 + obj-$(CONFIG_XPL_BUILD) += j721e_init.o
+1 -1
arch/arm/mach-k3/j721s2/Makefile
··· 4 4 # Andrew Davis <afd@ti.com> 5 5 6 6 obj-$(CONFIG_OF_SYSTEM_SETUP) += j721s2_fdt.o 7 - obj-$(CONFIG_SPL_BUILD) += j721s2_init.o 7 + obj-$(CONFIG_XPL_BUILD) += j721s2_init.o
+1 -1
arch/arm/mach-k3/j721s2/j721s2_init.c
··· 312 312 } 313 313 #endif 314 314 315 - #ifdef CONFIG_SPL_BUILD 315 + #ifdef CONFIG_XPL_BUILD 316 316 void board_init_f(ulong dummy) 317 317 { 318 318 k3_spl_init();
+1 -1
arch/arm/mach-k3/j722s/Makefile
··· 4 4 # Jayesh Choudhary <j-choudhary@ti.com> 5 5 6 6 obj-$(CONFIG_OF_SYSTEM_SETUP) += j722s_fdt.o 7 - obj-$(CONFIG_SPL_BUILD) += j722s_init.o 7 + obj-$(CONFIG_XPL_BUILD) += j722s_init.o
+1 -1
arch/arm/mach-k3/j784s4/Makefile
··· 4 4 # Andrew Davis <afd@ti.com> 5 5 6 6 obj-$(CONFIG_OF_SYSTEM_SETUP) += j784s4_fdt.o 7 - obj-$(CONFIG_SPL_BUILD) += j784s4_init.o 7 + obj-$(CONFIG_XPL_BUILD) += j784s4_init.o
+1 -1
arch/arm/mach-k3/r5/Makefile
··· 16 16 obj-y += lowlevel_init.o 17 17 obj-y += r5_mpu.o 18 18 19 - ifeq ($(CONFIG_SPL_BUILD),y) 19 + ifeq ($(CONFIG_XPL_BUILD),y) 20 20 obj-$(CONFIG_K3_LOAD_SYSFW) += sysfw-loader.o 21 21 endif
+1 -1
arch/arm/mach-k3/security.c
··· 126 126 * via YMODEM. This is done to avoid disturbing the YMODEM serial 127 127 * protocol transactions. 128 128 */ 129 - if (!(IS_ENABLED(CONFIG_SPL_BUILD) && 129 + if (!(IS_ENABLED(CONFIG_XPL_BUILD) && 130 130 IS_ENABLED(CONFIG_SPL_YMODEM_SUPPORT) && 131 131 spl_boot_device() == BOOT_DEVICE_UART)) 132 132 printf("Authentication passed\n");
+1 -1
arch/arm/mach-keystone/Makefile
··· 10 10 obj-y += clock.o 11 11 obj-y += mon.o 12 12 CFLAGS_REMOVE_mon.o := $(LTO_CFLAGS) 13 - ifndef CONFIG_SPL_BUILD 13 + ifndef CONFIG_XPL_BUILD 14 14 obj-y += cmd_clock.o 15 15 obj-y += cmd_mon.o 16 16 obj-y += cmd_poweroff.o
+2 -2
arch/arm/mach-keystone/config.mk
··· 7 7 8 8 include $(srctree)/arch/arm/mach-omap2/config_secure.mk 9 9 10 - ifndef CONFIG_SPL_BUILD 10 + ifndef CONFIG_XPL_BUILD 11 11 ifeq ($(CONFIG_TI_SECURE_DEVICE),y) 12 12 INPUTS-y += u-boot_HS_MLO 13 13 else ··· 25 25 u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE 26 26 $(call if_changed,pad_cat) 27 27 28 - ifndef CONFIG_SPL_BUILD 28 + ifndef CONFIG_XPL_BUILD 29 29 MKIMAGEFLAGS_MLO = -A $(ARCH) -T gpimage -C none \ 30 30 -a $(CONFIG_TEXT_BASE) -e $(CONFIG_TEXT_BASE) -n U-Boot 31 31 MLO: u-boot.bin FORCE
+1 -1
arch/arm/mach-keystone/mon.c
··· 134 134 * via YMODEM. This is done to avoid disturbing the YMODEM serial 135 135 * protocol transactions. 136 136 */ 137 - if (!(IS_ENABLED(CONFIG_SPL_BUILD) && 137 + if (!(IS_ENABLED(CONFIG_XPL_BUILD) && 138 138 IS_ENABLED(CONFIG_SPL_YMODEM_SUPPORT) && 139 139 spl_boot_device() == BOOT_DEVICE_UART)) 140 140 printf("Authentication passed\n");
+1 -1
arch/arm/mach-lpc32xx/Makefile
··· 5 5 6 6 obj-y = cpu.o clk.o devices.o timer.o 7 7 8 - obj-$(CONFIG_SPL_BUILD) += dram.o lowlevel_init.o 8 + obj-$(CONFIG_XPL_BUILD) += dram.o lowlevel_init.o
+1 -1
arch/arm/mach-mediatek/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 3 obj-y += cpu.o 4 - obj-$(CONFIG_SPL_BUILD) += spl.o 4 + obj-$(CONFIG_XPL_BUILD) += spl.o 5 5 6 6 obj-$(CONFIG_MT8512) += mt8512/ 7 7 obj-$(CONFIG_TARGET_MT7622) += mt7622/
+1 -1
arch/arm/mach-mediatek/mt7629/lowlevel_init.S
··· 16 16 17 17 ENTRY(lowlevel_init) 18 18 19 - #ifndef CONFIG_SPL_BUILD 19 + #ifndef CONFIG_XPL_BUILD 20 20 /* Return to U-Boot via saved link register */ 21 21 mov pc, lr 22 22 #else
+4 -4
arch/arm/mach-mvebu/Makefile
··· 22 22 obj-y = cpu.o 23 23 obj-y += dram.o 24 24 obj-y += lowlevel.o 25 - ifndef CONFIG_SPL_BUILD 25 + ifndef CONFIG_XPL_BUILD 26 26 obj-$(CONFIG_ARMADA_375) += ../../../drivers/ddr/marvell/axp/xor.o 27 27 obj-$(CONFIG_ARMADA_38X) += ../../../drivers/ddr/marvell/a38x/xor.o 28 28 obj-$(CONFIG_ARMADA_XP) += ../../../drivers/ddr/marvell/axp/xor.o ··· 110 110 include/config/auto.conf 111 111 $(call cmd,kwbcfg) 112 112 113 - endif # CONFIG_SPL_BUILD 113 + endif # CONFIG_XPL_BUILD 114 114 obj-y += gpio.o 115 115 obj-y += mbus.o 116 - obj-$(CONFIG_SPL_BUILD) += spl.o 117 - obj-$(CONFIG_SPL_BUILD) += lowlevel_spl.o 116 + obj-$(CONFIG_XPL_BUILD) += spl.o 117 + obj-$(CONFIG_XPL_BUILD) += lowlevel_spl.o 118 118 119 119 obj-$(CONFIG_ARMADA_38X) += serdes/a38x/ 120 120 obj-$(CONFIG_ARMADA_XP) += serdes/axp/
+2 -2
arch/arm/mach-mvebu/cpu.c
··· 52 52 */ 53 53 } 54 54 55 - #if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_ARMADA_32BIT_SYSCON_SYSRESET) 55 + #if defined(CONFIG_XPL_BUILD) || !defined(CONFIG_ARMADA_32BIT_SYSCON_SYSRESET) 56 56 void reset_cpu(void) 57 57 { 58 58 struct mvebu_system_registers *reg = ··· 549 549 int i; 550 550 551 551 /* mbus is not initialized in SPL; keep the ROM settings */ 552 - if (IS_ENABLED(CONFIG_SPL_BUILD)) 552 + if (IS_ENABLED(CONFIG_XPL_BUILD)) 553 553 return; 554 554 555 555 dram = mvebu_mbus_dram_info();
+4 -4
arch/arm/mach-mvebu/include/mach/cpu.h
··· 66 66 /* 67 67 * Default Device Address MAP BAR values 68 68 */ 69 - #ifdef CONFIG_SPL_BUILD 69 + #ifdef CONFIG_XPL_BUILD 70 70 #ifdef CONFIG_ARMADA_38X 71 71 #define MBUS_PCI_MEM_BASE 0x88000000 72 72 #define MBUS_PCI_MEM_SIZE ((3 * 128) << 20) ··· 81 81 #define MBUS_PCI_IO_BASE 0xF1100000 82 82 #define MBUS_PCI_IO_SIZE ((MBUS_PCI_MAX_PORTS * 64) << 10) 83 83 #endif 84 - #ifdef CONFIG_SPL_BUILD 84 + #ifdef CONFIG_XPL_BUILD 85 85 #define MBUS_SPI_BASE 0xD4000000 86 86 #define MBUS_SPI_SIZE (64 << 20) 87 87 #else 88 88 #define MBUS_SPI_BASE 0xF4000000 89 89 #define MBUS_SPI_SIZE (8 << 20) 90 90 #endif 91 - #ifndef CONFIG_SPL_BUILD 91 + #ifndef CONFIG_XPL_BUILD 92 92 #define MBUS_DFX_BASE 0xF6000000 93 93 #define MBUS_DFX_SIZE (1 << 20) 94 94 #endif 95 95 #define MBUS_BOOTROM_BASE 0xF8000000 96 - #ifdef CONFIG_SPL_BUILD 96 + #ifdef CONFIG_XPL_BUILD 97 97 #define MBUS_BOOTROM_SIZE (128 << 20) 98 98 #else 99 99 #define MBUS_BOOTROM_SIZE (8 << 20)
+1 -1
arch/arm/mach-mvebu/include/mach/soc.h
··· 36 36 /* SOC specific definations */ 37 37 #define INTREG_BASE 0xd0000000 38 38 #define INTREG_BASE_ADDR_REG (INTREG_BASE + 0x20080) 39 - #if defined(CONFIG_SPL_BUILD) || defined(CONFIG_ARMADA_3700) 39 + #if defined(CONFIG_XPL_BUILD) || defined(CONFIG_ARMADA_3700) 40 40 /* 41 41 * The SPL U-Boot version still runs with the default 42 42 * address for the internal registers, configured by
+4 -4
arch/arm/mach-mvebu/serdes/a38x/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - obj-$(CONFIG_SPL_BUILD) += high_speed_env_spec.o 4 - obj-$(CONFIG_SPL_BUILD) += high_speed_env_spec-38x.o 5 - obj-$(CONFIG_SPL_BUILD) += seq_exec.o 6 - obj-$(CONFIG_SPL_BUILD) += sys_env_lib.o 3 + obj-$(CONFIG_XPL_BUILD) += high_speed_env_spec.o 4 + obj-$(CONFIG_XPL_BUILD) += high_speed_env_spec-38x.o 5 + obj-$(CONFIG_XPL_BUILD) += seq_exec.o 6 + obj-$(CONFIG_XPL_BUILD) += sys_env_lib.o
+2 -2
arch/arm/mach-mvebu/serdes/axp/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - obj-$(CONFIG_SPL_BUILD) = high_speed_env_lib.o 4 - obj-$(CONFIG_SPL_BUILD) += high_speed_env_spec.o 3 + obj-$(CONFIG_XPL_BUILD) = high_speed_env_lib.o 4 + obj-$(CONFIG_XPL_BUILD) += high_speed_env_spec.o
+1 -1
arch/arm/mach-nexell/include/mach/display.h
··· 265 265 int dp_plane_set_address(int module, int layer, unsigned int address); 266 266 int dp_plane_wait_vsync(int module, int layer, int fps); 267 267 268 - #if defined CONFIG_SPL_BUILD || \ 268 + #if defined CONFIG_XPL_BUILD || \ 269 269 (!defined(CONFIG_DM) && !defined(CONFIG_OF_CONTROL)) 270 270 int nx_display_probe(struct nx_display_plat *plat); 271 271 #endif
+1 -1
arch/arm/mach-omap2/Makefile
··· 11 11 ifeq ($(CONFIG_TIMER),) 12 12 obj-y += timer.o 13 13 else 14 - ifdef CONFIG_SPL_BUILD 14 + ifdef CONFIG_XPL_BUILD 15 15 obj-y += timer.o 16 16 endif 17 17 endif
+9 -9
arch/arm/mach-omap2/am33xx/board.c
··· 209 209 210 210 /* AM33XX has two MUSB controllers which can be host or gadget */ 211 211 #if (defined(CONFIG_AM335X_USB0) || defined(CONFIG_AM335X_USB1)) && \ 212 - defined(CONFIG_SPL_BUILD) 212 + defined(CONFIG_XPL_BUILD) 213 213 214 214 static struct musb_hdrc_config musb_config = { 215 215 .multipoint = 1, ··· 282 282 #if !CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT) 283 283 284 284 #if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC) || \ 285 - (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT)) 285 + (defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT)) 286 286 static void rtc32k_unlock(struct davinci_rtc *rtc) 287 287 { 288 288 /* ··· 295 295 } 296 296 #endif 297 297 298 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) 298 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) 299 299 /* 300 300 * Write contents of the RTC_SCRATCH1 register based on board type 301 301 * Two things are passed ··· 331 331 { 332 332 set_mux_conf_regs(); 333 333 prcm_init(); 334 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) 334 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) 335 335 update_rtc_magic(); 336 336 #endif 337 337 return 0; ··· 379 379 ; 380 380 } 381 381 382 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) 382 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) 383 383 /* 384 384 * Check if we are executing rtc-only + DDR mode, and resume from it if needed 385 385 */ ··· 455 455 456 456 void s_init(void) 457 457 { 458 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) 458 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) 459 459 rtc_only(); 460 460 #endif 461 461 } ··· 474 474 set_uart_mux_conf(); 475 475 setup_early_clocks(); 476 476 uart_soft_reset(); 477 - #ifdef CONFIG_SPL_BUILD 477 + #ifdef CONFIG_XPL_BUILD 478 478 /* 479 479 * Save the boot parameters passed from romcode. 480 480 * We cannot delay the saving further than this, ··· 483 483 save_omap_boot_params(); 484 484 #endif 485 485 486 - #ifdef CONFIG_SPL_BUILD 486 + #ifdef CONFIG_XPL_BUILD 487 487 spl_early_init(); 488 488 #endif 489 489 ··· 497 497 #endif 498 498 } 499 499 500 - #ifdef CONFIG_SPL_BUILD 500 + #ifdef CONFIG_XPL_BUILD 501 501 void board_init_f(ulong dummy) 502 502 { 503 503 hw_data_init();
+3 -3
arch/arm/mach-omap2/boot-common.c
··· 173 173 #endif 174 174 } 175 175 176 - #ifdef CONFIG_SPL_BUILD 176 + #ifdef CONFIG_XPL_BUILD 177 177 u32 spl_boot_device(void) 178 178 { 179 179 return gd->arch.omap_boot_device; ··· 208 208 int ret, size; 209 209 u32 loadaddr = IPU1_LOAD_ADDR; 210 210 211 - if (!IS_ENABLED(CONFIG_SPL_BUILD) || 211 + if (!IS_ENABLED(CONFIG_XPL_BUILD) || 212 212 !IS_ENABLED(CONFIG_REMOTEPROC_TI_IPU)) 213 213 return; 214 214 ··· 286 286 #if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) 287 287 hw_watchdog_init(); 288 288 #endif 289 - if (IS_ENABLED(CONFIG_SPL_BUILD) && 289 + if (IS_ENABLED(CONFIG_XPL_BUILD) && 290 290 IS_ENABLED(CONFIG_REMOTEPROC_TI_IPU)) 291 291 spl_boot_ipu(); 292 292 }
+1 -1
arch/arm/mach-omap2/clocks-common.c
··· 24 24 #include <asm/omap_gpio.h> 25 25 #include <asm/emif.h> 26 26 27 - #ifndef CONFIG_SPL_BUILD 27 + #ifndef CONFIG_XPL_BUILD 28 28 /* 29 29 * printing to console doesn't work unless 30 30 * this code is executed from SPL
+1 -1
arch/arm/mach-omap2/config.mk
··· 5 5 6 6 include $(srctree)/arch/arm/mach-omap2/config_secure.mk 7 7 8 - ifdef CONFIG_SPL_BUILD 8 + ifdef CONFIG_XPL_BUILD 9 9 ifeq ($(CONFIG_TI_SECURE_DEVICE),y) # Refer to README.ti-secure for more info 10 10 # On DRA7xx/AM57xx: 11 11 #
+1 -1
arch/arm/mach-omap2/config_secure.mk
··· 4 4 quiet_cmd_mkomapsecimg = SECURE $@ 5 5 ifneq ($(TI_SECURE_DEV_PKG),) 6 6 ifneq ($(wildcard $(TI_SECURE_DEV_PKG)/scripts/create-boot-image.sh),) 7 - ifneq ($(CONFIG_SPL_BUILD),) 7 + ifneq ($(CONFIG_XPL_BUILD),) 8 8 cmd_mkomapsecimg = $(TI_SECURE_DEV_PKG)/scripts/create-boot-image.sh \ 9 9 $(patsubst u-boot-spl_HS_%,%,$(@F)) $< $@ $(CONFIG_SPL_TEXT_BASE) \ 10 10 $(if $(KBUILD_VERBOSE:1=), >/dev/null)
+7 -7
arch/arm/mach-omap2/hwinit-common.c
··· 113 113 puts("\n"); 114 114 } 115 115 116 - #ifdef CONFIG_SPL_BUILD 116 + #ifdef CONFIG_XPL_BUILD 117 117 void spl_display_print(void) 118 118 { 119 119 omap_rev_string(); ··· 175 175 */ 176 176 int early_system_init(void) 177 177 { 178 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_MULTI_DTB_FIT) 178 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_MULTI_DTB_FIT) 179 179 int ret; 180 180 int rescan; 181 181 #endif ··· 183 183 hw_data_init(); 184 184 init_package_revision(); 185 185 186 - #ifdef CONFIG_SPL_BUILD 186 + #ifdef CONFIG_XPL_BUILD 187 187 if (warm_reset()) 188 188 force_emif_self_refresh(); 189 189 #endif 190 190 watchdog_init(); 191 191 set_mux_conf_regs(); 192 - #ifdef CONFIG_SPL_BUILD 192 + #ifdef CONFIG_XPL_BUILD 193 193 srcomp_enable(); 194 194 do_io_settings(); 195 195 #endif 196 196 setup_early_clocks(); 197 197 198 - #ifdef CONFIG_SPL_BUILD 198 + #ifdef CONFIG_XPL_BUILD 199 199 /* 200 200 * Save the boot parameters passed from romcode. 201 201 * We cannot delay the saving further than this, ··· 206 206 #endif 207 207 do_board_detect(); 208 208 209 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_MULTI_DTB_FIT) 209 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_MULTI_DTB_FIT) 210 210 /* 211 211 * Board detection has been done. 212 212 * Let us see if another dtb wouldn't be a better match ··· 228 228 return 0; 229 229 } 230 230 231 - #ifdef CONFIG_SPL_BUILD 231 + #ifdef CONFIG_XPL_BUILD 232 232 void board_init_f(ulong dummy) 233 233 { 234 234 early_system_init();
+1 -1
arch/arm/mach-omap2/omap3/Makefile
··· 15 15 obj-y += sys_info.o 16 16 obj-y += prcm-regs.o 17 17 obj-y += hw_data.o 18 - ifdef CONFIG_SPL_BUILD 18 + ifdef CONFIG_XPL_BUILD 19 19 obj-$(CONFIG_SPL_OMAP3_ID_NAND) += spl_id_nand.o 20 20 endif 21 21
+3 -3
arch/arm/mach-omap2/omap3/board.c
··· 211 211 } 212 212 #endif 213 213 214 - #ifdef CONFIG_SPL_BUILD 214 + #ifdef CONFIG_XPL_BUILD 215 215 void board_init_f(ulong dummy) 216 216 { 217 217 early_system_init(); ··· 280 280 { 281 281 } 282 282 283 - #if defined(CONFIG_NAND_OMAP_GPMC) & !defined(CONFIG_SPL_BUILD) 283 + #if defined(CONFIG_NAND_OMAP_GPMC) & !defined(CONFIG_XPL_BUILD) 284 284 /****************************************************************************** 285 285 * OMAP3 specific command to switch between NAND HW and SW ecc 286 286 *****************************************************************************/ ··· 331 331 "nandecc sw - Switch to NAND software ecc algorithm." 332 332 ); 333 333 334 - #endif /* CONFIG_NAND_OMAP_GPMC & !CONFIG_SPL_BUILD */ 334 + #endif /* CONFIG_NAND_OMAP_GPMC & !CONFIG_XPL_BUILD */ 335 335 336 336 #ifdef CONFIG_DISPLAY_BOARDINFO 337 337 /**
+2 -2
arch/arm/mach-omap2/omap3/sdrc.c
··· 146 146 * then set cs_cfg to the appropriate value then try and 147 147 * setup CS1. 148 148 */ 149 - #ifdef CONFIG_SPL_BUILD 149 + #ifdef CONFIG_XPL_BUILD 150 150 /* set/modify board-specific timings */ 151 151 get_board_mem_timings(&timings); 152 152 #endif ··· 166 166 167 167 writel(ENADLL | DLLPHASE_90, &sdrc_base->dlla_ctrl); 168 168 sdelay(0x20000); 169 - #ifdef CONFIG_SPL_BUILD 169 + #ifdef CONFIG_XPL_BUILD 170 170 write_sdrc_timings(CS0, sdrc_actim_base0, &timings); 171 171 make_cs1_contiguous(); 172 172 write_sdrc_timings(CS1, sdrc_actim_base1, &timings);
+1 -1
arch/arm/mach-omap2/omap5/hwinit.c
··· 50 50 writel(pad->val, base + pad->offset); 51 51 } 52 52 53 - #ifdef CONFIG_SPL_BUILD 53 + #ifdef CONFIG_XPL_BUILD 54 54 /* LPDDR2 specific IO settings */ 55 55 static void io_settings_lpddr2(void) 56 56 {
+1 -1
arch/arm/mach-omap2/sec-common.c
··· 178 178 * via YMODEM. This is done to avoid disturbing the YMODEM serial 179 179 * protocol transactions. 180 180 */ 181 - if (!(IS_ENABLED(CONFIG_SPL_BUILD) && 181 + if (!(IS_ENABLED(CONFIG_XPL_BUILD) && 182 182 IS_ENABLED(CONFIG_SPL_YMODEM_SUPPORT) && 183 183 spl_boot_device() == BOOT_DEVICE_UART)) 184 184 printf("Authentication passed\n");
+1 -1
arch/arm/mach-orion5x/cpu.c
··· 235 235 /* Enable and invalidate L2 cache in write through mode */ 236 236 invalidate_l2_cache(); 237 237 238 - #ifdef CONFIG_SPL_BUILD 238 + #ifdef CONFIG_XPL_BUILD 239 239 orion5x_config_adr_windows(); 240 240 #endif 241 241
+2 -2
arch/arm/mach-orion5x/lowlevel_init.S
··· 69 69 70 70 lowlevel_init: 71 71 72 - #ifdef CONFIG_SPL_BUILD 72 + #ifdef CONFIG_XPL_BUILD 73 73 74 74 /* Use 'r2 as the base for internal register accesses */ 75 75 ldr r2, =ORION5X_REGS_PHY_BASE ··· 280 280 ldr r0, =0x7fff0001 281 281 str r0, [r3, #0x504] 282 282 283 - #endif /* CONFIG_SPL_BUILD */ 283 + #endif /* CONFIG_XPL_BUILD */ 284 284 285 285 /* Return to U-Boot via saved link register */ 286 286 mov pc, lr
+1 -1
arch/arm/mach-renesas/include/mach/boot0.h
··· 9 9 _start: 10 10 ARM_VECTORS 11 11 12 - #ifdef CONFIG_SPL_BUILD 12 + #ifdef CONFIG_XPL_BUILD 13 13 .word 0x0badc0d3; 14 14 .word 0x0badc0d3; 15 15 .word 0x0badc0d3;
+1 -1
arch/arm/mach-renesas/lowlevel_init_ca15.S
··· 11 11 #include <system-constants.h> 12 12 13 13 ENTRY(lowlevel_init) 14 - #ifndef CONFIG_SPL_BUILD 14 + #ifndef CONFIG_XPL_BUILD 15 15 mrc p15, 0, r4, c0, c0, 5 /* mpidr */ 16 16 orr r4, r4, r4, lsr #6 17 17 and r4, r4, #7 /* id 0-3 = ca15.0,1,2,3 */
+2 -2
arch/arm/mach-rockchip/Makefile
··· 15 15 16 16 obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o 17 17 18 - ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) 18 + ifeq ($(CONFIG_XPL_BUILD)$(CONFIG_TPL_BUILD),) 19 19 20 20 # Always include boot_mode.o, as we bypass it (i.e. turn it off) 21 21 # inside of boot_mode.c when CONFIG_ROCKCHIP_BOOT_MODE_REG is 0. This way, ··· 51 51 obj-spl-$(CONFIG_TPL_BUILD) = 52 52 53 53 # Now add SPL/TPL objects back into the main build 54 - obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y) 54 + obj-$(CONFIG_XPL_BUILD) += $(obj-spl-y) 55 55 obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)
+1 -1
arch/arm/mach-rockchip/px30/px30.c
··· 244 244 static struct px30_cru * const cru = (void *)CRU_BASE; 245 245 u32 __maybe_unused val; 246 246 247 - #ifdef CONFIG_SPL_BUILD 247 + #ifdef CONFIG_XPL_BUILD 248 248 /* We do some SoC one time setting here. */ 249 249 /* Disable the ddr secure region setting to make it non-secure */ 250 250 writel(0x0, DDR_FW_BASE + FW_DDR_CON);
+1 -1
arch/arm/mach-rockchip/rk3036/Makefile
··· 6 6 7 7 obj-y += clk_rk3036.o 8 8 9 - ifndef CONFIG_SPL_BUILD 9 + ifndef CONFIG_XPL_BUILD 10 10 obj-y += syscon_rk3036.o 11 11 endif 12 12
+1 -1
arch/arm/mach-rockchip/rk3066/rk3066.c
··· 27 27 28 28 void spl_board_init(void) 29 29 { 30 - if (!IS_ENABLED(CONFIG_SPL_BUILD)) 30 + if (!IS_ENABLED(CONFIG_XPL_BUILD)) 31 31 return; 32 32 33 33 if (IS_ENABLED(CONFIG_SPL_DM_MMC)) {
+2 -2
arch/arm/mach-rockchip/rk3188/rk3188.c
··· 51 51 } 52 52 #endif 53 53 54 - #ifdef CONFIG_SPL_BUILD 54 + #ifdef CONFIG_XPL_BUILD 55 55 int arch_cpu_init(void) 56 56 { 57 57 struct rk3188_grf *grf; ··· 106 106 return rk3188_board_late_init(); 107 107 } 108 108 109 - #ifdef CONFIG_SPL_BUILD 109 + #ifdef CONFIG_XPL_BUILD 110 110 static int setup_led(void) 111 111 { 112 112 #ifdef CONFIG_SPL_LED
+1 -1
arch/arm/mach-rockchip/rk322x/rk322x.c
··· 51 51 52 52 int arch_cpu_init(void) 53 53 { 54 - #ifdef CONFIG_SPL_BUILD 54 + #ifdef CONFIG_XPL_BUILD 55 55 #define SGRF_BASE 0x10150000 56 56 static struct rk322x_sgrf * const sgrf = (void *)SGRF_BASE; 57 57
+2 -2
arch/arm/mach-rockchip/rk3288/rk3288.c
··· 31 31 [BROM_BOOTSOURCE_SD] = "/mmc@ff0c0000", 32 32 }; 33 33 34 - #ifdef CONFIG_SPL_BUILD 34 + #ifdef CONFIG_XPL_BUILD 35 35 static void configure_l2ctlr(void) 36 36 { 37 37 u32 l2ctlr; ··· 72 72 73 73 int arch_cpu_init(void) 74 74 { 75 - #ifdef CONFIG_SPL_BUILD 75 + #ifdef CONFIG_XPL_BUILD 76 76 configure_l2ctlr(); 77 77 #else 78 78 /* We do some SoC one time setting here. */
+1 -1
arch/arm/mach-rockchip/rk3308/rk3308.c
··· 185 185 } 186 186 #endif 187 187 188 - #if defined(CONFIG_SPL_BUILD) 188 + #if defined(CONFIG_XPL_BUILD) 189 189 int arch_cpu_init(void) 190 190 { 191 191 static struct rk3308_sgrf * const sgrf = (void *)SGRF_BASE;
+1 -1
arch/arm/mach-rockchip/rk3328/rk3328.c
··· 62 62 63 63 int arch_cpu_init(void) 64 64 { 65 - #ifdef CONFIG_SPL_BUILD 65 + #ifdef CONFIG_XPL_BUILD 66 66 u32 reg; 67 67 68 68 /* We do some SoC one time setting here. */
+1 -1
arch/arm/mach-rockchip/rk3368/rk3368.c
··· 93 93 } 94 94 #endif 95 95 96 - #ifdef CONFIG_SPL_BUILD 96 + #ifdef CONFIG_XPL_BUILD 97 97 /* 98 98 * The SPL (and also the full U-Boot stage on the RK3368) will run in 99 99 * secure mode (i.e. EL3) and an ATF will eventually be booted before
+4 -4
arch/arm/mach-rockchip/rk3399/rk3399.c
··· 51 51 52 52 struct mm_region *mem_map = rk3399_mem_map; 53 53 54 - #ifdef CONFIG_SPL_BUILD 54 + #ifdef CONFIG_XPL_BUILD 55 55 56 56 #define TIMER_END_COUNT_L 0x00 57 57 #define TIMER_END_COUNT_H 0x04 ··· 83 83 int arch_cpu_init(void) 84 84 { 85 85 86 - #ifdef CONFIG_SPL_BUILD 86 + #ifdef CONFIG_XPL_BUILD 87 87 struct rk3399_pmusgrf_regs *sgrf; 88 88 struct rk3399_grf_regs *grf; 89 89 ··· 136 136 struct rk3399_pmugrf_regs * const pmugrf = (void *)PMUGRF_BASE; 137 137 struct rockchip_gpio_regs * const gpio = (void *)GPIO0_BASE; 138 138 139 - if (IS_ENABLED(CONFIG_SPL_BUILD) && 139 + if (IS_ENABLED(CONFIG_XPL_BUILD) && 140 140 (IS_ENABLED(CONFIG_TARGET_CHROMEBOOK_BOB) || 141 141 IS_ENABLED(CONFIG_TARGET_CHROMEBOOK_KEVIN))) { 142 142 rk_setreg(&grf->io_vsel, 1 << 0); ··· 169 169 } 170 170 #endif 171 171 172 - #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) 172 + #if defined(CONFIG_XPL_BUILD) && !defined(CONFIG_TPL_BUILD) 173 173 static void rk3399_force_power_on_reset(void) 174 174 { 175 175 ofnode node;
+1 -1
arch/arm/mach-rockchip/rk3568/rk3568.c
··· 105 105 106 106 int arch_cpu_init(void) 107 107 { 108 - #ifdef CONFIG_SPL_BUILD 108 + #ifdef CONFIG_XPL_BUILD 109 109 /* 110 110 * When perform idle operation, corresponding clock can 111 111 * be opened or gated automatically.
+2 -2
arch/arm/mach-rockchip/rk3588/rk3588.c
··· 111 111 GPIO0B5_UART2_TX_M0 << GPIO0B5_SHIFT); 112 112 } 113 113 114 - #ifdef CONFIG_SPL_BUILD 114 + #ifdef CONFIG_XPL_BUILD 115 115 void rockchip_stimer_init(void) 116 116 { 117 117 /* If Timer already enabled, don't re-init it */ ··· 130 130 #ifndef CONFIG_TPL_BUILD 131 131 int arch_cpu_init(void) 132 132 { 133 - #ifdef CONFIG_SPL_BUILD 133 + #ifdef CONFIG_XPL_BUILD 134 134 #ifdef CONFIG_ROCKCHIP_DISABLE_FORCE_JTAG 135 135 static struct rk3588_sysgrf * const sys_grf = (void *)SYS_GRF_BASE; 136 136 #endif
+1 -1
arch/arm/mach-rockchip/rv1108/Makefile
··· 4 4 # SPDX-License-Identifier: GPL-2.0+ 5 5 # 6 6 7 - ifndef CONFIG_SPL_BUILD 7 + ifndef CONFIG_XPL_BUILD 8 8 obj-y += syscon_rv1108.o 9 9 endif 10 10 obj-y += rv1108.o
+1 -1
arch/arm/mach-rockchip/rv1126/rv1126.c
··· 66 66 * since they are unsecure. 67 67 * (Note: only secure-world can access this register) 68 68 */ 69 - if (IS_ENABLED(CONFIG_SPL_BUILD)) 69 + if (IS_ENABLED(CONFIG_XPL_BUILD)) 70 70 writel(0, FIREWALL_APB_BASE + FW_DDR_CON_REG); 71 71 72 72 return 0;
+1 -1
arch/arm/mach-sc5xx/Makefile
··· 15 15 obj-$(CONFIG_SC59X) += sc59x.o 16 16 obj-$(CONFIG_SC59X_64) += sc59x_64.o 17 17 18 - obj-$(CONFIG_SPL_BUILD) += spl.o 18 + obj-$(CONFIG_XPL_BUILD) += spl.o 19 19 obj-$(CONFIG_SYSCON) += rcu.o
+1 -1
arch/arm/mach-sc5xx/config.mk
··· 8 8 # Contact: Greg Malysa <greg.malysa@timesys.com> 9 9 # 10 10 11 - ifdef CONFIG_SPL_BUILD 11 + ifdef CONFIG_XPL_BUILD 12 12 INPUTS-y += $(obj)/u-boot-spl.ldr 13 13 endif 14 14
+1 -1
arch/arm/mach-socfpga/Makefile
··· 80 80 obj-y += wrap_pll_config_soc64.o 81 81 endif 82 82 83 - ifdef CONFIG_SPL_BUILD 83 + ifdef CONFIG_XPL_BUILD 84 84 ifdef CONFIG_TARGET_SOCFPGA_GEN5 85 85 obj-y += spl_gen5.o 86 86 obj-y += freeze_controller.o
+3 -3
arch/arm/mach-socfpga/board.c
··· 102 102 u32 jtag_usercode; 103 103 int err; 104 104 105 - #if !IS_ENABLED(CONFIG_SPL_BUILD) && IS_ENABLED(CONFIG_SPL_ATF) 105 + #if !IS_ENABLED(CONFIG_XPL_BUILD) && IS_ENABLED(CONFIG_SPL_ATF) 106 106 err = smc_get_usercode(&jtag_usercode); 107 107 #else 108 108 u32 resp_len = 1; ··· 130 130 return board_id; 131 131 } 132 132 133 - #if IS_ENABLED(CONFIG_SPL_BUILD) && IS_ENABLED(CONFIG_TARGET_SOCFPGA_SOC64) 133 + #if IS_ENABLED(CONFIG_XPL_BUILD) && IS_ENABLED(CONFIG_TARGET_SOCFPGA_SOC64) 134 134 int board_fit_config_name_match(const char *name) 135 135 { 136 136 char board_name[10]; ··· 154 154 } 155 155 #endif 156 156 157 - #if !IS_ENABLED(CONFIG_SPL_BUILD) && IS_ENABLED(CONFIG_FIT) 157 + #if !IS_ENABLED(CONFIG_XPL_BUILD) && IS_ENABLED(CONFIG_FIT) 158 158 void board_prep_linux(struct bootm_headers *images) 159 159 { 160 160 bool use_fit = false;
+1 -1
arch/arm/mach-socfpga/clock_manager.c
··· 99 99 } 100 100 #endif 101 101 102 - #ifndef CONFIG_SPL_BUILD 102 + #ifndef CONFIG_XPL_BUILD 103 103 static int do_showclocks(struct cmd_tbl *cmdtp, int flag, int argc, 104 104 char *const argv[]) 105 105 {
+1 -1
arch/arm/mach-socfpga/clock_manager_arria10.c
··· 12 12 #include <asm/arch/clock_manager.h> 13 13 #include <linux/delay.h> 14 14 15 - #ifdef CONFIG_SPL_BUILD 15 + #ifdef CONFIG_XPL_BUILD 16 16 17 17 void sdelay(unsigned long loops); 18 18 u32 wait_on_value(u32 read_bit_mask, u32 match_value, void *read_addr,
+1 -1
arch/arm/mach-socfpga/include/mach/boot0.h
··· 9 9 _start: 10 10 ARM_VECTORS 11 11 12 - #ifdef CONFIG_SPL_BUILD 12 + #ifdef CONFIG_XPL_BUILD 13 13 .balignl 64,0xf33db33f; 14 14 15 15 .word 0x1337c0d3; /* SoCFPGA preloader validation word */
+1 -1
arch/arm/mach-socfpga/include/mach/clock_manager_arria10.h
··· 62 62 #define CLKMGR_INTER CLKMGR_A10_INTER 63 63 #define CLKMGR_PERPLL_EN CLKMGR_A10_PERPLL_EN 64 64 65 - #ifdef CONFIG_SPL_BUILD 65 + #ifdef CONFIG_XPL_BUILD 66 66 int cm_basic_init(const void *blob); 67 67 #endif 68 68
+1 -1
arch/arm/mach-socfpga/lowlevel_init_soc64.S
··· 13 13 mov x29, lr /* Save LR */ 14 14 15 15 #if defined(CONFIG_GICV2) || defined(CONFIG_GICV3) 16 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_ATF) 16 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_ATF) 17 17 wait_for_atf: 18 18 ldr x4, =CPU_RELEASE_ADDR 19 19 ldr x5, [x4]
+1 -1
arch/arm/mach-socfpga/mailbox_s10.c
··· 400 400 401 401 int mbox_reset_cold(void) 402 402 { 403 - #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_ATF) 403 + #if !defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_ATF) 404 404 psci_system_reset(); 405 405 #else 406 406 int ret;
+1 -1
arch/arm/mach-socfpga/misc.c
··· 180 180 return 0; 181 181 } 182 182 183 - #ifndef CONFIG_SPL_BUILD 183 + #ifndef CONFIG_XPL_BUILD 184 184 static int do_bridge(struct cmd_tbl *cmdtp, int flag, int argc, 185 185 char *const argv[]) 186 186 {
+1 -1
arch/arm/mach-socfpga/misc_arria10.c
··· 58 58 }, 59 59 }; 60 60 61 - #if defined(CONFIG_SPL_BUILD) 61 + #if defined(CONFIG_XPL_BUILD) 62 62 static struct pl310_regs *const pl310 = 63 63 (struct pl310_regs *)CFG_SYS_PL310_BASE; 64 64 static const struct socfpga_noc_fw_ocram *noc_fw_ocram_base =
+1 -1
arch/arm/mach-socfpga/misc_gen5.c
··· 213 213 return 0; 214 214 } 215 215 216 - #ifndef CONFIG_SPL_BUILD 216 + #ifndef CONFIG_XPL_BUILD 217 217 static struct socfpga_sdr_ctrl *sdr_ctrl = 218 218 (struct socfpga_sdr_ctrl *)SDR_CTRLGRP_ADDRESS; 219 219
+1 -1
arch/arm/mach-socfpga/reset_manager_s10.c
··· 58 58 59 59 void socfpga_bridges_reset(int enable) 60 60 { 61 - #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_ATF) 61 + #if !defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_ATF) 62 62 u64 arg = enable; 63 63 64 64 int ret = invoke_smc(INTEL_SIP_SMC_HPS_SET_BRIDGES, &arg, 1, NULL, 0);
+1 -1
arch/arm/mach-socfpga/secure_vab.c
··· 120 120 debug("mbox_relocate_data_addr = 0x%p\n", mbox_relocate_data_addr); 121 121 122 122 do { 123 - if (!IS_ENABLED(CONFIG_SPL_BUILD) && IS_ENABLED(CONFIG_SPL_ATF)) { 123 + if (!IS_ENABLED(CONFIG_XPL_BUILD) && IS_ENABLED(CONFIG_SPL_ATF)) { 124 124 /* Invoke SMC call to ATF to send the VAB certificate to SDM */ 125 125 ret = smc_send_mailbox(MBOX_VAB_SRC_CERT, mbox_data_sz, 126 126 (u32 *)mbox_relocate_data_addr, 0, &resp_len,
+2 -2
arch/arm/mach-socfpga/timer_s10.c
··· 14 14 */ 15 15 int timer_init(void) 16 16 { 17 - #ifdef CONFIG_SPL_BUILD 17 + #ifdef CONFIG_XPL_BUILD 18 18 int enable = 0x3; /* timer enable + output signal masked */ 19 19 int loadval = ~0; 20 20 ··· 56 56 57 57 while (__get_time_stamp() < tmp + 1) /* loop till event */ 58 58 ; 59 - } 59 + }
+3 -3
arch/arm/mach-socfpga/wrap_pll_config_soc64.c
··· 11 11 12 12 const struct cm_config * const cm_get_default_config(void) 13 13 { 14 - #ifdef CONFIG_SPL_BUILD 14 + #ifdef CONFIG_XPL_BUILD 15 15 struct cm_config *cm_handoff_cfg = (struct cm_config *) 16 16 (SOC64_HANDOFF_CLOCK + SOC64_HANDOFF_OFFSET_DATA); 17 17 u32 *conversion = (u32 *)cm_handoff_cfg; ··· 32 32 33 33 const unsigned int cm_get_osc_clk_hz(void) 34 34 { 35 - #ifdef CONFIG_SPL_BUILD 35 + #ifdef CONFIG_XPL_BUILD 36 36 37 37 u32 clock = readl(SOC64_HANDOFF_CLOCK_OSC); 38 38 ··· 50 50 51 51 const unsigned int cm_get_fpga_clk_hz(void) 52 52 { 53 - #ifdef CONFIG_SPL_BUILD 53 + #ifdef CONFIG_XPL_BUILD 54 54 u32 clock = readl(SOC64_HANDOFF_CLOCK_FPGA); 55 55 56 56 writel(clock,
+1 -1
arch/arm/mach-stm32mp/Makefile
··· 13 13 obj-$(CONFIG_STM32MP25X) += stm32mp2/ 14 14 15 15 obj-$(CONFIG_STM32_ECDSA_VERIFY) += ecdsa_romapi.o 16 - ifndef CONFIG_SPL_BUILD 16 + ifndef CONFIG_XPL_BUILD 17 17 obj-y += cmd_stm32prog/ 18 18 obj-$(CONFIG_CMD_STM32KEY) += cmd_stm32key.o 19 19 obj-$(CONFIG_TFABOOT) += boot_params.o
+6 -6
arch/arm/mach-stm32mp/bsec.c
··· 409 409 u32 tmp_data = 0; 410 410 int ret; 411 411 412 - if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_SPL_BUILD)) 412 + if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_XPL_BUILD)) 413 413 return stm32_smc(STM32_SMC_BSEC, 414 414 STM32_SMC_READ_OTP, 415 415 otp, 0, val); ··· 440 440 { 441 441 struct stm32mp_bsec_plat *plat; 442 442 443 - if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_SPL_BUILD)) 443 + if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_XPL_BUILD)) 444 444 return stm32_smc(STM32_SMC_BSEC, 445 445 STM32_SMC_READ_SHADOW, 446 446 otp, 0, val); ··· 469 469 { 470 470 struct stm32mp_bsec_plat *plat; 471 471 472 - if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_SPL_BUILD)) 472 + if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_XPL_BUILD)) 473 473 return stm32_smc_exec(STM32_SMC_BSEC, 474 474 STM32_SMC_PROG_OTP, 475 475 otp, val); ··· 484 484 { 485 485 struct stm32mp_bsec_plat *plat; 486 486 487 - if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_SPL_BUILD)) 487 + if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_XPL_BUILD)) 488 488 return stm32_smc_exec(STM32_SMC_BSEC, 489 489 STM32_SMC_WRITE_SHADOW, 490 490 otp, val); ··· 504 504 return 0; /* nothing to do */ 505 505 } 506 506 507 - if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_SPL_BUILD)) 507 + if (IS_ENABLED(CONFIG_ARM_SMCCC) && !IS_ENABLED(CONFIG_XPL_BUILD)) 508 508 return stm32_smc_exec(STM32_SMC_BSEC, 509 509 STM32_SMC_WRLOCK_OTP, 510 510 otp, 0); ··· 762 762 * update unlocked shadow for OTP cleared by the rom code 763 763 * only executed in SPL, it is done in TF-A for TFABOOT 764 764 */ 765 - if (IS_ENABLED(CONFIG_SPL_BUILD) && !data->ta) { 765 + if (IS_ENABLED(CONFIG_XPL_BUILD) && !data->ta) { 766 766 plat = dev_get_plat(dev); 767 767 768 768 /* here 57 is the value for STM32MP15x ROM code, only MPU with SPL support*/
+1 -1
arch/arm/mach-stm32mp/stm32mp1/Makefile
··· 8 8 obj-$(CONFIG_STM32MP13X) += stm32mp13x.o 9 9 obj-$(CONFIG_STM32MP15X) += stm32mp15x.o 10 10 11 - ifdef CONFIG_SPL_BUILD 11 + ifdef CONFIG_XPL_BUILD 12 12 obj-y += spl.o 13 13 obj-y += tzc400.o 14 14 else
+3 -3
arch/arm/mach-stm32mp/stm32mp1/cpu.c
··· 57 57 bool use_lmb = false; 58 58 enum dcache_option option; 59 59 60 - if (IS_ENABLED(CONFIG_SPL_BUILD)) { 60 + if (IS_ENABLED(CONFIG_XPL_BUILD)) { 61 61 /* STM32_SYSRAM_BASE exist only when SPL is supported */ 62 62 #ifdef CONFIG_SPL 63 63 start = ALIGN_DOWN(STM32_SYSRAM_BASE, MMU_SECTION_SIZE); ··· 133 133 if (IS_ENABLED(CONFIG_CMD_STM32PROG_SERIAL) && 134 134 (boot_mode & TAMP_BOOT_DEVICE_MASK) == BOOT_SERIAL_UART) 135 135 gd->flags |= GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE; 136 - else if (IS_ENABLED(CONFIG_DEBUG_UART) && IS_ENABLED(CONFIG_SPL_BUILD)) 136 + else if (IS_ENABLED(CONFIG_DEBUG_UART) && IS_ENABLED(CONFIG_XPL_BUILD)) 137 137 debug_uart_init(); 138 138 139 139 return 0; ··· 339 339 return nt_fw_dtb; 340 340 } 341 341 342 - #ifdef CONFIG_SPL_BUILD 342 + #ifdef CONFIG_XPL_BUILD 343 343 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) 344 344 { 345 345 typedef void __noreturn (*image_entry_stm32_t)(u32 romapi);
+2 -2
arch/arm/mach-stm32mp/stm32mp1/stm32mp15x.c
··· 214 214 /* weak function: STM32MP15x mach init for boot without TFA */ 215 215 void stm32mp_cpu_init(void) 216 216 { 217 - if (IS_ENABLED(CONFIG_SPL_BUILD)) { 217 + if (IS_ENABLED(CONFIG_XPL_BUILD)) { 218 218 security_init(); 219 219 update_bootmode(); 220 220 } 221 221 222 222 /* reset copro state in SPL, when used, or in U-Boot */ 223 - if (!IS_ENABLED(CONFIG_SPL) || IS_ENABLED(CONFIG_SPL_BUILD)) { 223 + if (!IS_ENABLED(CONFIG_SPL) || IS_ENABLED(CONFIG_XPL_BUILD)) { 224 224 /* Reset Coprocessor state unless it wakes up from Standby power mode */ 225 225 if (!(readl(PWR_MCUCR) & PWR_MCUCR_SBF)) { 226 226 writel(TAMP_COPRO_STATE_OFF, TAMP_COPRO_STATE);
+1 -1
arch/arm/mach-sunxi/Makefile
··· 29 29 obj-y += timer.o 30 30 endif 31 31 32 - ifdef CONFIG_SPL_BUILD 32 + ifdef CONFIG_XPL_BUILD 33 33 obj-y += clock.o 34 34 obj-$(CONFIG_MACH_SUNIV) += dram_suniv.o 35 35 obj-$(CONFIG_DRAM_SUN4I) += dram_sun4i.o
+5 -5
arch/arm/mach-sunxi/board.c
··· 74 74 } 75 75 #endif /* CONFIG_ARM64 */ 76 76 77 - #ifdef CONFIG_SPL_BUILD 77 + #ifdef CONFIG_XPL_BUILD 78 78 static int gpio_init(void) 79 79 { 80 80 __maybe_unused uint val; ··· 209 209 return 0; 210 210 } 211 211 SPL_LOAD_IMAGE_METHOD("FEL", 0, BOOT_DEVICE_BOARD, spl_board_load_image); 212 - #endif /* CONFIG_SPL_BUILD */ 212 + #endif /* CONFIG_XPL_BUILD */ 213 213 214 214 #define SUNXI_INVALID_BOOT_SOURCE -1 215 215 ··· 258 258 * proper, just return MMC0 as a placeholder, for now. 259 259 */ 260 260 if (IS_ENABLED(CONFIG_MACH_SUNIV) && 261 - !IS_ENABLED(CONFIG_SPL_BUILD)) 261 + !IS_ENABLED(CONFIG_XPL_BUILD)) 262 262 return SUNXI_BOOTED_FROM_MMC0; 263 263 264 264 if (IS_ENABLED(CONFIG_MACH_SUNIV)) ··· 314 314 return -1; /* Never reached */ 315 315 } 316 316 317 - #ifdef CONFIG_SPL_BUILD 317 + #ifdef CONFIG_XPL_BUILD 318 318 uint32_t sunxi_get_spl_size(void) 319 319 { 320 320 struct boot_file_head *egon_head = (void *)SPL_ADDR; ··· 478 478 #endif 479 479 sunxi_board_init(); 480 480 } 481 - #endif /* CONFIG_SPL_BUILD */ 481 + #endif /* CONFIG_XPL_BUILD */ 482 482 483 483 #if !CONFIG_IS_ENABLED(SYSRESET) 484 484 void reset_cpu(void)
+2 -2
arch/arm/mach-sunxi/clock_sun4i.c
··· 13 13 #include <asm/arch/clock.h> 14 14 #include <asm/arch/sys_proto.h> 15 15 16 - #ifdef CONFIG_SPL_BUILD 16 + #ifdef CONFIG_XPL_BUILD 17 17 void clock_init_safe(void) 18 18 { 19 19 struct sunxi_ccm_reg * const ccm = ··· 175 175 &ccm->cpu_ahb_apb0_cfg); 176 176 sdelay(20); 177 177 } 178 - #endif /* CONFIG_SPL_BUILD */ 178 + #endif /* CONFIG_XPL_BUILD */ 179 179 180 180 /* video, DRAM, PLL_PERIPH clocks */ 181 181 void clock_set_pll3(unsigned int clk)
+2 -2
arch/arm/mach-sunxi/clock_sun50i_h6.c
··· 3 3 #include <asm/arch/clock.h> 4 4 #include <asm/arch/prcm.h> 5 5 6 - #ifdef CONFIG_SPL_BUILD 6 + #ifdef CONFIG_XPL_BUILD 7 7 void clock_init_safe(void) 8 8 { 9 9 struct sunxi_ccm_reg *const ccm = ··· 131 131 132 132 return 0; 133 133 } 134 - #endif /* CONFIG_SPL_BUILD */ 134 + #endif /* CONFIG_XPL_BUILD */ 135 135 136 136 /* PLL_PERIPH0 clock, used by the MMC driver */ 137 137 unsigned int clock_get_pll6(void)
+2 -2
arch/arm/mach-sunxi/clock_sun6i.c
··· 16 16 #include <linux/bitops.h> 17 17 #include <linux/delay.h> 18 18 19 - #ifdef CONFIG_SPL_BUILD 19 + #ifdef CONFIG_XPL_BUILD 20 20 void clock_init_safe(void) 21 21 { 22 22 struct sunxi_ccm_reg * const ccm = ··· 169 169 &ccm->cpu_axi_cfg); 170 170 } 171 171 } 172 - #endif /* CONFIG_SPL_BUILD */ 172 + #endif /* CONFIG_XPL_BUILD */ 173 173 174 174 /* video, DRAM, PLL_PERIPH clocks */ 175 175 void clock_set_pll3(unsigned int clk)
+2 -2
arch/arm/mach-sunxi/clock_sun8i_a83t.c
··· 15 15 #include <asm/arch/sys_proto.h> 16 16 #include <linux/delay.h> 17 17 18 - #ifdef CONFIG_SPL_BUILD 18 + #ifdef CONFIG_XPL_BUILD 19 19 void clock_init_safe(void) 20 20 { 21 21 struct sunxi_ccm_reg * const ccm = ··· 100 100 CPU_CLK_SRC_PLL1 << C1_CPUX_CLK_SRC_SHIFT, 101 101 &ccm->cpu_axi_cfg); 102 102 } 103 - #endif /* CONFIG_SPL_BUILD */ 103 + #endif /* CONFIG_XPL_BUILD */ 104 104 105 105 /* DRAM and PLL_PERIPH0 clock (used by the MMC driver) */ 106 106 void clock_set_pll5(unsigned int clk)
+2 -2
arch/arm/mach-sunxi/clock_sun9i.c
··· 14 14 #include <asm/arch/prcm.h> 15 15 #include <asm/arch/sys_proto.h> 16 16 17 - #ifdef CONFIG_SPL_BUILD 17 + #ifdef CONFIG_XPL_BUILD 18 18 19 19 static void clock_set_pll2(unsigned int clk) 20 20 { ··· 188 188 189 189 return 0; 190 190 } 191 - #endif /* CONFIG_SPL_BUILD */ 191 + #endif /* CONFIG_XPL_BUILD */ 192 192 193 193 /* PLL_PERIPH0 clock (used by the MMC driver) */ 194 194 unsigned int clock_get_pll4_periph0(void)
+1 -1
arch/arm/mach-sunxi/gtbus_sun9i.c
··· 11 11 #include <asm/arch/gtbus_sun9i.h> 12 12 #include <asm/arch/sys_proto.h> 13 13 14 - #ifdef CONFIG_SPL_BUILD 14 + #ifdef CONFIG_XPL_BUILD 15 15 16 16 void gtbus_init(void) 17 17 {
+2 -2
arch/arm/mach-tegra/Makefile
··· 5 5 # (C) Copyright 2000-2008 6 6 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. 7 7 8 - ifdef CONFIG_SPL_BUILD 8 + ifdef CONFIG_XPL_BUILD 9 9 obj-y += spl.o 10 10 obj-y += cpu.o 11 11 else ··· 25 25 obj-$(CONFIG_TEGRA_CLOCK_SCALING) += emc.o 26 26 obj-$(CONFIG_TEGRA_GPU) += gpu.o 27 27 obj-$(CONFIG_TEGRA_IVC) += ivc.o 28 - ifndef CONFIG_SPL_BUILD 28 + ifndef CONFIG_XPL_BUILD 29 29 obj-$(CONFIG_ARMV7_PSCI) += psci.o 30 30 endif 31 31 obj-$(CONFIG_DISPLAY_CPUINFO) += sys_info.o
+1 -1
arch/arm/mach-tegra/board.c
··· 47 47 48 48 static bool from_spl __section(".data"); 49 49 50 - #ifndef CONFIG_SPL_BUILD 50 + #ifndef CONFIG_XPL_BUILD 51 51 void save_boot_params(unsigned long r0, unsigned long r1, unsigned long r2, 52 52 unsigned long r3) 53 53 {
+1 -1
arch/arm/mach-tegra/board2.c
··· 46 46 47 47 DECLARE_GLOBAL_DATA_PTR; 48 48 49 - #ifdef CONFIG_SPL_BUILD 49 + #ifdef CONFIG_XPL_BUILD 50 50 /* TODO(sjg@chromium.org): Remove once SPL supports device tree */ 51 51 U_BOOT_DRVINFO(tegra_gpios) = { 52 52 "gpio_tegra"
+1 -1
arch/arm/mach-tegra/tegra114/Makefile
··· 2 2 # 3 3 # Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved. 4 4 5 - obj-$(CONFIG_SPL_BUILD) += cpu.o 5 + obj-$(CONFIG_XPL_BUILD) += cpu.o 6 6 7 7 obj-y += clock.o
+2 -2
arch/arm/mach-tegra/tegra124/Makefile
··· 5 5 # SPDX-License-Identifier: GPL-2.0+ 6 6 # 7 7 8 - obj-$(CONFIG_SPL_BUILD) += cpu.o 8 + obj-$(CONFIG_XPL_BUILD) += cpu.o 9 9 10 10 obj-y += clock.o 11 11 obj-y += pmc.o 12 12 obj-y += xusb-padctl.o 13 13 obj-y += ../xusb-padctl-common.o 14 14 15 - ifndef CONFIG_SPL_BUILD 15 + ifndef CONFIG_XPL_BUILD 16 16 obj-$(CONFIG_ARMV7_NONSEC) += psci.o 17 17 endif
+1 -1
arch/arm/mach-tegra/tegra20/Makefile
··· 2 2 # 3 3 # (C) Copyright 2010,2011 Nvidia Corporation. 4 4 5 - obj-$(CONFIG_SPL_BUILD) += cpu.o 5 + obj-$(CONFIG_XPL_BUILD) += cpu.o 6 6 obj-$(CONFIG_$(SPL_)CMD_EBTUPDATE) += bct.o 7 7 8 8 # The AVP is ARMv4T architecture so we must use special compiler
+1 -1
arch/arm/mach-tegra/tegra30/Makefile
··· 2 2 # 3 3 # Copyright (c) 2010-2012, NVIDIA CORPORATION. All rights reserved. 4 4 5 - obj-$(CONFIG_SPL_BUILD) += cpu.o 5 + obj-$(CONFIG_XPL_BUILD) += cpu.o 6 6 obj-$(CONFIG_$(SPL_)CMD_EBTUPDATE) += bct.o 7 7 8 8 obj-y += clock.o
+1 -1
arch/arm/mach-uniphier/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - ifdef CONFIG_SPL_BUILD 3 + ifdef CONFIG_XPL_BUILD 4 4 5 5 obj-y += boards.o 6 6 obj-y += spl_board_init.o
+1 -1
arch/arm/mach-uniphier/arm32/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - ifdef CONFIG_SPL_BUILD 3 + ifdef CONFIG_XPL_BUILD 4 4 obj-y += lowlevel_init.o 5 5 obj-$(CONFIG_DEBUG_LL) += debug_ll.o 6 6 else
+2 -2
arch/arm/mach-uniphier/boot-device/boot-device.c
··· 214 214 return !!(readl(sg_base + SG_PINMON0) & BIT(27)); 215 215 } 216 216 217 - #ifndef CONFIG_SPL_BUILD 217 + #ifndef CONFIG_XPL_BUILD 218 218 219 219 static int do_pinmon(struct cmd_tbl *cmdtp, int flag, int argc, 220 220 char *const argv[]) ··· 267 267 "" 268 268 ); 269 269 270 - #endif /* !CONFIG_SPL_BUILD */ 270 + #endif /* !CONFIG_XPL_BUILD */
+1 -1
arch/arm/mach-uniphier/clk/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - ifdef CONFIG_SPL_BUILD 3 + ifdef CONFIG_XPL_BUILD 4 4 5 5 obj-$(CONFIG_ARCH_UNIPHIER_LD4) += clk-early-ld4.o clk-dram-ld4.o dpll-ld4.o 6 6 obj-$(CONFIG_ARCH_UNIPHIER_PRO4) += clk-early-ld4.o clk-dram-ld4.o dpll-pro4.o
+1 -1
arch/arm/mach-uniphier/debug-uart/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - ifdef CONFIG_SPL_BUILD 3 + ifdef CONFIG_XPL_BUILD 4 4 obj-$(CONFIG_ARCH_UNIPHIER_LD4) += debug-uart-ld4.o 5 5 obj-$(CONFIG_ARCH_UNIPHIER_PRO4) += debug-uart-pro4.o 6 6 obj-$(CONFIG_ARCH_UNIPHIER_SLD8) += debug-uart-sld8.o
+2 -2
arch/arm/mach-uniphier/debug-uart/debug-uart.c
··· 26 26 writel(c, base + UNIPHIER_UART_TX); 27 27 } 28 28 29 - #ifdef CONFIG_SPL_BUILD 29 + #ifdef CONFIG_XPL_BUILD 30 30 void sg_set_pinsel(unsigned int pin, unsigned int muxval, 31 31 unsigned int mux_bits, unsigned int reg_stride) 32 32 { ··· 56 56 57 57 void _debug_uart_init(void) 58 58 { 59 - #ifdef CONFIG_SPL_BUILD 59 + #ifdef CONFIG_XPL_BUILD 60 60 void __iomem *base = (void __iomem *)CONFIG_VAL(DEBUG_UART_BASE); 61 61 unsigned int divisor; 62 62
+1 -1
arch/arm/mach-uniphier/dram/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - ifdef CONFIG_SPL_BUILD 3 + ifdef CONFIG_XPL_BUILD 4 4 5 5 obj-$(CONFIG_ARCH_UNIPHIER_LD4) += umc-ld4.o \ 6 6 ddrphy-training.o ddrphy-ld4.o
+1 -1
arch/arm/mach-zynq/Makefile
··· 12 12 obj-y += clk.o 13 13 obj-y += lowlevel_init.o 14 14 AFLAGS_lowlevel_init.o := -mfpu=neon 15 - obj-$(CONFIG_SPL_BUILD) += spl.o ps7_spl_init.o 15 + obj-$(CONFIG_XPL_BUILD) += spl.o ps7_spl_init.o
+1 -1
arch/arm/mach-zynq/cpu.c
··· 52 52 int arch_cpu_init(void) 53 53 { 54 54 zynq_slcr_unlock(); 55 - #ifndef CONFIG_SPL_BUILD 55 + #ifndef CONFIG_XPL_BUILD 56 56 /* Device config APB, unlock the PCAP */ 57 57 writel(0x757BDF0D, &devcfg_base->unlock); 58 58 writel(0xFFFFFFFF, &devcfg_base->rom_shadow);
+3 -3
arch/arm/mach-zynqmp/Makefile
··· 5 5 6 6 obj-y += aes.o clk.o cpu.o 7 7 obj-$(CONFIG_MP) += mp.o 8 - obj-$(CONFIG_SPL_BUILD) += spl.o handoff.o psu_spl_init.o 8 + obj-$(CONFIG_XPL_BUILD) += spl.o handoff.o psu_spl_init.o 9 9 obj-$(CONFIG_SPL_ZYNQMP_DRAM_ECC_INIT) += ecc_spl_init.o 10 10 obj-$(CONFIG_$(SPL_)ZYNQMP_PSU_INIT_ENABLED) += psu_spl_init.o 11 11 12 - ifndef CONFIG_SPL_BUILD 12 + ifndef CONFIG_XPL_BUILD 13 13 obj-$(CONFIG_CMD_ZYNQMP) += zynqmp.o 14 - endif # !CONFIG_SPL_BUILD 14 + endif # !CONFIG_XPL_BUILD
+2 -2
arch/arm/mach-zynqmp/cpu.c
··· 187 187 const u32 mask, 188 188 const u32 value) 189 189 { 190 - if (IS_ENABLED(CONFIG_SPL_BUILD) || current_el() == 3) 190 + if (IS_ENABLED(CONFIG_XPL_BUILD) || current_el() == 3) 191 191 return zynqmp_mmio_rawwrite(address, mask, value); 192 192 #if defined(CONFIG_ZYNQMP_FIRMWARE) 193 193 else ··· 205 205 if (!value) 206 206 return ret; 207 207 208 - if (IS_ENABLED(CONFIG_SPL_BUILD) || current_el() == 3) { 208 + if (IS_ENABLED(CONFIG_XPL_BUILD) || current_el() == 3) { 209 209 ret = zynqmp_mmio_rawread(address, value); 210 210 } 211 211 #if defined(CONFIG_ZYNQMP_FIRMWARE)
+1 -1
arch/microblaze/config.mk
··· 11 11 12 12 LDFLAGS_FINAL += --gc-sections 13 13 14 - ifeq ($(CONFIG_SPL_BUILD),) 14 + ifeq ($(CONFIG_XPL_BUILD),) 15 15 PLATFORM_CPPFLAGS += -fPIC 16 16 LDFLAGS_u-boot += -pic 17 17 endif
+1 -1
arch/microblaze/cpu/Makefile
··· 7 7 obj-y = irq.o 8 8 obj-y += interrupts.o cache.o exception.o cpuinfo.o relocate.o 9 9 obj-$(CONFIG_XILINX_MICROBLAZE0_PVR) += pvr.o 10 - obj-$(CONFIG_SPL_BUILD) += spl.o 10 + obj-$(CONFIG_XPL_BUILD) += spl.o
+4 -4
arch/microblaze/cpu/start.S
··· 26 26 mts rslr, r0 27 27 mts rshr, r20 28 28 29 - #if defined(CONFIG_SPL_BUILD) 29 + #if defined(CONFIG_XPL_BUILD) 30 30 addi r1, r0, CONFIG_SPL_STACK 31 31 #else 32 32 add r1, r0, r20 ··· 83 83 brlid r15, board_init_f_init_reserve 84 84 nop 85 85 86 - #if !defined(CONFIG_SPL_BUILD) 86 + #if !defined(CONFIG_XPL_BUILD) 87 87 /* Setup vectors with pre-relocation symbols */ 88 88 or r5, r0, r0 89 89 brlid r15, __setup_exceptions ··· 122 122 brlid r15, debug_uart_init 123 123 nop 124 124 #endif 125 - #ifndef CONFIG_SPL_BUILD 125 + #ifndef CONFIG_XPL_BUILD 126 126 or r5, r0, r0 /* flags - empty */ 127 127 bri board_init_f 128 128 #else ··· 130 130 #endif 131 131 1: bri 1b 132 132 133 - #ifndef CONFIG_SPL_BUILD 133 + #ifndef CONFIG_XPL_BUILD 134 134 .text 135 135 .ent __setup_exceptions 136 136 .align 2
+1 -1
arch/mips/Makefile
··· 2 2 3 3 head-y := arch/mips/cpu/start.o 4 4 5 - ifeq ($(CONFIG_SPL_BUILD),y) 5 + ifeq ($(CONFIG_XPL_BUILD),y) 6 6 head-$(CONFIG_ARCH_JZ47XX) := arch/mips/mach-jz47xx/start.o 7 7 head-$(CONFIG_SOC_MT7621) := arch/mips/mach-mtmips/mt7621/spl/start.o 8 8 endif
+1 -1
arch/mips/config.mk
··· 53 53 # LDFLAGS_vmlinux += -G 0 -static -n -nostdlib 54 54 # MODFLAGS += -mlong-calls 55 55 # 56 - ifndef CONFIG_SPL_BUILD 56 + ifndef CONFIG_XPL_BUILD 57 57 OBJCOPYFLAGS += -j .data.reloc -j .dtb.init.rodata 58 58 LDFLAGS_FINAL += --emit-relocs 59 59 endif
+1 -1
arch/mips/lib/Makefile
··· 12 12 13 13 obj-$(CONFIG_CMD_BOOTM) += bootm.o 14 14 obj-$(CONFIG_CMD_GO) += boot.o 15 - obj-$(CONFIG_SPL_BUILD) += spl.o 15 + obj-$(CONFIG_XPL_BUILD) += spl.o 16 16 17 17 lib-$(CONFIG_USE_PRIVATE_LIBGCC) += ashldi3.o ashrdi3.o lshrdi3.o udivdi3.o
+1 -1
arch/mips/mach-jz47xx/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0+ 2 2 3 - extra-$(CONFIG_SPL_BUILD) := start.o 3 + extra-$(CONFIG_XPL_BUILD) := start.o 4 4 5 5 obj-$(CONFIG_SOC_JZ4780) += jz4780/
+1 -1
arch/mips/mach-jz47xx/include/mach/jz4780.h
··· 94 94 95 95 void jz4780_tcu_wdt_start(void); 96 96 97 - #ifdef CONFIG_SPL_BUILD 97 + #ifdef CONFIG_XPL_BUILD 98 98 int jz_mmc_init(void __iomem *base); 99 99 #endif 100 100
+2 -2
arch/mips/mach-jz47xx/jz4780/jz4780.c
··· 19 19 #include <mmc.h> 20 20 #include <spl.h> 21 21 22 - #ifdef CONFIG_SPL_BUILD 22 + #ifdef CONFIG_XPL_BUILD 23 23 /* Pointer to the global data structure for SPL */ 24 24 DECLARE_GLOBAL_DATA_PTR; 25 25 gd_t gdata __section(".bss"); ··· 73 73 74 74 hang(); 75 75 } 76 - #endif /* CONFIG_SPL_BUILD */ 76 + #endif /* CONFIG_XPL_BUILD */ 77 77 78 78 phys_addr_t board_get_usable_ram_top(phys_size_t total_size) 79 79 {
+2 -2
arch/mips/mach-jz47xx/start.S
··· 18 18 .globl _start 19 19 .text 20 20 _start: 21 - #ifdef CONFIG_SPL_BUILD 21 + #ifdef CONFIG_XPL_BUILD 22 22 23 23 /* magic value ("MSPL") */ 24 24 .word 0x4d53504c ··· 95 95 .end enable_caches 96 96 97 97 #endif /* CONFIG_SOC_JZ4780 */ 98 - #endif /* !CONFIG_SPL_BUILD */ 98 + #endif /* !CONFIG_XPL_BUILD */
+1 -1
arch/mips/mach-mtmips/Makefile
··· 5 5 ifneq ($(CONFIG_SOC_MT7621),y) 6 6 obj-y += ddr_init.o 7 7 obj-y += ddr_cal.o 8 - obj-$(CONFIG_SPL_BUILD) += spl.o 8 + obj-$(CONFIG_XPL_BUILD) += spl.o 9 9 endif 10 10 11 11 obj-$(CONFIG_SOC_MT7620) += mt7620/
+1 -1
arch/mips/mach-mtmips/cpu.c
··· 21 21 return 0; 22 22 } 23 23 24 - #ifndef CONFIG_SPL_BUILD 24 + #ifndef CONFIG_XPL_BUILD 25 25 static int last_stage_init(void) 26 26 { 27 27 void *src, *dst;
+1 -1
arch/mips/mach-mtmips/mt7620/Makefile
··· 5 5 obj-y += dram.o 6 6 obj-y += serial.o 7 7 8 - ifndef CONFIG_SPL_BUILD 8 + ifndef CONFIG_XPL_BUILD 9 9 obj-y += sysc.o 10 10 endif
+1 -1
arch/mips/mach-mtmips/mt7621/Makefile
··· 3 3 obj-y += init.o 4 4 obj-y += serial.o 5 5 6 - ifeq ($(CONFIG_SPL_BUILD),y) 6 + ifeq ($(CONFIG_XPL_BUILD),y) 7 7 ifeq ($(CONFIG_TPL_BUILD),y) 8 8 obj-y += tpl/ 9 9 else
+1 -1
arch/mips/mach-mtmips/mt7628/Makefile
··· 3 3 obj-y += lowlevel_init.o 4 4 obj-y += init.o 5 5 obj-y += ddr.o 6 - obj-$(CONFIG_SPL_BUILD) += serial.o 6 + obj-$(CONFIG_XPL_BUILD) += serial.o
+1 -1
arch/powerpc/config.mk
··· 27 27 endif 28 28 29 29 # Only test once 30 - ifneq ($(CONFIG_SPL_BUILD),y) 30 + ifneq ($(CONFIG_XPL_BUILD),y) 31 31 archprepare: checkgcc4 32 32 33 33 # GCC 3.x is reported to have problems generating the type of relocation
+1 -1
arch/powerpc/cpu/mpc83xx/Makefile
··· 7 7 8 8 MINIMAL= 9 9 10 - ifdef CONFIG_SPL_BUILD 10 + ifdef CONFIG_XPL_BUILD 11 11 ifndef CONFIG_TPL_BUILD 12 12 ifdef CONFIG_SPL_INIT_MINIMAL 13 13 MINIMAL=y
+3 -3
arch/powerpc/cpu/mpc83xx/start.S
··· 41 41 #endif 42 42 43 43 #if defined(CONFIG_NAND_SPL) || \ 44 - (defined(CONFIG_SPL_BUILD) && CONFIG_IS_ENABLED(INIT_MINIMAL)) 44 + (defined(CONFIG_XPL_BUILD) && CONFIG_IS_ENABLED(INIT_MINIMAL)) 45 45 #define MINIMAL_SPL 46 46 #endif 47 47 48 - #if !defined(CONFIG_SPL_BUILD) && !defined(CONFIG_NAND_SPL) && \ 48 + #if !defined(CONFIG_XPL_BUILD) && !defined(CONFIG_NAND_SPL) && \ 49 49 !defined(CONFIG_SYS_RAMBOOT) 50 50 #define CFG_SYS_FLASHBOOT 51 51 #endif ··· 168 168 /* Initialise the E300 processor core */ 169 169 /*------------------------------------------*/ 170 170 171 - #if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_MPC83XX_WAIT_FOR_NAND)) || \ 171 + #if (defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_MPC83XX_WAIT_FOR_NAND)) || \ 172 172 defined(CONFIG_NAND_SPL) 173 173 /* The FCM begins execution after only the first page 174 174 * is loaded. Wait for the rest before branching
+2 -2
arch/powerpc/cpu/mpc85xx/Makefile
··· 8 8 9 9 MINIMAL= 10 10 11 - ifdef CONFIG_SPL_BUILD 11 + ifdef CONFIG_XPL_BUILD 12 12 ifndef CONFIG_TPL_BUILD 13 13 ifdef CONFIG_SPL_INIT_MINIMAL 14 14 MINIMAL=y ··· 26 26 27 27 obj-$(CONFIG_MP) += release.o 28 28 29 - ifndef CONFIG_SPL_BUILD 29 + ifndef CONFIG_XPL_BUILD 30 30 obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o 31 31 endif 32 32
+1 -1
arch/powerpc/cpu/mpc85xx/cpu_init_early.c
··· 179 179 invalidate_tlb(1); 180 180 181 181 #if defined(CONFIG_SYS_PPC_E500_DEBUG_TLB) && \ 182 - !(CONFIG_IS_ENABLED(INIT_MINIMAL) && defined(CONFIG_SPL_BUILD)) && \ 182 + !(CONFIG_IS_ENABLED(INIT_MINIMAL) && defined(CONFIG_XPL_BUILD)) && \ 183 183 !defined(CONFIG_NAND_SPL) 184 184 disable_tlb(CONFIG_SYS_PPC_E500_DEBUG_TLB); 185 185 #endif
+7 -7
arch/powerpc/cpu/mpc85xx/start.S
··· 28 28 #define LAW_EN 0x80000000 29 29 30 30 #if defined(CONFIG_NAND_SPL) || \ 31 - (defined(CONFIG_SPL_BUILD) && CONFIG_IS_ENABLED(INIT_MINIMAL)) 31 + (defined(CONFIG_XPL_BUILD) && CONFIG_IS_ENABLED(INIT_MINIMAL)) 32 32 #define MINIMAL_SPL 33 33 #endif 34 34 ··· 58 58 END_GOT 59 59 60 60 #ifdef CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR 61 - #if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD) 61 + #if !defined(CONFIG_SPL) || defined(CONFIG_XPL_BUILD) 62 62 63 63 /* Maximal size of the image */ 64 - #ifdef CONFIG_SPL_BUILD 64 + #ifdef CONFIG_XPL_BUILD 65 65 #define MAX_IMAGE_SIZE (CONFIG_SPL_MAX_SIZE - (CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR_DATA * 512)) 66 66 #else 67 67 #define MAX_IMAGE_SIZE CONFIG_SYS_L2_SIZE 68 68 #endif 69 69 70 - #if defined(CONFIG_SPL_BUILD) && CONFIG_SPL_MAX_SIZE < CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR_DATA * 512 70 + #if defined(CONFIG_XPL_BUILD) && CONFIG_SPL_MAX_SIZE < CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR_DATA * 512 71 71 #error "CONFIG_SPL_MAX_SIZE is too small for CONFIG_FSL_PREPBL_ESDHC_BOOT_SECTOR_DATA" 72 72 #endif 73 73 ··· 1138 1138 /* 1139 1139 * For Targets without CONFIG_SPL like P3, P5 1140 1140 * and for targets with CONFIG_SPL like T1, T2, T4, only for 1141 - * u-boot-spl i.e. CONFIG_SPL_BUILD 1141 + * u-boot-spl i.e. CONFIG_XPL_BUILD 1142 1142 */ 1143 1143 #elif defined(CONFIG_RAMBOOT_PBL) && defined(CONFIG_NXP_ESBC) && \ 1144 - (!defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD)) 1144 + (!defined(CONFIG_SPL) || defined(CONFIG_XPL_BUILD)) 1145 1145 /* create a temp mapping in AS = 1 for mapping CONFIG_VAL(SYS_MONITOR_BASE) 1146 1146 * to L3 Address configured by PBL for ISBC code 1147 1147 */ ··· 1617 1617 mr r10,r5 /* Save copy of Destination Address */ 1618 1618 1619 1619 GET_GOT 1620 - #if !defined(CONFIG_SPL_SKIP_RELOCATE) || !defined(CONFIG_SPL_BUILD) 1620 + #if !defined(CONFIG_SPL_SKIP_RELOCATE) || !defined(CONFIG_XPL_BUILD) 1621 1621 mr r3,r5 /* Destination Address */ 1622 1622 lis r4,CONFIG_VAL(SYS_MONITOR_BASE)@h /* Source Address */ 1623 1623 ori r4,r4,CONFIG_VAL(SYS_MONITOR_BASE)@l
+2 -2
arch/powerpc/cpu/mpc85xx/tlb.c
··· 45 45 } 46 46 47 47 #if !defined(CONFIG_NAND_SPL) && \ 48 - (!defined(CONFIG_SPL_BUILD) || !CONFIG_IS_ENABLED(INIT_MINIMAL)) 48 + (!defined(CONFIG_XPL_BUILD) || !CONFIG_IS_ENABLED(INIT_MINIMAL)) 49 49 void read_tlbcam_entry(int idx, u32 *valid, u32 *tsize, unsigned long *epn, 50 50 phys_addr_t *rpn) 51 51 { ··· 313 313 print_size(memsize > CFG_MAX_MEM_MAPPED ? 314 314 memsize - CFG_MAX_MEM_MAPPED + size : size, 315 315 " of DDR memory left unmapped in U-Boot\n"); 316 - #ifndef CONFIG_SPL_BUILD 316 + #ifndef CONFIG_XPL_BUILD 317 317 puts(" "); 318 318 #endif 319 319 }
+1 -1
arch/powerpc/cpu/mpc8xxx/Makefile
··· 4 4 5 5 MINIMAL= 6 6 7 - ifdef CONFIG_SPL_BUILD 7 + ifdef CONFIG_XPL_BUILD 8 8 ifndef CONFIG_TPL_BUILD 9 9 ifdef CONFIG_SPL_INIT_MINIMAL 10 10 MINIMAL=y
+2 -2
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
··· 241 241 spaact_size = sizeof(struct paace) * NUM_SPAACT_ENTRIES; 242 242 243 243 /* Allocate space for Primary PAACT Table */ 244 - #if (defined(CONFIG_SPL_BUILD) && defined(CFG_SPL_PPAACT_ADDR)) 244 + #if (defined(CONFIG_XPL_BUILD) && defined(CFG_SPL_PPAACT_ADDR)) 245 245 ppaact = (void *)CFG_SPL_PPAACT_ADDR; 246 246 #else 247 247 ppaact = memalign(PAMU_TABLE_ALIGNMENT, ppaact_size); ··· 251 251 memset(ppaact, 0, ppaact_size); 252 252 253 253 /* Allocate space for Secondary PAACT Table */ 254 - #if (defined(CONFIG_SPL_BUILD) && defined(CFG_SPL_SPAACT_ADDR)) 254 + #if (defined(CONFIG_XPL_BUILD) && defined(CFG_SPL_SPAACT_ADDR)) 255 255 sec = (void *)CFG_SPL_SPAACT_ADDR; 256 256 #else 257 257 sec = memalign(PAMU_TABLE_ALIGNMENT, spaact_size);
+2 -2
arch/powerpc/cpu/mpc8xxx/law.c
··· 78 78 } 79 79 80 80 #if !defined(CONFIG_NAND_SPL) && \ 81 - (!defined(CONFIG_SPL_BUILD) || !CONFIG_IS_ENABLED(INIT_MINIMAL)) 81 + (!defined(CONFIG_XPL_BUILD) || !CONFIG_IS_ENABLED(INIT_MINIMAL)) 82 82 static int get_law_entry(u8 i, struct law_entry *e) 83 83 { 84 84 u32 lawar; ··· 109 109 } 110 110 111 111 #if !defined(CONFIG_NAND_SPL) && \ 112 - (!defined(CONFIG_SPL_BUILD) || !CONFIG_IS_ENABLED(INIT_MINIMAL)) 112 + (!defined(CONFIG_XPL_BUILD) || !CONFIG_IS_ENABLED(INIT_MINIMAL)) 113 113 int set_last_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id) 114 114 { 115 115 u32 idx;
+1 -1
arch/powerpc/cpu/mpc8xxx/pamu_table.c
··· 28 28 29 29 i++; 30 30 #endif 31 - #if (defined(CONFIG_SPL_BUILD) && (CFG_SYS_INIT_L3_VADDR)) 31 + #if (defined(CONFIG_XPL_BUILD) && (CFG_SYS_INIT_L3_VADDR)) 32 32 tbl->start_addr[i] = 33 33 (uint64_t)virt_to_phys((void *)CFG_SYS_INIT_L3_VADDR); 34 34 tbl->size[i] = 256 * 1024; /* 256K CPC flash */
+4 -4
arch/powerpc/include/asm/fsl_secure_boot.h
··· 36 36 #endif /* #ifdef CONFIG_NXP_ESBC */ 37 37 38 38 #ifdef CONFIG_CHAIN_OF_TRUST 39 - #ifdef CONFIG_SPL_BUILD 39 + #ifdef CONFIG_XPL_BUILD 40 40 /* 41 41 * PPAACT and SPAACT table for PAMU must be placed on DDR after DDR init 42 42 * due to space crunch on CPC and thus malloc will not work. ··· 45 45 #define CFG_SPL_SPAACT_ADDR 0x2f000000 46 46 #define CFG_SPL_JR0_LIODN_S 454 47 47 #define CFG_SPL_JR0_LIODN_NS 458 48 - #endif /* ifdef CONFIG_SPL_BUILD */ 48 + #endif /* ifdef CONFIG_XPL_BUILD */ 49 49 50 - #ifndef CONFIG_SPL_BUILD 50 + #ifndef CONFIG_XPL_BUILD 51 51 #include <config_fsl_chain_trust.h> 52 - #endif /* #ifndef CONFIG_SPL_BUILD */ 52 + #endif /* #ifndef CONFIG_XPL_BUILD */ 53 53 #endif /* #ifdef CONFIG_CHAIN_OF_TRUST */ 54 54 #endif
+2 -2
arch/powerpc/lib/Makefile
··· 9 9 10 10 MINIMAL= 11 11 12 - ifdef CONFIG_SPL_BUILD 12 + ifdef CONFIG_XPL_BUILD 13 13 ifndef CONFIG_TPL_BUILD 14 14 ifdef CONFIG_SPL_INIT_MINIMAL 15 15 MINIMAL=y ··· 45 45 obj-y += traps.o 46 46 endif # not minimal 47 47 48 - ifdef CONFIG_SPL_BUILD 48 + ifdef CONFIG_XPL_BUILD 49 49 obj-$(CONFIG_$(SPL_TPL)_FRAMEWORK) += spl.o 50 50 endif
+1 -1
arch/riscv/cpu/fu540/Makefile
··· 3 3 # Copyright (C) 2020 SiFive, Inc 4 4 # Pragnesh Patel <pragnesh.patel@sifive.com> 5 5 6 - ifeq ($(CONFIG_SPL_BUILD),y) 6 + ifeq ($(CONFIG_XPL_BUILD),y) 7 7 obj-y += spl.o 8 8 else 9 9 obj-y += dram.o
+1 -1
arch/riscv/cpu/fu740/Makefile
··· 3 3 # Copyright (C) 2020-2021 SiFive, Inc 4 4 # Pragnesh Patel <pragnesh.patel@sifive.com> 5 5 6 - ifeq ($(CONFIG_SPL_BUILD),y) 6 + ifeq ($(CONFIG_XPL_BUILD),y) 7 7 obj-y += spl.o 8 8 else 9 9 obj-y += dram.o
+1 -1
arch/riscv/cpu/jh7110/Makefile
··· 2 2 # 3 3 # Copyright (C) 2022 StarFive Technology Co., Ltd. 4 4 5 - ifeq ($(CONFIG_SPL_BUILD),y) 5 + ifeq ($(CONFIG_XPL_BUILD),y) 6 6 obj-y += spl.o 7 7 else 8 8 obj-y += cpu.o
+4 -4
arch/riscv/cpu/start.S
··· 90 90 * Set stackpointer in internal/ex RAM to call board_init_f 91 91 */ 92 92 call_board_init_f: 93 - #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK) 93 + #if defined(CONFIG_XPL_BUILD) && defined(CONFIG_SPL_STACK) 94 94 li t0, CONFIG_SPL_STACK 95 95 #else 96 96 li t0, SYS_INIT_SP_ADDR ··· 218 218 la t5, board_init_f 219 219 jalr t5 /* jump to board_init_f() */ 220 220 221 - #ifdef CONFIG_SPL_BUILD 221 + #ifdef CONFIG_XPL_BUILD 222 222 spl_clear_bss: 223 223 la t0, __bss_start 224 224 la t1, __bss_end ··· 271 271 j board_init_r 272 272 #endif 273 273 274 - #if !defined(CONFIG_SPL_BUILD) 274 + #if !defined(CONFIG_XPL_BUILD) 275 275 /* 276 276 * void relocate_code(addr_sp, gd, addr_moni) 277 277 * ··· 420 420 * jump to it ... 421 421 */ 422 422 jr t4 /* jump to board_init_r() */ 423 - #endif /* !defined(CONFIG_SPL_BUILD) */ 423 + #endif /* !defined(CONFIG_XPL_BUILD) */ 424 424 425 425 #if CONFIG_IS_ENABLED(SMP) 426 426 hart_out_of_bounds_loop:
+1 -1
arch/riscv/lib/Makefile
··· 24 24 endif 25 25 obj-y += setjmp.o 26 26 obj-$(CONFIG_$(SPL_)SMP) += smp.o 27 - obj-$(CONFIG_SPL_BUILD) += spl.o 27 + obj-$(CONFIG_XPL_BUILD) += spl.o 28 28 obj-y += fdt_fixup.o 29 29 obj-$(CONFIG_$(SPL)CMD_BDI) += bdinfo.o 30 30
+2 -2
arch/riscv/lib/sifive_cache.c
··· 10 10 #include <dm/device-internal.h> 11 11 #include <dm/uclass-internal.h> 12 12 13 - #ifndef CONFIG_SPL_BUILD 13 + #ifndef CONFIG_XPL_BUILD 14 14 void enable_caches(void) 15 15 { 16 16 struct udevice *dev; ··· 45 45 46 46 probe_cache_device(DM_DRIVER_GET(sifive_pl2), dev); 47 47 } 48 - #endif /* !CONFIG_SPL_BUILD */ 48 + #endif /* !CONFIG_XPL_BUILD */
+1 -1
arch/sandbox/cpu/Makefile
··· 8 8 obj-y := cache.o cpu.o state.o 9 9 extra-y := start.o os.o 10 10 extra-$(CONFIG_SANDBOX_SDL) += sdl.o 11 - obj-$(CONFIG_SPL_BUILD) += spl.o 11 + obj-$(CONFIG_XPL_BUILD) += spl.o 12 12 obj-$(CONFIG_ETH_SANDBOX_RAW) += eth-raw-os.o 13 13 14 14 # os.c is build in the system environment, so needs standard includes
+1 -1
arch/sandbox/cpu/cpu.c
··· 165 165 166 166 void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags) 167 167 { 168 - #if defined(CONFIG_PCI) && !defined(CONFIG_SPL_BUILD) 168 + #if defined(CONFIG_PCI) && !defined(CONFIG_XPL_BUILD) 169 169 unsigned long plen = len; 170 170 void *ptr; 171 171
+1 -1
arch/sandbox/cpu/start.c
··· 129 129 } 130 130 SANDBOX_CMDLINE_OPT_SHORT(help, 'h', 0, "Display help"); 131 131 132 - #ifndef CONFIG_SPL_BUILD 132 + #ifndef CONFIG_XPL_BUILD 133 133 int sandbox_main_loop_init(void) 134 134 { 135 135 struct sandbox_state *state = state_get_current();
+1 -1
arch/x86/Makefile
··· 10 10 ifndef CONFIG_SPL 11 11 head-y := arch/x86/cpu/start.o 12 12 else 13 - ifdef CONFIG_SPL_BUILD 13 + ifdef CONFIG_XPL_BUILD 14 14 head-y = arch/x86/cpu/start_from_tpl.o 15 15 else 16 16 head-y = arch/x86/cpu/start_from_spl.o
+4 -4
arch/x86/config.mk
··· 10 10 PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_X86) 11 11 PLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm 12 12 13 - ifdef CONFIG_SPL_BUILD 13 + ifdef CONFIG_XPL_BUILD 14 14 IS_32BIT := y 15 15 else 16 16 ifndef CONFIG_X86_64 ··· 26 26 ifeq ($(IS_32BIT),y) 27 27 PLATFORM_CPPFLAGS += -march=i386 -m32 28 28 else 29 - PLATFORM_CPPFLAGS += $(if $(CONFIG_SPL_BUILD),,-fpic) -fno-common -march=core2 -m64 29 + PLATFORM_CPPFLAGS += $(if $(CONFIG_XPL_BUILD),,-fpic) -fno-common -march=core2 -m64 30 30 31 31 ifndef CONFIG_X86_HARDFP 32 32 PLATFORM_CPPFLAGS += -mno-mmx -mno-sse ··· 86 86 PLATFORM_CPPFLAGS += -mregparm=3 87 87 endif 88 88 KBUILD_LDFLAGS += --emit-relocs 89 - LDFLAGS_FINAL += --gc-sections $(if $(CONFIG_SPL_BUILD),,-pie) 89 + LDFLAGS_FINAL += --gc-sections $(if $(CONFIG_XPL_BUILD),,-pie) 90 90 91 91 endif 92 92 93 93 ifdef CONFIG_X86_64 94 - ifndef CONFIG_SPL_BUILD 94 + ifndef CONFIG_XPL_BUILD 95 95 PLATFORM_CPPFLAGS += -D__x86_64__ 96 96 else 97 97 PLATFORM_CPPFLAGS += -D__I386__
+1 -1
arch/x86/cpu/Makefile
··· 15 15 ifndef CONFIG_SPL 16 16 extra-y = start.o 17 17 else 18 - ifdef CONFIG_SPL_BUILD 18 + ifdef CONFIG_XPL_BUILD 19 19 extra-y = start_from_tpl.o 20 20 else 21 21 extra-y = start_from_spl.o
+5 -5
arch/x86/cpu/apollolake/Makefile
··· 2 2 # 3 3 # Copyright 2019 Google LLC 4 4 5 - obj-$(CONFIG_SPL_BUILD) += cpu_spl.o 6 - obj-$(CONFIG_SPL_BUILD) += spl.o 7 - obj-$(CONFIG_SPL_BUILD) += systemagent.o 5 + obj-$(CONFIG_XPL_BUILD) += cpu_spl.o 6 + obj-$(CONFIG_XPL_BUILD) += spl.o 7 + obj-$(CONFIG_XPL_BUILD) += systemagent.o 8 8 obj-y += cpu_common.o 9 9 10 10 ifndef CONFIG_TPL_BUILD 11 11 obj-y += cpu.o 12 12 obj-y += punit.o 13 13 obj-y += fsp_bindings.o 14 - ifdef CONFIG_SPL_BUILD 14 + ifdef CONFIG_XPL_BUILD 15 15 obj-y += fsp_m.o 16 16 endif 17 17 endif 18 - ifndef CONFIG_SPL_BUILD 18 + ifndef CONFIG_XPL_BUILD 19 19 obj-y += acpi.o 20 20 obj-y += fsp_s.o 21 21 endif
+2 -2
arch/x86/cpu/apollolake/fsp_bindings.c
··· 247 247 return 0; 248 248 } 249 249 250 - #if defined(CONFIG_SPL_BUILD) 250 + #if defined(CONFIG_XPL_BUILD) 251 251 const struct fsp_binding fsp_m_bindings[] = { 252 252 { 253 253 .type = FSP_UINT32, ··· 653 653 } 654 654 #endif 655 655 656 - #if !defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) 656 + #if !defined(CONFIG_XPL_BUILD) && !defined(CONFIG_TPL_BUILD) 657 657 const struct fsp_binding fsp_s_bindings[] = { 658 658 { 659 659 .type = FSP_UINT8,
+2 -2
arch/x86/cpu/broadwell/Makefile
··· 6 6 obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += cpu_full.o 7 7 8 8 ifdef CONFIG_SPL 9 - ifndef CONFIG_SPL_BUILD 9 + ifndef CONFIG_XPL_BUILD 10 10 obj-y += cpu_from_spl.o 11 11 obj-y += cpu_full.o 12 12 obj-y += refcode.o 13 13 endif 14 - ifndef CONFIG_SPL_BUILD 14 + ifndef CONFIG_XPL_BUILD 15 15 # obj-y += cpu_from_spl.o 16 16 obj-y += adsp.o 17 17 obj-y += sata.o
+1 -1
arch/x86/cpu/broadwell/cpu_full.c
··· 84 84 [0x11] = 128, 85 85 }; 86 86 87 - #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_TPL_BUILD) 87 + #if defined(CONFIG_XPL_BUILD) && !defined(CONFIG_TPL_BUILD) 88 88 int arch_cpu_init(void) 89 89 { 90 90 return 0;
+1 -1
arch/x86/cpu/broadwell/pch.c
··· 606 606 return broadwell_pch_early_init(dev); 607 607 else 608 608 return broadwell_pch_init(dev); 609 - } else if (IS_ENABLED(CONFIG_SPL) && !IS_ENABLED(CONFIG_SPL_BUILD)) { 609 + } else if (IS_ENABLED(CONFIG_SPL) && !IS_ENABLED(CONFIG_XPL_BUILD)) { 610 610 return broadwell_pch_init(dev); 611 611 } else { 612 612 return 0;
+1 -1
arch/x86/cpu/config.mk
··· 9 9 LDPPFLAGS += -DSTART_16=$(CONFIG_SYS_X86_START16) 10 10 11 11 ifdef CONFIG_X86_64 12 - ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_EFI_APP),) 12 + ifeq ($(CONFIG_XPL_BUILD)$(CONFIG_EFI_APP),) 13 13 LDSCRIPT = $(srctree)/arch/x86/cpu/u-boot-64.lds 14 14 endif 15 15 endif
+1 -1
arch/x86/cpu/coreboot/Makefile
··· 14 14 ifndef CONFIG_SPL 15 15 obj-y += car.o 16 16 endif 17 - ifdef CONFIG_SPL_BUILD 17 + ifdef CONFIG_XPL_BUILD 18 18 obj-y += coreboot_spl.o 19 19 else 20 20 obj-y += sdram.o
+1 -1
arch/x86/cpu/coreboot/coreboot.c
··· 82 82 83 83 static int last_stage_init(void) 84 84 { 85 - if (IS_ENABLED(CONFIG_SPL_BUILD)) 85 + if (IS_ENABLED(CONFIG_XPL_BUILD)) 86 86 return 0; 87 87 88 88 board_final_init();
+2 -2
arch/x86/cpu/cpu.c
··· 185 185 #endif 186 186 187 187 #if !defined(CONFIG_SYS_COREBOOT) && !defined(CONFIG_EFI_STUB) && \ 188 - !defined(CONFIG_SPL_BUILD) 188 + !defined(CONFIG_XPL_BUILD) 189 189 /* 190 190 * Implement a weak default function for boards that need to do some final init 191 191 * before the system is ready. ··· 247 247 } 248 248 EVENT_SPY_SIMPLE(EVT_LAST_STAGE_INIT, last_stage_init); 249 249 250 - #endif /* !SYS_COREBOOT && !EFI_STUB && !SPL_BUILD */ 250 + #endif /* !SYS_COREBOOT && !EFI_STUB && !XPL_BUILD */ 251 251 252 252 static int x86_init_cpus(void) 253 253 {
+3 -3
arch/x86/cpu/intel_common/Makefile
··· 11 11 obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += mrc.o 12 12 endif 13 13 14 - ifndef CONFIG_SPL_BUILD 14 + ifndef CONFIG_XPL_BUILD 15 15 obj-$(CONFIG_INTEL_GMA_ACPI) += intel_opregion.o 16 16 endif 17 17 18 18 ifdef CONFIG_INTEL_CAR_CQOS 19 19 obj-$(CONFIG_TPL_BUILD) += car2.o 20 - ifndef CONFIG_SPL_BUILD 20 + ifndef CONFIG_XPL_BUILD 21 21 obj-y += car2_uninit.o 22 22 endif 23 23 endif ··· 38 38 obj-$(CONFIG_HAVE_P2SB) += p2sb.o 39 39 40 40 ifdef CONFIG_SPL 41 - ifndef CONFIG_SPL_BUILD 41 + ifndef CONFIG_XPL_BUILD 42 42 ifndef CONFIG_SYS_COREBOOT 43 43 obj-y += cpu_from_spl.o 44 44 endif
+1 -1
arch/x86/cpu/ivybridge/Makefile
··· 9 9 obj-y += early_me.o 10 10 obj-y += lpc.o 11 11 obj-y += northbridge.o 12 - ifndef CONFIG_SPL_BUILD 12 + ifndef CONFIG_XPL_BUILD 13 13 obj-y += sata.o 14 14 endif 15 15 obj-$(CONFIG_$(SPL_)X86_32BIT_INIT) += sdram.o
+1 -1
arch/x86/include/asm/string.h
··· 18 18 * Our assembly routines do not work on in 64-bit mode and we don't do a lot of 19 19 * copying in SPL, so code size is more important there. 20 20 */ 21 - #if defined(CONFIG_SPL_BUILD) || !IS_ENABLED(CONFIG_X86_32BIT_INIT) 21 + #if defined(CONFIG_XPL_BUILD) || !IS_ENABLED(CONFIG_X86_32BIT_INIT) 22 22 23 23 #undef __HAVE_ARCH_MEMCPY 24 24 extern void *memcpy(void *, const void *, __kernel_size_t);
+5 -5
arch/x86/lib/Makefile
··· 11 11 obj-y += bios_interrupts.o 12 12 endif 13 13 14 - ifndef CONFIG_SPL_BUILD 14 + ifndef CONFIG_XPL_BUILD 15 15 obj-$(CONFIG_X86_32BIT_INIT) += string.o 16 16 endif 17 17 18 - ifndef CONFIG_SPL_BUILD 18 + ifndef CONFIG_XPL_BUILD 19 19 obj-$(CONFIG_CMD_BOOTM) += bootm.o 20 20 endif 21 21 obj-y += cmd_boot.o ··· 47 47 obj-$(CONFIG_$(SPL_TPL_)GENERATE_ACPI_TABLE) += acpi_table.o 48 48 endif 49 49 obj-y += tables.o 50 - ifndef CONFIG_SPL_BUILD 50 + ifndef CONFIG_XPL_BUILD 51 51 obj-$(CONFIG_ZBOOT) += zimage.o 52 52 endif 53 53 obj-$(CONFIG_USE_HOB) += hob.o ··· 58 58 obj-$(CONFIG_FSP_VERSION2) += fsp2/ 59 59 endif 60 60 61 - ifdef CONFIG_SPL_BUILD 61 + ifdef CONFIG_XPL_BUILD 62 62 ifdef CONFIG_TPL_BUILD 63 63 obj-y += tpl.o 64 64 else ··· 96 96 97 97 else 98 98 99 - ifndef CONFIG_SPL_BUILD 99 + ifndef CONFIG_XPL_BUILD 100 100 ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),) 101 101 extra-y += $(EFI_CRT0) $(EFI_RELOC) 102 102 endif
+1 -1
arch/x86/lib/fsp/Makefile
··· 4 4 5 5 obj-y += fsp_common.o 6 6 obj-y += fsp_dram.o 7 - ifndef CONFIG_SPL_BUILD 7 + ifndef CONFIG_XPL_BUILD 8 8 obj-$(CONFIG_VIDEO_FSP) += fsp_graphics.o 9 9 endif 10 10 obj-y += fsp_support.o