]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: Partial cleanup and audit usage of <config.h>
authorTom Rini <trini@konsulko.com>
Thu, 14 Dec 2023 18:16:45 +0000 (13:16 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 13:54:37 +0000 (08:54 -0500)
We need to include <config.h> directly when a file needs to have
something such as CFG_SYS_SDRAM_SIZE referenced as this file is not
automatically globally included and is most commonly indirectly included
via common.h.  Remove most cases of arm including config.h directly, but
add it where needed. This includes a few board-specific fixes.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
17 files changed:
arch/arm/include/asm/arch-fsl-layerscape/fsl_serdes.h
arch/arm/include/asm/arch-ls102xa/fsl_serdes.h
arch/arm/include/asm/assembler.h
arch/arm/include/asm/secure.h
arch/arm/include/asm/string.h
arch/arm/mach-davinci/include/mach/pinmux_defs.h
arch/arm/mach-exynos/exynos4_setup.h
arch/arm/mach-exynos/exynos5_setup.h
arch/arm/mach-k3/common.c
arch/arm/mach-k3/include/mach/clock.h
arch/arm/mach-k3/include/mach/j721e_hardware.h
arch/arm/mach-k3/include/mach/j721s2_hardware.h
arch/arm/mach-keystone/cmd_mon.c
board/freescale/ls1088a/eth_ls1088aqds.c
board/freescale/ls2080aqds/eth.c
board/toradex/verdin-am62/verdin-am62.c
drivers/ddr/marvell/axp/ddr3_axp.h

index 8f4365175697db6a8dd362743f206c3e97c8a1ef..9e29350ca4ba894b54834e012366b8d8ee53b1f2 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __FSL_SERDES_H__
 #define __FSL_SERDES_H__
 
-#include <config.h>
-
 #ifdef CONFIG_FSL_LSCH3
 enum srds_prtcl {
        /*
index d99a6f318f8b7664d0312fb738bbaee1b8e88aab..9244e0a78fd341c7b3e9ee5c5265e249a390d959 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __FSL_SERDES_H
 #define __FSL_SERDES_H
 
-#include <config.h>
-
 enum srds_prtcl {
        /*
         * Nobody will check whether the device 'NONE' has been configured,
index 8d42ef4823e9fdc2cc6a25cb79612d9b08a98eec..4fda483b8d8d9573a83ba4eedde34e72367f9721 100644 (file)
@@ -14,7 +14,6 @@
  *  assembler source.
  */
 
-#include <config.h>
 #include <asm/unified.h>
 
 /*
index c7b00be8e0b9cbcb3c3d2946020280c580862a3d..abfa46470b2cdb8d5b9bb90f05cc28d08cfe3d29 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef __ASM_SECURE_H
 #define __ASM_SECURE_H
 
-#include <config.h>
 #include <asm/global_data.h>
 
 #define __secure __section("._secure.text")
index ead3f2c356438e70f69c9f7b5cdf13077ede532f..c9ecdde0d3d8cabce0d9ad8a604f2d38c8bb9180 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __ASM_ARM_STRING_H
 #define __ASM_ARM_STRING_H
 
-#include <config.h>
-
 /*
  * We don't do inline string functions, since the
  * optimised inline asm versions are not small.
index 4901ba49c9bba1ccebe628bf4f5e9de65745f5d3..120935310807153f739c81fec7f777476aee1257 100644 (file)
@@ -9,7 +9,6 @@
 #define __ASM_ARCH_PINMUX_DEFS_H
 
 #include <asm/arch/davinci_misc.h>
-#include <config.h>
 
 /* SPI0 pin muxer settings */
 extern const struct pinmux_config spi0_pins_base[3];
index fbb45eb897e3ca2adeb424d96773c0a8456fff56..23c9011fbc63a0bb60b49c169019673528eb7190 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef _ORIGEN_SETUP_H
 #define _ORIGEN_SETUP_H
 
-#include <config.h>
 #include <asm/arch/cpu.h>
 
 /* Bus Configuration Register Address */
index af7a5afb03cd6cadf29b5ddf7d8f00351f0ab468..e9874a8c1b24dda1e0481e95a776e6b386d2b6b9 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef _SMDK5250_SETUP_H
 #define _SMDK5250_SETUP_H
 
-#include <config.h>
 #include <asm/arch/dmc.h>
 
 #define NOT_AVAILABLE          0
index fd400e7e3dd87c636d1a74d98d78c748bd059e47..d5db805c62ba17c837a62932a724066362f64dc7 100644 (file)
@@ -6,6 +6,7 @@
  *     Lokesh Vutla <lokeshvutla@ti.com>
  */
 
+#include <config.h>
 #include <cpu_func.h>
 #include <image.h>
 #include <init.h>
index 32368ce0ede355513282e818aa6deea1d5e6874f..866319365f0abe604fa485d4235a5049d6aaae6d 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_ARCH_CLOCK_H
 #define __ASM_ARCH_CLOCK_H
 
-#include <config.h>
-
 /* Clock Defines */
 #define V_OSCK                         24000000
 #define V_SCLK                         V_OSCK
index 780341124a8fe2dd12764596425ec4e30aaebba1..0ba37c9ec7d1468b37fcdea0bd8ee11c68648274 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef __ASM_ARCH_J721E_HARDWARE_H
 #define __ASM_ARCH_J721E_HARDWARE_H
 
-#include <config.h>
 #ifndef __ASSEMBLY__
 #include <linux/bitops.h>
 #endif
index ad4fcdd4a97fe3ce9d4d87ddce7f342a75832559..5aa2282f59a32b811d1b7ce676cf2334b3175a04 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef __ASM_ARCH_J721S2_HARDWARE_H
 #define __ASM_ARCH_J721S2_HARDWARE_H
 
-#include <config.h>
 #ifndef __ASSEMBLY__
 #include <linux/bitops.h>
 #endif
index c6e7e2c3097d787c62d7cc97119c498ec7face2b..d3b894c1b37706a0014f4845f4e418d938a979d5 100644 (file)
@@ -6,6 +6,7 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
+#include <config.h>
 #include <command.h>
 #include <image.h>
 #include <mach/mon.h>
index 2fece3a1b09b989f56ffc61be89d87e2ba10777f..e6033d251c56a138b4d1f9798df06f67110b232e 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright 2017 NXP
  */
 
+#include <config.h>
 #include <vsprintf.h>
 #include <linux/string.h>
 #include <asm/io.h>
index 048ab44c5919f6b98ef275b3501729fe238b6d59..b47e2ec5a793252eda3df6981e5d3e3e2c3693be 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
 
+#include <config.h>
 #include <vsprintf.h>
 #include <linux/string.h>
 #include <asm/io.h>
index d09dda5bccc9e3ee3aea35d6902630e1ae4d1908..2718263eb19b4cbbf513a84fc15e537b357f63db 100644 (file)
@@ -6,6 +6,7 @@
  *
  */
 
+#include <config.h>
 #include <asm/arch/hardware.h>
 #include <asm/io.h>
 #include <dm/uclass.h>
index c40cd768abf578ae73d7a49fc7e3179949fbe9c0..c3d282477f5cca46132334a92ce61b1cb4e1f735 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __DDR3_AXP_H
 #define __DDR3_AXP_H
 
+#include <config.h>
+
 #define MV_78XX0_Z1_REV                        0x0
 #define MV_78XX0_A0_REV                        0x1
 #define MV_78XX0_B0_REV                        0x2