• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision46da163b723e5623b50df946aa5f9627567397bf (tree)
l'heure2022-07-26 02:02:04
AuteurAndrew Davis <afd@ti.c...>
CommiterTom Rini

Message de Log

arm: mach-k3: Only build init files for SPL

The content of these files are only used in SPL builds. The contents are
already ifdef for the same, remove that and only include the whole file
in the build when building for SPL.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>

Change Summary

Modification

--- a/arch/arm/mach-k3/Makefile
+++ b/arch/arm/mach-k3/Makefile
@@ -3,16 +3,19 @@
33 # Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
44 # Lokesh Vutla <lokeshvutla@ti.com>
55
6-obj-$(CONFIG_SOC_K3_AM6) += am6_init.o
7-obj-$(CONFIG_SOC_K3_J721E) += j721e_init.o j721e/ j7200/
8-obj-$(CONFIG_SOC_K3_J721S2) += j721s2_init.o j721s2/
9-obj-$(CONFIG_SOC_K3_AM642) += am642_init.o
10-obj-$(CONFIG_SOC_K3_AM625) += am625_init.o am62x/
6+obj-$(CONFIG_SOC_K3_J721E) += j721e/ j7200/
7+obj-$(CONFIG_SOC_K3_J721S2) += j721s2/
8+obj-$(CONFIG_SOC_K3_AM625) += am62x/
119 obj-$(CONFIG_ARM64) += arm64-mmu.o
1210 obj-$(CONFIG_CPU_V7R) += r5_mpu.o lowlevel_init.o
1311 obj-$(CONFIG_TI_SECURE_DEVICE) += security.o
1412 obj-$(CONFIG_ARM64) += cache.o
1513 ifeq ($(CONFIG_SPL_BUILD),y)
14+obj-$(CONFIG_SOC_K3_AM6) += am6_init.o
15+obj-$(CONFIG_SOC_K3_J721E) += j721e_init.o
16+obj-$(CONFIG_SOC_K3_J721S2) += j721s2_init.o
17+obj-$(CONFIG_SOC_K3_AM642) += am642_init.o
18+obj-$(CONFIG_SOC_K3_AM625) += am625_init.o
1619 obj-$(CONFIG_K3_LOAD_SYSFW) += sysfw-loader.o
1720 endif
1821 obj-y += common.o
--- a/arch/arm/mach-k3/am625_init.c
+++ b/arch/arm/mach-k3/am625_init.c
@@ -15,8 +15,6 @@
1515 #include <dm/uclass-internal.h>
1616 #include <dm/pinctrl.h>
1717
18-#if defined(CONFIG_SPL_BUILD)
19-
2018 /*
2119 * This uninitialized global variable would normal end up in the .bss section,
2220 * but the .bss is cleared between writing and reading this variable, so move
@@ -290,5 +288,3 @@ u32 spl_boot_device(void)
290288
291289 return bootmedia;
292290 }
293-
294-#endif /* CONFIG_SPL_BUILD */
--- a/arch/arm/mach-k3/am642_init.c
+++ b/arch/arm/mach-k3/am642_init.c
@@ -23,7 +23,6 @@
2323 #include <mmc.h>
2424 #include <dm/root.h>
2525
26-#if defined(CONFIG_SPL_BUILD)
2726 #define MCU_CTRL_MMR0_BASE 0x04500000
2827 #define CTRLMMR_MCU_RST_CTRL 0x04518170
2928
@@ -348,7 +347,6 @@ u32 spl_boot_device(void)
348347 else
349348 return __get_backup_bootmedia(devstat);
350349 }
351-#endif
352350
353351 #if defined(CONFIG_SYS_K3_SPL_ATF)
354352
--- a/arch/arm/mach-k3/am6_init.c
+++ b/arch/arm/mach-k3/am6_init.c
@@ -26,7 +26,6 @@
2626
2727 DECLARE_GLOBAL_DATA_PTR;
2828
29-#ifdef CONFIG_SPL_BUILD
3029 #ifdef CONFIG_K3_LOAD_SYSFW
3130 #ifdef CONFIG_TI_SECURE_DEVICE
3231 struct fwl_data main_cbass_fwls[] = {
@@ -359,7 +358,6 @@ u32 spl_boot_device(void)
359358 else
360359 return __get_backup_bootmedia(devstat);
361360 }
362-#endif
363361
364362 #ifdef CONFIG_SYS_K3_SPL_ATF
365363
--- a/arch/arm/mach-k3/j721e_init.c
+++ b/arch/arm/mach-k3/j721e_init.c
@@ -24,7 +24,6 @@
2424 #include <mmc.h>
2525 #include <remoteproc.h>
2626
27-#ifdef CONFIG_SPL_BUILD
2827 #ifdef CONFIG_K3_LOAD_SYSFW
2928 #ifdef CONFIG_TI_SECURE_DEVICE
3029 struct fwl_data cbass_hc_cfg0_fwls[] = {
@@ -384,7 +383,6 @@ u32 spl_boot_device(void)
384383 else
385384 return __get_backup_bootmedia(main_devstat);
386385 }
387-#endif
388386
389387 #ifdef CONFIG_SYS_K3_SPL_ATF
390388
--- a/arch/arm/mach-k3/j721s2_init.c
+++ b/arch/arm/mach-k3/j721s2_init.c
@@ -22,8 +22,6 @@
2222 #include <mmc.h>
2323 #include <remoteproc.h>
2424
25-#ifdef CONFIG_SPL_BUILD
26-
2725 static void ctrl_mmr_unlock(void)
2826 {
2927 /* Unlock all WKUP_CTRL_MMR0 module registers */
@@ -255,7 +253,6 @@ u32 spl_boot_device(void)
255253 else
256254 return __get_backup_bootmedia(main_devstat);
257255 }
258-#endif
259256
260257 #define J721S2_DEV_MCU_RTI0 295
261258 #define J721S2_DEV_MCU_RTI1 296