Révision | 46da163b723e5623b50df946aa5f9627567397bf (tree) |
---|---|
l'heure | 2022-07-26 02:02:04 |
Auteur | Andrew Davis <afd@ti.c...> |
Commiter | Tom Rini |
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>
@@ -3,16 +3,19 @@ | ||
3 | 3 | # Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/ |
4 | 4 | # Lokesh Vutla <lokeshvutla@ti.com> |
5 | 5 | |
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/ | |
11 | 9 | obj-$(CONFIG_ARM64) += arm64-mmu.o |
12 | 10 | obj-$(CONFIG_CPU_V7R) += r5_mpu.o lowlevel_init.o |
13 | 11 | obj-$(CONFIG_TI_SECURE_DEVICE) += security.o |
14 | 12 | obj-$(CONFIG_ARM64) += cache.o |
15 | 13 | 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 | |
16 | 19 | obj-$(CONFIG_K3_LOAD_SYSFW) += sysfw-loader.o |
17 | 20 | endif |
18 | 21 | obj-y += common.o |
@@ -15,8 +15,6 @@ | ||
15 | 15 | #include <dm/uclass-internal.h> |
16 | 16 | #include <dm/pinctrl.h> |
17 | 17 | |
18 | -#if defined(CONFIG_SPL_BUILD) | |
19 | - | |
20 | 18 | /* |
21 | 19 | * This uninitialized global variable would normal end up in the .bss section, |
22 | 20 | * but the .bss is cleared between writing and reading this variable, so move |
@@ -290,5 +288,3 @@ u32 spl_boot_device(void) | ||
290 | 288 | |
291 | 289 | return bootmedia; |
292 | 290 | } |
293 | - | |
294 | -#endif /* CONFIG_SPL_BUILD */ |
@@ -23,7 +23,6 @@ | ||
23 | 23 | #include <mmc.h> |
24 | 24 | #include <dm/root.h> |
25 | 25 | |
26 | -#if defined(CONFIG_SPL_BUILD) | |
27 | 26 | #define MCU_CTRL_MMR0_BASE 0x04500000 |
28 | 27 | #define CTRLMMR_MCU_RST_CTRL 0x04518170 |
29 | 28 |
@@ -348,7 +347,6 @@ u32 spl_boot_device(void) | ||
348 | 347 | else |
349 | 348 | return __get_backup_bootmedia(devstat); |
350 | 349 | } |
351 | -#endif | |
352 | 350 | |
353 | 351 | #if defined(CONFIG_SYS_K3_SPL_ATF) |
354 | 352 |
@@ -26,7 +26,6 @@ | ||
26 | 26 | |
27 | 27 | DECLARE_GLOBAL_DATA_PTR; |
28 | 28 | |
29 | -#ifdef CONFIG_SPL_BUILD | |
30 | 29 | #ifdef CONFIG_K3_LOAD_SYSFW |
31 | 30 | #ifdef CONFIG_TI_SECURE_DEVICE |
32 | 31 | struct fwl_data main_cbass_fwls[] = { |
@@ -359,7 +358,6 @@ u32 spl_boot_device(void) | ||
359 | 358 | else |
360 | 359 | return __get_backup_bootmedia(devstat); |
361 | 360 | } |
362 | -#endif | |
363 | 361 | |
364 | 362 | #ifdef CONFIG_SYS_K3_SPL_ATF |
365 | 363 |
@@ -24,7 +24,6 @@ | ||
24 | 24 | #include <mmc.h> |
25 | 25 | #include <remoteproc.h> |
26 | 26 | |
27 | -#ifdef CONFIG_SPL_BUILD | |
28 | 27 | #ifdef CONFIG_K3_LOAD_SYSFW |
29 | 28 | #ifdef CONFIG_TI_SECURE_DEVICE |
30 | 29 | struct fwl_data cbass_hc_cfg0_fwls[] = { |
@@ -384,7 +383,6 @@ u32 spl_boot_device(void) | ||
384 | 383 | else |
385 | 384 | return __get_backup_bootmedia(main_devstat); |
386 | 385 | } |
387 | -#endif | |
388 | 386 | |
389 | 387 | #ifdef CONFIG_SYS_K3_SPL_ATF |
390 | 388 |
@@ -22,8 +22,6 @@ | ||
22 | 22 | #include <mmc.h> |
23 | 23 | #include <remoteproc.h> |
24 | 24 | |
25 | -#ifdef CONFIG_SPL_BUILD | |
26 | - | |
27 | 25 | static void ctrl_mmr_unlock(void) |
28 | 26 | { |
29 | 27 | /* Unlock all WKUP_CTRL_MMR0 module registers */ |
@@ -255,7 +253,6 @@ u32 spl_boot_device(void) | ||
255 | 253 | else |
256 | 254 | return __get_backup_bootmedia(main_devstat); |
257 | 255 | } |
258 | -#endif | |
259 | 256 | |
260 | 257 | #define J721S2_DEV_MCU_RTI0 295 |
261 | 258 | #define J721S2_DEV_MCU_RTI1 296 |