All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h>
@ 2024-05-01  2:40 Tom Rini
  2024-05-01  2:40 ` [PATCH 002/149] global: Audit usage of <eeprom.h> Tom Rini
                   ` (149 more replies)
  0 siblings, 150 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot

This follows the example of RISC-V where <asm/global_data.h> includes
<asm/u-boot.h> directly as "gd" includes a reference to bd_info already
and so the first must include the second anyhow. We then remove
<asm/u-boot.h> from all of the places which include references to "gd"
an so have <asm/global_data.h> already.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 api/api_platform-arm.c                         | 1 -
 api/api_platform-mips.c                        | 1 -
 api/api_platform-powerpc.c                     | 1 -
 arch/arc/include/asm/global_data.h             | 2 ++
 arch/arm/include/asm/global_data.h             | 1 +
 arch/arm/lib/bdinfo.c                          | 1 -
 arch/arm/lib/cache-cp15.c                      | 1 -
 arch/arm/mach-davinci/cpu.c                    | 1 -
 arch/arm/mach-davinci/misc.c                   | 1 -
 arch/arm/mach-davinci/spl.c                    | 1 -
 arch/arm/mach-imx/ele_ahab.c                   | 1 -
 arch/arm/mach-imx/mx5/mx53_dram.c              | 1 -
 arch/arm/mach-mediatek/mt7622/init.c           | 1 -
 arch/arm/mach-mediatek/mt7981/init.c           | 1 -
 arch/arm/mach-mediatek/mt7986/init.c           | 1 -
 arch/arm/mach-mediatek/mt7988/init.c           | 1 -
 arch/arm/mach-mvebu/armada8k/dram.c            | 1 -
 arch/arm/mach-mvebu/dram.c                     | 1 -
 arch/arm/mach-omap2/omap-cache.c               | 1 -
 arch/arm/mach-omap2/omap3/emif4.c              | 1 -
 arch/arm/mach-omap2/omap3/sdrc.c               | 1 -
 arch/arm/mach-owl/soc.c                        | 1 -
 arch/arm/mach-renesas/memmap-gen3.c            | 1 -
 arch/arm/mach-renesas/memmap-rzg2l.c           | 1 -
 arch/arm/mach-socfpga/clock_manager.c          | 1 -
 arch/arm/mach-socfpga/clock_manager_agilex5.c  | 1 -
 arch/arm/mach-socfpga/spl_a10.c                | 1 -
 arch/arm/mach-socfpga/spl_agilex.c             | 1 -
 arch/arm/mach-socfpga/spl_gen5.c               | 1 -
 arch/arm/mach-socfpga/spl_n5x.c                | 1 -
 arch/arm/mach-socfpga/spl_s10.c                | 1 -
 arch/arm/mach-uniphier/dram_init.c             | 1 -
 arch/arm/mach-versal-net/clk.c                 | 1 -
 arch/arm/mach-versal-net/cpu.c                 | 1 -
 arch/arm/mach-versal/clk.c                     | 1 -
 arch/arm/mach-versal/cpu.c                     | 1 -
 arch/arm/mach-zynqmp/clk.c                     | 1 -
 arch/arm/mach-zynqmp/cpu.c                     | 1 -
 arch/m68k/include/asm/global_data.h            | 2 ++
 arch/m68k/lib/bdinfo.c                         | 1 -
 arch/microblaze/cpu/spl.c                      | 1 -
 arch/microblaze/include/asm/global_data.h      | 1 +
 arch/mips/include/asm/global_data.h            | 1 +
 arch/mips/lib/traps.c                          | 1 -
 arch/nios2/include/asm/global_data.h           | 1 +
 arch/powerpc/cpu/mpc83xx/interrupts.c          | 1 -
 arch/powerpc/cpu/mpc83xx/pcie.c                | 1 -
 arch/powerpc/cpu/mpc83xx/spd_sdram.c           | 1 -
 arch/powerpc/cpu/mpc83xx/speed.c               | 1 -
 arch/powerpc/cpu/mpc85xx/b4860_ids.c           | 1 +
 arch/powerpc/cpu/mpc85xx/cmd_errata.c          | 1 -
 arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c | 1 -
 arch/powerpc/cpu/mpc85xx/p2041_ids.c           | 3 ++-
 arch/powerpc/cpu/mpc85xx/p2041_serdes.c        | 1 -
 arch/powerpc/cpu/mpc85xx/p3041_ids.c           | 1 +
 arch/powerpc/cpu/mpc85xx/p4080_ids.c           | 1 +
 arch/powerpc/cpu/mpc85xx/p5040_ids.c           | 1 +
 arch/powerpc/cpu/mpc85xx/speed.c               | 1 -
 arch/powerpc/cpu/mpc85xx/spl_minimal.c         | 1 -
 arch/powerpc/cpu/mpc85xx/t1024_ids.c           | 3 ++-
 arch/powerpc/cpu/mpc85xx/t1024_serdes.c        | 1 -
 arch/powerpc/cpu/mpc85xx/t1040_ids.c           | 3 ++-
 arch/powerpc/cpu/mpc85xx/t1040_serdes.c        | 3 ++-
 arch/powerpc/cpu/mpc85xx/t2080_ids.c           | 3 ++-
 arch/powerpc/cpu/mpc85xx/t2080_serdes.c        | 3 ++-
 arch/powerpc/cpu/mpc85xx/t4240_ids.c           | 3 ++-
 arch/powerpc/cpu/mpc85xx/t4240_serdes.c        | 1 -
 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c             | 1 -
 arch/powerpc/cpu/mpc8xxx/fsl_pamu.c            | 4 +++-
 arch/powerpc/cpu/mpc8xxx/law.c                 | 1 -
 arch/powerpc/cpu/mpc8xxx/pamu_table.c          | 1 -
 arch/powerpc/cpu/mpc8xxx/srio.c                | 3 ++-
 arch/powerpc/include/asm/fsl_liodn.h           | 4 +++-
 arch/powerpc/include/asm/fsl_portals.h         | 2 ++
 arch/powerpc/include/asm/global_data.h         | 2 ++
 arch/powerpc/lib/bdinfo.c                      | 1 -
 arch/riscv/lib/boot.c                          | 3 ++-
 arch/sandbox/include/asm/global_data.h         | 1 +
 arch/sh/include/asm/global_data.h              | 2 ++
 arch/x86/cpu/coreboot/sdram.c                  | 1 -
 arch/x86/cpu/efi/payload.c                     | 1 -
 arch/x86/cpu/efi/sdram.c                       | 1 -
 arch/x86/cpu/ivybridge/sdram_nop.c             | 1 -
 arch/x86/cpu/qemu/dram.c                       | 1 -
 arch/x86/cpu/quark/dram.c                      | 1 -
 arch/x86/cpu/tangier/sdram.c                   | 1 -
 arch/x86/include/asm/global_data.h             | 1 +
 arch/xtensa/include/asm/global_data.h          | 2 ++
 board/keymile/kmcent2/tlb.c                    | 2 +-
 board/phytium/pe2201/pe2201.c                  | 1 -
 board/phytium/pomelo/pomelo.c                  | 1 -
 board/renesas/falcon/falcon.c                  | 1 -
 board/renesas/grpeach/grpeach.c                | 1 -
 common/init/handoff.c                          | 1 -
 common/spl/spl.c                               | 1 -
 common/spl/spl_ext.c                           | 1 -
 common/spl/spl_fat.c                           | 1 -
 common/spl/spl_mmc.c                           | 1 -
 common/spl/spl_sata.c                          | 1 -
 common/spl/spl_usb.c                           | 1 -
 common/spl/spl_ymodem.c                        | 1 -
 drivers/clk/altera/clk-agilex5.c               | 1 -
 include/dm/of.h                                | 1 -
 include/fsl_errata.h                           | 2 +-
 104 files changed, 48 insertions(+), 88 deletions(-)

diff --git a/api/api_platform-arm.c b/api/api_platform-arm.c
index 6cfd9e6cc20c..9afba66c2442 100644
--- a/api/api_platform-arm.c
+++ b/api/api_platform-arm.c
@@ -12,7 +12,6 @@
 #include <linux/types.h>
 #include <api_public.h>
 
-#include <asm/u-boot.h>
 #include <asm/global_data.h>
 
 #include "api_private.h"
diff --git a/api/api_platform-mips.c b/api/api_platform-mips.c
index e1509663af54..262b35a27779 100644
--- a/api/api_platform-mips.c
+++ b/api/api_platform-mips.c
@@ -9,7 +9,6 @@
 #include <linux/types.h>
 #include <api_public.h>
 
-#include <asm/u-boot.h>
 #include <asm/global_data.h>
 
 #include "api_private.h"
diff --git a/api/api_platform-powerpc.c b/api/api_platform-powerpc.c
index 847a4a3015b0..3a04a9f691c5 100644
--- a/api/api_platform-powerpc.c
+++ b/api/api_platform-powerpc.c
@@ -12,7 +12,6 @@
 #include <linux/types.h>
 #include <api_public.h>
 
-#include <asm/u-boot.h>
 #include <asm/global_data.h>
 
 #include "api_private.h"
diff --git a/arch/arc/include/asm/global_data.h b/arch/arc/include/asm/global_data.h
index e35a26f1eb14..fd9b7fb5f8db 100644
--- a/arch/arc/include/asm/global_data.h
+++ b/arch/arc/include/asm/global_data.h
@@ -6,6 +6,8 @@
 #ifndef	__ASM_ARC_GLOBAL_DATA_H
 #define __ASM_ARC_GLOBAL_DATA_H
 
+#include <asm/u-boot.h>
+
 #ifndef __ASSEMBLY__
 /* Architecture-specific global data */
 struct arch_global_data {
diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
index 452bcd1b8fd9..45401d5e3c8a 100644
--- a/arch/arm/include/asm/global_data.h
+++ b/arch/arm/include/asm/global_data.h
@@ -12,6 +12,7 @@
 #include <config.h>
 
 #include <linux/types.h>
+#include <asm/u-boot.h>
 
 /* Architecture-specific global data */
 struct arch_global_data {
diff --git a/arch/arm/lib/bdinfo.c b/arch/arm/lib/bdinfo.c
index 40255ace4051..7c49462c8eb4 100644
--- a/arch/arm/lib/bdinfo.c
+++ b/arch/arm/lib/bdinfo.c
@@ -9,7 +9,6 @@
 #include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/mach-types.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c
index 0b2a0c351547..947012f29963 100644
--- a/arch/arm/lib/cache-cp15.c
+++ b/arch/arm/lib/cache-cp15.c
@@ -7,7 +7,6 @@
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/system.h>
 #include <asm/cache.h>
 #include <linux/compiler.h>
diff --git a/arch/arm/mach-davinci/cpu.c b/arch/arm/mach-davinci/cpu.c
index 033411235391..7c0a26389775 100644
--- a/arch/arm/mach-davinci/cpu.c
+++ b/arch/arm/mach-davinci/cpu.c
@@ -9,7 +9,6 @@
 #include <init.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-davinci/misc.c b/arch/arm/mach-davinci/misc.c
index 93a144757a9e..6c97e5810cdb 100644
--- a/arch/arm/mach-davinci/misc.c
+++ b/arch/arm/mach-davinci/misc.c
@@ -16,7 +16,6 @@
 #include <net.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 #include <asm/arch/davinci_misc.h>
 
diff --git a/arch/arm/mach-davinci/spl.c b/arch/arm/mach-davinci/spl.c
index 4603c8fbc575..8c6cf9c21925 100644
--- a/arch/arm/mach-davinci/spl.c
+++ b/arch/arm/mach-davinci/spl.c
@@ -7,7 +7,6 @@
 #include <hang.h>
 #include <init.h>
 #include <spl.h>
-#include <asm/u-boot.h>
 #include <asm/utils.h>
 #include <nand.h>
 #include <asm/arch/dm365_lowlevel.h>
diff --git a/arch/arm/mach-imx/ele_ahab.c b/arch/arm/mach-imx/ele_ahab.c
index eaeecf600423..c13d9f0e00e3 100644
--- a/arch/arm/mach-imx/ele_ahab.c
+++ b/arch/arm/mach-imx/ele_ahab.c
@@ -14,7 +14,6 @@
 #include <console.h>
 #include <cpu_func.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-imx/mx5/mx53_dram.c b/arch/arm/mach-imx/mx5/mx53_dram.c
index 6459b4a82d25..180a745d4351 100644
--- a/arch/arm/mach-imx/mx5/mx53_dram.c
+++ b/arch/arm/mach-imx/mx5/mx53_dram.c
@@ -6,7 +6,6 @@
 
 #include <init.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-mediatek/mt7622/init.c b/arch/arm/mach-mediatek/mt7622/init.c
index 00d3eb9ce7a4..6e970acf8b05 100644
--- a/arch/arm/mach-mediatek/mt7622/init.c
+++ b/arch/arm/mach-mediatek/mt7622/init.c
@@ -9,7 +9,6 @@
 #include <asm/armv8/mmu.h>
 #include <asm/system.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <linux/sizes.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-mediatek/mt7981/init.c b/arch/arm/mach-mediatek/mt7981/init.c
index 862f0ca4793d..07da58971904 100644
--- a/arch/arm/mach-mediatek/mt7981/init.c
+++ b/arch/arm/mach-mediatek/mt7981/init.c
@@ -9,7 +9,6 @@
 #include <asm/armv8/mmu.h>
 #include <asm/system.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <linux/sizes.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-mediatek/mt7986/init.c b/arch/arm/mach-mediatek/mt7986/init.c
index 905a3ab4e272..a521c95bd9d3 100644
--- a/arch/arm/mach-mediatek/mt7986/init.c
+++ b/arch/arm/mach-mediatek/mt7986/init.c
@@ -9,7 +9,6 @@
 #include <asm/armv8/mmu.h>
 #include <asm/system.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <linux/sizes.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-mediatek/mt7988/init.c b/arch/arm/mach-mediatek/mt7988/init.c
index 082f12bf65e5..2efc8c6a88fe 100644
--- a/arch/arm/mach-mediatek/mt7988/init.c
+++ b/arch/arm/mach-mediatek/mt7988/init.c
@@ -8,7 +8,6 @@
 #include <init.h>
 #include <asm/armv8/mmu.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/system.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-mvebu/armada8k/dram.c b/arch/arm/mach-mvebu/armada8k/dram.c
index 8a87e4a8e035..fd58551d0e32 100644
--- a/arch/arm/mach-mvebu/armada8k/dram.c
+++ b/arch/arm/mach-mvebu/armada8k/dram.c
@@ -7,7 +7,6 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/ptrace.h>
 #include <asm/system.h>
 #include <linux/sizes.h>
diff --git a/arch/arm/mach-mvebu/dram.c b/arch/arm/mach-mvebu/dram.c
index daf2f8e3f671..c00c6b9b3fc2 100644
--- a/arch/arm/mach-mvebu/dram.c
+++ b/arch/arm/mach-mvebu/dram.c
@@ -8,7 +8,6 @@
 #include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/arch/arm/mach-omap2/omap-cache.c b/arch/arm/mach-omap2/omap-cache.c
index 132b205220ca..200a08fa5c83 100644
--- a/arch/arm/mach-omap2/omap-cache.c
+++ b/arch/arm/mach-omap2/omap-cache.c
@@ -16,7 +16,6 @@
 #include <linux/string.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-omap2/omap3/emif4.c b/arch/arm/mach-omap2/omap3/emif4.c
index 79960bf46f8b..049eedfeb65b 100644
--- a/arch/arm/mach-omap2/omap3/emif4.c
+++ b/arch/arm/mach-omap2/omap3/emif4.c
@@ -12,7 +12,6 @@
 #include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-omap2/omap3/sdrc.c b/arch/arm/mach-omap2/omap3/sdrc.c
index f08e4b3af5e2..404333689f60 100644
--- a/arch/arm/mach-omap2/omap3/sdrc.c
+++ b/arch/arm/mach-omap2/omap3/sdrc.c
@@ -23,7 +23,6 @@
 
 #include <init.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-owl/soc.c b/arch/arm/mach-owl/soc.c
index e6332452e3ee..0130cad76782 100644
--- a/arch/arm/mach-owl/soc.c
+++ b/arch/arm/mach-owl/soc.c
@@ -10,7 +10,6 @@
 #include <init.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <linux/arm-smccc.h>
 #include <linux/psci.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-renesas/memmap-gen3.c b/arch/arm/mach-renesas/memmap-gen3.c
index 4dff9e07629d..c50700df078d 100644
--- a/arch/arm/mach-renesas/memmap-gen3.c
+++ b/arch/arm/mach-renesas/memmap-gen3.c
@@ -7,7 +7,6 @@
 
 #include <asm/armv8/mmu.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <cpu_func.h>
 
 #define GEN3_NR_REGIONS 16
diff --git a/arch/arm/mach-renesas/memmap-rzg2l.c b/arch/arm/mach-renesas/memmap-rzg2l.c
index 9934a775220b..3b3c6f7cde9a 100644
--- a/arch/arm/mach-renesas/memmap-rzg2l.c
+++ b/arch/arm/mach-renesas/memmap-rzg2l.c
@@ -8,7 +8,6 @@
 
 #include <asm/armv8/mmu.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <cpu_func.h>
 
 #define RZG2L_NR_REGIONS 16
diff --git a/arch/arm/mach-socfpga/clock_manager.c b/arch/arm/mach-socfpga/clock_manager.c
index 4fcb13f17e6c..160f6e73ca9e 100644
--- a/arch/arm/mach-socfpga/clock_manager.c
+++ b/arch/arm/mach-socfpga/clock_manager.c
@@ -6,7 +6,6 @@
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/system_manager.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 #include <command.h>
 #include <init.h>
diff --git a/arch/arm/mach-socfpga/clock_manager_agilex5.c b/arch/arm/mach-socfpga/clock_manager_agilex5.c
index b92f0b3af806..7ec28d91ef32 100644
--- a/arch/arm/mach-socfpga/clock_manager_agilex5.c
+++ b/arch/arm/mach-socfpga/clock_manager_agilex5.c
@@ -16,7 +16,6 @@
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <asm/u-boot.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/types.h>
diff --git a/arch/arm/mach-socfpga/spl_a10.c b/arch/arm/mach-socfpga/spl_a10.c
index af5bed162e2f..c20376f7f8ef 100644
--- a/arch/arm/mach-socfpga/spl_a10.c
+++ b/arch/arm/mach-socfpga/spl_a10.c
@@ -10,7 +10,6 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/pl310.h>
-#include <asm/u-boot.h>
 #include <asm/utils.h>
 #include <image.h>
 #include <asm/arch/reset_manager.h>
diff --git a/arch/arm/mach-socfpga/spl_agilex.c b/arch/arm/mach-socfpga/spl_agilex.c
index cd1bf48d8324..52617a39ccaf 100644
--- a/arch/arm/mach-socfpga/spl_agilex.c
+++ b/arch/arm/mach-socfpga/spl_agilex.c
@@ -8,7 +8,6 @@
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <asm/u-boot.h>
 #include <asm/utils.h>
 #include <hang.h>
 #include <image.h>
diff --git a/arch/arm/mach-socfpga/spl_gen5.c b/arch/arm/mach-socfpga/spl_gen5.c
index d53592cba4d8..df79cfe0f7fa 100644
--- a/arch/arm/mach-socfpga/spl_gen5.c
+++ b/arch/arm/mach-socfpga/spl_gen5.c
@@ -8,7 +8,6 @@
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <asm/u-boot.h>
 #include <asm/utils.h>
 #include <image.h>
 #include <asm/arch/reset_manager.h>
diff --git a/arch/arm/mach-socfpga/spl_n5x.c b/arch/arm/mach-socfpga/spl_n5x.c
index a19602039397..5ff137e5c6fb 100644
--- a/arch/arm/mach-socfpga/spl_n5x.c
+++ b/arch/arm/mach-socfpga/spl_n5x.c
@@ -12,7 +12,6 @@
 #include <asm/arch/system_manager.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <asm/u-boot.h>
 #include <asm/utils.h>
 #include <dm/uclass.h>
 #include <hang.h>
diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c
index 9b3c75f97677..53852cb74439 100644
--- a/arch/arm/mach-socfpga/spl_s10.c
+++ b/arch/arm/mach-socfpga/spl_s10.c
@@ -9,7 +9,6 @@
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <asm/u-boot.h>
 #include <asm/utils.h>
 #include <debug_uart.h>
 #include <image.h>
diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/mach-uniphier/dram_init.c
index e6f1286e71fd..0e1164a2680f 100644
--- a/arch/arm/mach-uniphier/dram_init.c
+++ b/arch/arm/mach-uniphier/dram_init.c
@@ -12,7 +12,6 @@
 #include <linux/printk.h>
 #include <linux/sizes.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 #include "init.h"
 #include "sg-regs.h"
diff --git a/arch/arm/mach-versal-net/clk.c b/arch/arm/mach-versal-net/clk.c
index a88b5101eb1b..61b8fe71b1ae 100644
--- a/arch/arm/mach-versal-net/clk.c
+++ b/arch/arm/mach-versal-net/clk.c
@@ -9,7 +9,6 @@
 #include <init.h>
 #include <time.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-versal-net/cpu.c b/arch/arm/mach-versal-net/cpu.c
index 59b0cb2e78f3..d088e440f638 100644
--- a/arch/arm/mach-versal-net/cpu.c
+++ b/arch/arm/mach-versal-net/cpu.c
@@ -10,7 +10,6 @@
 #include <asm/armv8/mmu.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-versal/clk.c b/arch/arm/mach-versal/clk.c
index 0c7d468f1dd0..19943dfdd4ca 100644
--- a/arch/arm/mach-versal/clk.c
+++ b/arch/arm/mach-versal/clk.c
@@ -7,7 +7,6 @@
 #include <init.h>
 #include <time.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-versal/cpu.c b/arch/arm/mach-versal/cpu.c
index 7de431e55005..363ce3007fd1 100644
--- a/arch/arm/mach-versal/cpu.c
+++ b/arch/arm/mach-versal/cpu.c
@@ -8,7 +8,6 @@
 #include <asm/armv8/mmu.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-zynqmp/clk.c b/arch/arm/mach-zynqmp/clk.c
index dc8e2cbd3da4..9b573b1746aa 100644
--- a/arch/arm/mach-zynqmp/clk.c
+++ b/arch/arm/mach-zynqmp/clk.c
@@ -10,7 +10,6 @@
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-zynqmp/cpu.c b/arch/arm/mach-zynqmp/cpu.c
index d7b5e99504c4..07668c946891 100644
--- a/arch/arm/mach-zynqmp/cpu.c
+++ b/arch/arm/mach-zynqmp/cpu.c
@@ -13,7 +13,6 @@
 #include <asm/armv8/mmu.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/io.h>
 #include <zynqmp_firmware.h>
 #include <asm/cache.h>
diff --git a/arch/m68k/include/asm/global_data.h b/arch/m68k/include/asm/global_data.h
index c2ef5770a3df..93efc722ba8a 100644
--- a/arch/m68k/include/asm/global_data.h
+++ b/arch/m68k/include/asm/global_data.h
@@ -7,6 +7,8 @@
 #ifndef	__ASM_GBL_DATA_H
 #define __ASM_GBL_DATA_H
 
+#include <asm/u-boot.h>
+
 /* Architecture-specific global data */
 struct arch_global_data {
 #ifdef CONFIG_SYS_I2C_FSL
diff --git a/arch/m68k/lib/bdinfo.c b/arch/m68k/lib/bdinfo.c
index 3719f11c03c6..cf6ae5adddfd 100644
--- a/arch/m68k/lib/bdinfo.c
+++ b/arch/m68k/lib/bdinfo.c
@@ -8,7 +8,6 @@
 
 #include <config.h>
 #include <init.h>
-#include <asm/u-boot.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/microblaze/cpu/spl.c b/arch/microblaze/cpu/spl.c
index cb224bd25423..521776705786 100644
--- a/arch/microblaze/cpu/spl.c
+++ b/arch/microblaze/cpu/spl.c
@@ -10,7 +10,6 @@
 #include <log.h>
 #include <spl.h>
 #include <asm/io.h>
-#include <asm/u-boot.h>
 #include <linux/stringify.h>
 
 void board_boot_order(u32 *spl_boot_list)
diff --git a/arch/microblaze/include/asm/global_data.h b/arch/microblaze/include/asm/global_data.h
index 93506dec894e..bb4112f22a3c 100644
--- a/arch/microblaze/include/asm/global_data.h
+++ b/arch/microblaze/include/asm/global_data.h
@@ -9,6 +9,7 @@
 #define __ASM_GBL_DATA_H
 
 #include <asm/cpuinfo.h>
+#include <asm/u-boot.h>
 
 /* Architecture-specific global data */
 struct arch_global_data {
diff --git a/arch/mips/include/asm/global_data.h b/arch/mips/include/asm/global_data.h
index 34b7e0bed945..147a95ecea8b 100644
--- a/arch/mips/include/asm/global_data.h
+++ b/arch/mips/include/asm/global_data.h
@@ -9,6 +9,7 @@
 
 #include <linux/types.h>
 #include <asm/regdef.h>
+#include <asm/u-boot.h>
 
 struct octeon_eeprom_mac_addr {
 	u8 mac_addr_base[6];
diff --git a/arch/mips/lib/traps.c b/arch/mips/lib/traps.c
index 40469d1be090..89846c9723c7 100644
--- a/arch/mips/lib/traps.c
+++ b/arch/mips/lib/traps.c
@@ -20,7 +20,6 @@
 #include <asm/mipsregs.h>
 #include <asm/addrspace.h>
 #include <asm/system.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/nios2/include/asm/global_data.h b/arch/nios2/include/asm/global_data.h
index b56e8a5078e0..d9bbd54734e5 100644
--- a/arch/nios2/include/asm/global_data.h
+++ b/arch/nios2/include/asm/global_data.h
@@ -7,6 +7,7 @@
 #define __ASM_NIOS2_GLOBALDATA_H_
 
 #include <linux/types.h>
+#include <asm/u-boot.h>
 
 /* Architecture-specific global data */
 struct arch_global_data {
diff --git a/arch/powerpc/cpu/mpc83xx/interrupts.c b/arch/powerpc/cpu/mpc83xx/interrupts.c
index 6238eec605f2..d86c981811e9 100644
--- a/arch/powerpc/cpu/mpc83xx/interrupts.c
+++ b/arch/powerpc/cpu/mpc83xx/interrupts.c
@@ -6,7 +6,6 @@
  * Copyright 2004 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <command.h>
 #include <irq_func.h>
 #include <mpc83xx.h>
diff --git a/arch/powerpc/cpu/mpc83xx/pcie.c b/arch/powerpc/cpu/mpc83xx/pcie.c
index feecf8a8193c..efa30c683389 100644
--- a/arch/powerpc/cpu/mpc83xx/pcie.c
+++ b/arch/powerpc/cpu/mpc83xx/pcie.c
@@ -7,7 +7,6 @@
  *          Anton Vorontsov <avorontsov@ru.mvista.com>
  */
 
-#include <asm/u-boot.h>
 #include <clock_legacy.h>
 #include <pci.h>
 #include <mpc83xx.h>
diff --git a/arch/powerpc/cpu/mpc83xx/spd_sdram.c b/arch/powerpc/cpu/mpc83xx/spd_sdram.c
index 37234e00abd0..e847c03f378b 100644
--- a/arch/powerpc/cpu/mpc83xx/spd_sdram.c
+++ b/arch/powerpc/cpu/mpc83xx/spd_sdram.c
@@ -12,7 +12,6 @@
 
 #ifndef CONFIG_MPC83XX_SDRAM
 
-#include <asm/u-boot.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <time.h>
diff --git a/arch/powerpc/cpu/mpc83xx/speed.c b/arch/powerpc/cpu/mpc83xx/speed.c
index bfc624232179..72464962613f 100644
--- a/arch/powerpc/cpu/mpc83xx/speed.c
+++ b/arch/powerpc/cpu/mpc83xx/speed.c
@@ -8,7 +8,6 @@
 
 #ifndef CONFIG_CLK_MPC83XX
 
-#include <asm/u-boot.h>
 #include <clock_legacy.h>
 #include <mpc83xx.h>
 #include <command.h>
diff --git a/arch/powerpc/cpu/mpc85xx/b4860_ids.c b/arch/powerpc/cpu/mpc85xx/b4860_ids.c
index 39cfd20129ff..df2f0efe3eda 100644
--- a/arch/powerpc/cpu/mpc85xx/b4860_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/b4860_ids.c
@@ -4,6 +4,7 @@
  */
 
 #include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/cmd_errata.c b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
index 01763b54e8af..f91a4d441d3a 100644
--- a/arch/powerpc/cpu/mpc85xx/cmd_errata.c
+++ b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
@@ -3,7 +3,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <command.h>
 #include <init.h>
 #include <linux/compiler.h>
diff --git a/arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c b/arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c
index 3383bb5c9b02..945020f7ecbe 100644
--- a/arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c
@@ -3,7 +3,6 @@
  * Copyright 2012 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <log.h>
 #include <asm/fsl_serdes.h>
 #include <asm/immap_85xx.h>
diff --git a/arch/powerpc/cpu/mpc85xx/p2041_ids.c b/arch/powerpc/cpu/mpc85xx/p2041_ids.c
index 67a21e15a64d..ae5227a1eed1 100644
--- a/arch/powerpc/cpu/mpc85xx/p2041_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p2041_ids.c
@@ -3,7 +3,8 @@
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
+#include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/p2041_serdes.c b/arch/powerpc/cpu/mpc85xx/p2041_serdes.c
index d915665df8f5..3943859a5188 100644
--- a/arch/powerpc/cpu/mpc85xx/p2041_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p2041_serdes.c
@@ -3,7 +3,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <asm/fsl_serdes.h>
 #include <asm/processor.h>
 #include <asm/io.h>
diff --git a/arch/powerpc/cpu/mpc85xx/p3041_ids.c b/arch/powerpc/cpu/mpc85xx/p3041_ids.c
index e5d600fa2a4d..0675a59414be 100644
--- a/arch/powerpc/cpu/mpc85xx/p3041_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p3041_ids.c
@@ -4,6 +4,7 @@
  */
 
 #include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/p4080_ids.c b/arch/powerpc/cpu/mpc85xx/p4080_ids.c
index 250504128374..15ab4ac93852 100644
--- a/arch/powerpc/cpu/mpc85xx/p4080_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p4080_ids.c
@@ -4,6 +4,7 @@
  */
 
 #include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/p5040_ids.c b/arch/powerpc/cpu/mpc85xx/p5040_ids.c
index de1d372631bb..0a34e066e940 100644
--- a/arch/powerpc/cpu/mpc85xx/p5040_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p5040_ids.c
@@ -4,6 +4,7 @@
  */
 
 #include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 1a4ee87cb348..a7e1b3c98a9d 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -9,7 +9,6 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <asm/u-boot.h>
 #include <cpu_func.h>
 #include <clock_legacy.h>
 #include <ppc_asm.tmpl>
diff --git a/arch/powerpc/cpu/mpc85xx/spl_minimal.c b/arch/powerpc/cpu/mpc85xx/spl_minimal.c
index e7031c1338b7..29318fad5f0b 100644
--- a/arch/powerpc/cpu/mpc85xx/spl_minimal.c
+++ b/arch/powerpc/cpu/mpc85xx/spl_minimal.c
@@ -3,7 +3,6 @@
  * Copyright 2009 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <asm/processor.h>
 #include <asm/global_data.h>
 #include <fsl_ifc.h>
diff --git a/arch/powerpc/cpu/mpc85xx/t1024_ids.c b/arch/powerpc/cpu/mpc85xx/t1024_ids.c
index 01a62b86926a..7239d28f9368 100644
--- a/arch/powerpc/cpu/mpc85xx/t1024_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/t1024_ids.c
@@ -3,7 +3,8 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
+#include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/t1024_serdes.c b/arch/powerpc/cpu/mpc85xx/t1024_serdes.c
index 3ab743c3d628..0d958fe131b5 100644
--- a/arch/powerpc/cpu/mpc85xx/t1024_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t1024_serdes.c
@@ -3,7 +3,6 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <asm/fsl_serdes.h>
 #include <asm/processor.h>
 #include <asm/io.h>
diff --git a/arch/powerpc/cpu/mpc85xx/t1040_ids.c b/arch/powerpc/cpu/mpc85xx/t1040_ids.c
index d0f9b0ca758a..bb92fc392cc2 100644
--- a/arch/powerpc/cpu/mpc85xx/t1040_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/t1040_ids.c
@@ -3,7 +3,8 @@
  * Copyright 2012 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
+#include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/t1040_serdes.c b/arch/powerpc/cpu/mpc85xx/t1040_serdes.c
index 1f1b23a3aaaf..2033ebbaa5e6 100644
--- a/arch/powerpc/cpu/mpc85xx/t1040_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t1040_serdes.c
@@ -3,10 +3,11 @@
  * Copyright 2012 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
+#include <linux/kernel.h>
 #include <asm/fsl_serdes.h>
 #include <asm/processor.h>
 #include <asm/io.h>
+#include <asm/ppc.h>
 
 
 static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
diff --git a/arch/powerpc/cpu/mpc85xx/t2080_ids.c b/arch/powerpc/cpu/mpc85xx/t2080_ids.c
index 51ac367dd809..26a2d745a864 100644
--- a/arch/powerpc/cpu/mpc85xx/t2080_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/t2080_ids.c
@@ -3,7 +3,8 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
+#include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/t2080_serdes.c b/arch/powerpc/cpu/mpc85xx/t2080_serdes.c
index 16fa16b08081..6702acaf7723 100644
--- a/arch/powerpc/cpu/mpc85xx/t2080_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t2080_serdes.c
@@ -5,9 +5,10 @@
  * Shengzhou Liu <Shengzhou.Liu@freescale.com>
  */
 
-#include <asm/u-boot.h>
+#include <linux/kernel.h>
 #include <asm/fsl_serdes.h>
 #include <asm/processor.h>
+#include <asm/ppc.h>
 #include "fsl_corenet2_serdes.h"
 
 struct serdes_config {
diff --git a/arch/powerpc/cpu/mpc85xx/t4240_ids.c b/arch/powerpc/cpu/mpc85xx/t4240_ids.c
index 94b4409cecad..c319bf5cff57 100644
--- a/arch/powerpc/cpu/mpc85xx/t4240_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/t4240_ids.c
@@ -3,7 +3,8 @@
  * Copyright 2012 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
+#include <config.h>
+#include <linux/kernel.h>
 #include <asm/fsl_portals.h>
 #include <asm/fsl_liodn.h>
 
diff --git a/arch/powerpc/cpu/mpc85xx/t4240_serdes.c b/arch/powerpc/cpu/mpc85xx/t4240_serdes.c
index 956b5ea37aa5..36fe34f11ecc 100644
--- a/arch/powerpc/cpu/mpc85xx/t4240_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t4240_serdes.c
@@ -3,7 +3,6 @@
  * Copyright 2012 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <asm/fsl_serdes.h>
 #include <asm/processor.h>
 #include <asm/io.h>
diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
index c7bae5a88151..843dd191ccf7 100644
--- a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
+++ b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
@@ -3,7 +3,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <hang.h>
 #include <init.h>
 #include <asm/fsl_lbc.h>
diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
index 523367ddf1c1..29399bcd8b68 100644
--- a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
+++ b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
@@ -5,12 +5,14 @@
  * Copyright 2012-2016 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
+#include <config.h>
 #include <log.h>
 #include <linux/bitops.h>
 #include <linux/log2.h>
 #include <malloc.h>
 #include <asm/fsl_pamu.h>
+#include <asm/io.h>
+#include <asm/ppc.h>
 
 struct paace *ppaact;
 struct paace *sec;
diff --git a/arch/powerpc/cpu/mpc8xxx/law.c b/arch/powerpc/cpu/mpc8xxx/law.c
index 5c6e26b9aa15..f16bc1996639 100644
--- a/arch/powerpc/cpu/mpc8xxx/law.c
+++ b/arch/powerpc/cpu/mpc8xxx/law.c
@@ -6,7 +6,6 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <asm/u-boot.h>
 #include <display_options.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
diff --git a/arch/powerpc/cpu/mpc8xxx/pamu_table.c b/arch/powerpc/cpu/mpc8xxx/pamu_table.c
index e55173a890b7..831a11736cc8 100644
--- a/arch/powerpc/cpu/mpc8xxx/pamu_table.c
+++ b/arch/powerpc/cpu/mpc8xxx/pamu_table.c
@@ -3,7 +3,6 @@
  * Copyright 2012-2016 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
 #include <log.h>
 #include <asm/fsl_pamu.h>
 #include <asm/global_data.h>
diff --git a/arch/powerpc/cpu/mpc8xxx/srio.c b/arch/powerpc/cpu/mpc8xxx/srio.c
index 185cbabbcd85..0c7288c75740 100644
--- a/arch/powerpc/cpu/mpc8xxx/srio.c
+++ b/arch/powerpc/cpu/mpc8xxx/srio.c
@@ -3,12 +3,13 @@
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
 
-#include <asm/u-boot.h>
+#include <config.h>
 #include <log.h>
 #include <time.h>
 #include <asm/fsl_law.h>
 #include <asm/fsl_serdes.h>
 #include <asm/fsl_srio.h>
+#include <asm/ppc.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 
diff --git a/arch/powerpc/include/asm/fsl_liodn.h b/arch/powerpc/include/asm/fsl_liodn.h
index 0af3d8902ace..4ce869b5c189 100644
--- a/arch/powerpc/include/asm/fsl_liodn.h
+++ b/arch/powerpc/include/asm/fsl_liodn.h
@@ -6,7 +6,9 @@
 #ifndef _FSL_LIODN_H_
 #define _FSL_LIODN_H_
 
-#include <asm/types.h>
+#include <config.h>
+#include <linux/types.h>
+#include <asm/ppc.h>
 #include <fsl_qbman.h>
 
 struct srio_liodn_id_table {
diff --git a/arch/powerpc/include/asm/fsl_portals.h b/arch/powerpc/include/asm/fsl_portals.h
index 54ef4fb62954..021eec72382d 100644
--- a/arch/powerpc/include/asm/fsl_portals.h
+++ b/arch/powerpc/include/asm/fsl_portals.h
@@ -6,6 +6,8 @@
 #ifndef _FSL_PORTALS_H_
 #define _FSL_PORTALS_H_
 
+#include <linux/types.h>
+
 /* entries must be in order and contiguous */
 enum fsl_dpaa_dev {
 	FSL_HW_PORTAL_SEC,
diff --git a/arch/powerpc/include/asm/global_data.h b/arch/powerpc/include/asm/global_data.h
index f7860122a00b..a9efbbdd3d49 100644
--- a/arch/powerpc/include/asm/global_data.h
+++ b/arch/powerpc/include/asm/global_data.h
@@ -93,4 +93,6 @@ struct arch_global_data {
 
 #define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd asm ("r2")
 
+#include <asm/u-boot.h>
+
 #endif /* __ASM_GBL_DATA_H */
diff --git a/arch/powerpc/lib/bdinfo.c b/arch/powerpc/lib/bdinfo.c
index c12e4c6371fe..6491c210f4e2 100644
--- a/arch/powerpc/lib/bdinfo.c
+++ b/arch/powerpc/lib/bdinfo.c
@@ -8,7 +8,6 @@
 
 #include <init.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/riscv/lib/boot.c b/arch/riscv/lib/boot.c
index 03014c56dce2..161335abee18 100644
--- a/arch/riscv/lib/boot.c
+++ b/arch/riscv/lib/boot.c
@@ -4,7 +4,8 @@
  * Rick Chen, Andes Technology Corporation <rick@andestech.com>
  */
 
-#include <asm/u-boot.h>
+#include <linux/types.h>
+#include <asm/u-boot-riscv.h>
 
 unsigned long do_go_exec(ulong (*entry)(int, char * const []),
 			 int argc, char *const argv[])
diff --git a/arch/sandbox/include/asm/global_data.h b/arch/sandbox/include/asm/global_data.h
index 001b2b53c1c8..309422f75e3f 100644
--- a/arch/sandbox/include/asm/global_data.h
+++ b/arch/sandbox/include/asm/global_data.h
@@ -10,6 +10,7 @@
 #define __ASM_GBL_DATA_H
 
 #include <linux/types.h>
+#include <asm/u-boot.h>
 
 /* Architecture-specific global data */
 struct arch_global_data {
diff --git a/arch/sh/include/asm/global_data.h b/arch/sh/include/asm/global_data.h
index bd946ffd8fd7..933c302d68ce 100644
--- a/arch/sh/include/asm/global_data.h
+++ b/arch/sh/include/asm/global_data.h
@@ -10,6 +10,8 @@
 #ifndef	__ASM_SH_GLOBALDATA_H_
 #define __ASM_SH_GLOBALDATA_H_
 
+#include <asm/u-boot.h>
+
 /* Architecture-specific global data */
 struct arch_global_data {
 };
diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c
index ee0491eab1c8..013225f129a9 100644
--- a/arch/x86/cpu/coreboot/sdram.c
+++ b/arch/x86/cpu/coreboot/sdram.c
@@ -9,7 +9,6 @@
 #include <asm/e820.h>
 #include <asm/cb_sysinfo.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c
index cb57f15f710b..642a87a37d8b 100644
--- a/arch/x86/cpu/efi/payload.c
+++ b/arch/x86/cpu/efi/payload.c
@@ -16,7 +16,6 @@
 #include <asm/e820.h>
 #include <asm/global_data.h>
 #include <asm/post.h>
-#include <asm/u-boot.h>
 #include <asm/u-boot-x86.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/efi/sdram.c b/arch/x86/cpu/efi/sdram.c
index 1f0e87735b21..6fe400711402 100644
--- a/arch/x86/cpu/efi/sdram.c
+++ b/arch/x86/cpu/efi/sdram.c
@@ -6,7 +6,6 @@
 #include <efi.h>
 #include <init.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 #include <asm/u-boot-x86.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/ivybridge/sdram_nop.c b/arch/x86/cpu/ivybridge/sdram_nop.c
index e7ec35bbe2a6..d20c9a2a379f 100644
--- a/arch/x86/cpu/ivybridge/sdram_nop.c
+++ b/arch/x86/cpu/ivybridge/sdram_nop.c
@@ -5,7 +5,6 @@
 
 #include <init.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/qemu/dram.c b/arch/x86/cpu/qemu/dram.c
index 6ac363f3d8c7..62a301c0fd3e 100644
--- a/arch/x86/cpu/qemu/dram.c
+++ b/arch/x86/cpu/qemu/dram.c
@@ -7,7 +7,6 @@
 #include <asm/global_data.h>
 #include <asm/post.h>
 #include <asm/arch/qemu.h>
-#include <asm/u-boot.h>
 #include <linux/sizes.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/quark/dram.c b/arch/x86/cpu/quark/dram.c
index 7d32b98e8daf..34e576940d4f 100644
--- a/arch/x86/cpu/quark/dram.c
+++ b/arch/x86/cpu/quark/dram.c
@@ -17,7 +17,6 @@
 #include <asm/arch/mrc.h>
 #include <asm/arch/msg_port.h>
 #include <asm/arch/quark.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/tangier/sdram.c b/arch/x86/cpu/tangier/sdram.c
index 7e1d290fc595..6192f2296b80 100644
--- a/arch/x86/cpu/tangier/sdram.c
+++ b/arch/x86/cpu/tangier/sdram.c
@@ -8,7 +8,6 @@
 #include <asm/e820.h>
 #include <asm/global_data.h>
 #include <asm/sfi.h>
-#include <asm/u-boot.h>
 #include <linux/printk.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h
index 1ef7f1f0349e..06bd80ccc135 100644
--- a/arch/x86/include/asm/global_data.h
+++ b/arch/x86/include/asm/global_data.h
@@ -12,6 +12,7 @@
 #include <linux/types.h>
 #include <asm/processor.h>
 #include <asm/mrccache.h>
+#include <asm/u-boot.h>
 
 enum pei_boot_mode_t {
 	PEI_BOOT_NONE = 0,
diff --git a/arch/xtensa/include/asm/global_data.h b/arch/xtensa/include/asm/global_data.h
index 1157978ab688..40c129db4ace 100644
--- a/arch/xtensa/include/asm/global_data.h
+++ b/arch/xtensa/include/asm/global_data.h
@@ -6,6 +6,8 @@
 #ifndef	_XTENSA_GBL_DATA_H
 #define _XTENSA_GBL_DATA_H
 
+#include <asm/u-boot.h>
+
 /* Architecture-specific global data */
 
 struct arch_global_data {
diff --git a/board/keymile/kmcent2/tlb.c b/board/keymile/kmcent2/tlb.c
index 41b24e39433d..77e11e9bc1ed 100644
--- a/board/keymile/kmcent2/tlb.c
+++ b/board/keymile/kmcent2/tlb.c
@@ -7,7 +7,7 @@
  */
 
 #include <asm/mmu.h>
-#include <asm/u-boot.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/phytium/pe2201/pe2201.c b/board/phytium/pe2201/pe2201.c
index 0e837b0f50f4..fbbf6789b505 100644
--- a/board/phytium/pe2201/pe2201.c
+++ b/board/phytium/pe2201/pe2201.c
@@ -12,7 +12,6 @@
 #include <asm/io.h>
 #include <linux/arm-smccc.h>
 #include <scsi.h>
-#include <asm/u-boot.h>
 #include "cpu.h"
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/phytium/pomelo/pomelo.c b/board/phytium/pomelo/pomelo.c
index 960e491c7687..0ea335e7486b 100644
--- a/board/phytium/pomelo/pomelo.c
+++ b/board/phytium/pomelo/pomelo.c
@@ -14,7 +14,6 @@
 #include <linux/arm-smccc.h>
 #include <scsi.h>
 #include <init.h>
-#include <asm/u-boot.h>
 #include "cpu.h"
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/renesas/falcon/falcon.c b/board/renesas/falcon/falcon.c
index 27fccacf6f80..c88257d96772 100644
--- a/board/renesas/falcon/falcon.c
+++ b/board/renesas/falcon/falcon.c
@@ -14,7 +14,6 @@
 #include <asm/processor.h>
 #include <linux/errno.h>
 #include <asm/system.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/renesas/grpeach/grpeach.c b/board/renesas/grpeach/grpeach.c
index c475c3f50ab3..88f65c3b6a07 100644
--- a/board/renesas/grpeach/grpeach.c
+++ b/board/renesas/grpeach/grpeach.c
@@ -10,7 +10,6 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
-#include <asm/u-boot.h>
 
 #define RZA1_WDT_BASE	0xfcfe0000
 #define WTCSR		0x00
diff --git a/common/init/handoff.c b/common/init/handoff.c
index 687513bda353..a7cd065fb385 100644
--- a/common/init/handoff.c
+++ b/common/init/handoff.c
@@ -7,7 +7,6 @@
 
 #include <handoff.h>
 #include <asm/global_data.h>
-#include <asm/u-boot.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 4e92771ecaae..9a879e9fb102 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -23,7 +23,6 @@
 #include <system-constants.h>
 #include <asm/global_data.h>
 #include <asm-generic/gpio.h>
-#include <asm/u-boot.h>
 #include <nand.h>
 #include <fat.h>
 #include <u-boot/crc.h>
diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c
index 2399e1d806d4..76f49a5a8a6a 100644
--- a/common/spl/spl_ext.c
+++ b/common/spl/spl_ext.c
@@ -4,7 +4,6 @@
 #include <part.h>
 #include <spl.h>
 #include <spl_load.h>
-#include <asm/u-boot.h>
 #include <ext4fs.h>
 #include <errno.h>
 #include <image.h>
diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c
index 2e320ba7c018..bd8aab253a98 100644
--- a/common/spl/spl_fat.c
+++ b/common/spl/spl_fat.c
@@ -12,7 +12,6 @@
 #include <log.h>
 #include <spl.h>
 #include <spl_load.h>
-#include <asm/u-boot.h>
 #include <fat.h>
 #include <errno.h>
 #include <image.h>
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index f4481b90463a..ccab0be4be23 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -12,7 +12,6 @@
 #include <spl_load.h>
 #include <linux/compiler.h>
 #include <errno.h>
-#include <asm/u-boot.h>
 #include <errno.h>
 #include <mmc.h>
 #include <image.h>
diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c
index 18acc40e46fc..67fc620d9bea 100644
--- a/common/spl/spl_sata.c
+++ b/common/spl/spl_sata.c
@@ -9,7 +9,6 @@
  */
 
 #include <spl.h>
-#include <asm/u-boot.h>
 #include <sata.h>
 #include <scsi.h>
 #include <errno.h>
diff --git a/common/spl/spl_usb.c b/common/spl/spl_usb.c
index 31fc4b57d486..932da56ab6db 100644
--- a/common/spl/spl_usb.c
+++ b/common/spl/spl_usb.c
@@ -10,7 +10,6 @@
 
 #include <log.h>
 #include <spl.h>
-#include <asm/u-boot.h>
 #include <errno.h>
 #include <usb.h>
 #include <fat.h>
diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c
index fd48f80f75e3..4c7222af612d 100644
--- a/common/spl/spl_ymodem.c
+++ b/common/spl/spl_ymodem.c
@@ -13,7 +13,6 @@
 #include <log.h>
 #include <spl.h>
 #include <xyzModem.h>
-#include <asm/u-boot.h>
 #include <linux/libfdt.h>
 
 #define BUF_SIZE 1024
diff --git a/drivers/clk/altera/clk-agilex5.c b/drivers/clk/altera/clk-agilex5.c
index 92f2abdaf935..72b923465df5 100644
--- a/drivers/clk/altera/clk-agilex5.c
+++ b/drivers/clk/altera/clk-agilex5.c
@@ -15,7 +15,6 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/system.h>
-#include <asm/u-boot.h>
 #include <dm/lists.h>
 #include <dm/util.h>
 #include <linux/bitops.h>
diff --git a/include/dm/of.h b/include/dm/of.h
index b1c934f610d3..b7404c139d19 100644
--- a/include/dm/of.h
+++ b/include/dm/of.h
@@ -7,7 +7,6 @@
 #ifndef _DM_OF_H
 #define _DM_OF_H
 
-#include <asm/u-boot.h>
 #include <asm/global_data.h>
 
 /* integer value within a device tree property which references another node */
diff --git a/include/fsl_errata.h b/include/fsl_errata.h
index 44547645df87..9f070726acb2 100644
--- a/include/fsl_errata.h
+++ b/include/fsl_errata.h
@@ -7,7 +7,7 @@
 #define _FSL_ERRATA_H
 
 #if defined(CONFIG_PPC)
-#include <asm/processor.h>
+#include <asm/ppc.h>
 #elif defined(CONFIG_ARCH_LS1021A)
 #include <asm/arch-ls102xa/immap_ls102xa.h>
 #elif defined(CONFIG_FSL_LAYERSCAPE)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 002/149] global: Audit usage of <eeprom.h>
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:40 ` [PATCH 003/149] eeprom.h: Add missing <linux/types.h> Tom Rini
                   ` (148 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot

The file include/eeprom.h is used only in some legacy non-DM I2C EEPROM
access cases. Remove most inclusions of this file as they are not
needed.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 board/atmel/common/mac_eeprom.c              | 1 -
 board/compulab/common/eeprom.c               | 1 -
 board/cssi/cmpcpro/cmpcpro.c                 | 1 -
 board/dhelectronics/dh_imx6/dh_imx6.c        | 1 -
 board/phytec/phycore_rk3288/phycore-rk3288.c | 1 -
 board/rockchip/tinker_rk3288/tinker-rk3288.c | 1 -
 board/ti/am43xx/board.c                      | 1 -
 board/ti/common/board_detect.c               | 1 -
 board/ti/ks2_evm/board_k2g.c                 | 1 -
 drivers/misc/i2c_eeprom.c                    | 1 -
 drivers/rtc/rv3029.c                         | 1 -
 11 files changed, 11 deletions(-)

diff --git a/board/atmel/common/mac_eeprom.c b/board/atmel/common/mac_eeprom.c
index 4606008c697f..e3ab78fb895b 100644
--- a/board/atmel/common/mac_eeprom.c
+++ b/board/atmel/common/mac_eeprom.c
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <dm.h>
-#include <eeprom.h>
 #include <env.h>
 #include <i2c_eeprom.h>
 #include <net.h>
diff --git a/board/compulab/common/eeprom.c b/board/compulab/common/eeprom.c
index c4b257f851d6..4c752821d6cd 100644
--- a/board/compulab/common/eeprom.c
+++ b/board/compulab/common/eeprom.c
@@ -7,7 +7,6 @@
  */
 
 #include <common.h>
-#include <eeprom.h>
 #include <i2c.h>
 #include <eeprom_layout.h>
 #include <eeprom_field.h>
diff --git a/board/cssi/cmpcpro/cmpcpro.c b/board/cssi/cmpcpro/cmpcpro.c
index ef3041245649..ec13d9a7ed7d 100644
--- a/board/cssi/cmpcpro/cmpcpro.c
+++ b/board/cssi/cmpcpro/cmpcpro.c
@@ -7,7 +7,6 @@
 #include <dm.h>
 #include <env.h>
 #include <env_internal.h>
-#include <eeprom.h>
 #include <fdt_support.h>
 #include <hang.h>
 #include <ioports.h>
diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c
index 0676587c38a1..9dcfcec9e9e6 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6.c
@@ -7,7 +7,6 @@
 
 #include <common.h>
 #include <dm.h>
-#include <eeprom.h>
 #include <image.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c b/board/phytec/phycore_rk3288/phycore-rk3288.c
index 3f49f39e3d5d..1ddb4a4f8085 100644
--- a/board/phytec/phycore_rk3288/phycore-rk3288.c
+++ b/board/phytec/phycore_rk3288/phycore-rk3288.c
@@ -4,7 +4,6 @@
  * Author: Wadim Egorov <w.egorov@phytec.de>
  */
 
-#include <eeprom.h>
 #include <init.h>
 #include <log.h>
 #include <net.h>
diff --git a/board/rockchip/tinker_rk3288/tinker-rk3288.c b/board/rockchip/tinker_rk3288/tinker-rk3288.c
index eff3a00c30a8..e6e75981c2d1 100644
--- a/board/rockchip/tinker_rk3288/tinker-rk3288.c
+++ b/board/rockchip/tinker_rk3288/tinker-rk3288.c
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <dm.h>
-#include <eeprom.h>
 #include <env.h>
 #include <i2c_eeprom.h>
 #include <init.h>
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c
index a4679a2e2948..fdeb63d47900 100644
--- a/board/ti/am43xx/board.c
+++ b/board/ti/am43xx/board.c
@@ -8,7 +8,6 @@
  */
 
 #include <common.h>
-#include <eeprom.h>
 #include <asm/global_data.h>
 #include <dm/uclass.h>
 #include <env.h>
diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c
index 38e23ccbb67c..644df3b0b6ab 100644
--- a/board/ti/common/board_detect.c
+++ b/board/ti/common/board_detect.c
@@ -8,7 +8,6 @@
  */
 
 #include <common.h>
-#include <eeprom.h>
 #include <log.h>
 #include <net.h>
 #include <asm/arch/hardware.h>
diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c
index 5229afad63b0..4fed42ec1244 100644
--- a/board/ti/ks2_evm/board_k2g.c
+++ b/board/ti/ks2_evm/board_k2g.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 #include <common.h>
-#include <eeprom.h>
 #include <env.h>
 #include <hang.h>
 #include <image.h>
diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c
index 9111bd724cbb..9cb375a99ab8 100644
--- a/drivers/misc/i2c_eeprom.c
+++ b/drivers/misc/i2c_eeprom.c
@@ -6,7 +6,6 @@
 #define LOG_CATEGORY UCLASS_I2C_EEPROM
 
 #include <common.h>
-#include <eeprom.h>
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
diff --git a/drivers/rtc/rv3029.c b/drivers/rtc/rv3029.c
index 3afe5b2fdd67..9c53c7f7dbc7 100644
--- a/drivers/rtc/rv3029.c
+++ b/drivers/rtc/rv3029.c
@@ -10,7 +10,6 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
-#include <eeprom.h>
 #include <i2c.h>
 #include <log.h>
 #include <rtc.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 003/149] eeprom.h: Add missing <linux/types.h>
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
  2024-05-01  2:40 ` [PATCH 002/149] global: Audit usage of <eeprom.h> Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:40 ` [PATCH 004/149] splash.h: " Tom Rini
                   ` (147 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot

This file has many "Linux" style types in it, add <linux/types.h>

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 include/eeprom.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/eeprom.h b/include/eeprom.h
index f9c6542ba762..e223e4c76707 100644
--- a/include/eeprom.h
+++ b/include/eeprom.h
@@ -8,6 +8,8 @@
 #define __EEPROM_LEGACY_H
 
 #if defined(CONFIG_CMD_EEPROM) || defined(CONFIG_ENV_IS_IN_EEPROM)
+#include <linux/types.h>
+
 void eeprom_init(int bus);
 int eeprom_read(uint dev_addr, uint offset, uchar *buffer, uint cnt);
 int eeprom_write(uint dev_addr, uint offset, uchar *buffer, uint cnt);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 004/149] splash.h: Add missing <linux/types.h>
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
  2024-05-01  2:40 ` [PATCH 002/149] global: Audit usage of <eeprom.h> Tom Rini
  2024-05-01  2:40 ` [PATCH 003/149] eeprom.h: Add missing <linux/types.h> Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:40 ` [PATCH 005/149] extension_board.h: Add missing <linux/list.h> Tom Rini
                   ` (146 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot

This file has many "Linux" style types in it, add <linux/types.h>

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 include/splash.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/splash.h b/include/splash.h
index c3922375987d..83c6fa9767f0 100644
--- a/include/splash.h
+++ b/include/splash.h
@@ -23,6 +23,7 @@
 #define _SPLASH_H_
 
 #include <errno.h>
+#include <linux/types.h>
 
 enum splash_storage {
 	SPLASH_STORAGE_NAND,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 005/149] extension_board.h: Add missing <linux/list.h>
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (2 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 004/149] splash.h: " Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:40 ` [PATCH 006/149] board: BuR: Remove <common.h> and add needed includes Tom Rini
                   ` (145 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot

This file has "struct list" in one of the structures, so add
<linux/list.h>.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 include/extension_board.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/extension_board.h b/include/extension_board.h
index 3b75b5ba9f7c..87d404c00746 100644
--- a/include/extension_board.h
+++ b/include/extension_board.h
@@ -7,6 +7,8 @@
 #ifndef __EXTENSION_SUPPORT_H
 #define __EXTENSION_SUPPORT_H
 
+#include <linux/list.h>
+
 struct extension {
 	struct list_head list;
 	char name[32];
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 006/149] board: BuR: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (3 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 005/149] extension_board.h: Add missing <linux/list.h> Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:40 ` [PATCH 007/149] board: BuS: " Tom Rini
                   ` (144 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot; +Cc: Wolfgang Wallner

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
---
 board/BuR/brppt1/board.c     | 2 +-
 board/BuR/brppt1/mux.c       | 1 -
 board/BuR/brppt2/board.c     | 1 -
 board/BuR/brsmarc1/board.c   | 1 -
 board/BuR/brsmarc1/mux.c     | 1 -
 board/BuR/brxre1/board.c     | 1 -
 board/BuR/brxre1/mux.c       | 1 -
 board/BuR/common/br_resetc.c | 1 -
 board/BuR/common/common.c    | 1 -
 9 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/board/BuR/brppt1/board.c b/board/BuR/brppt1/board.c
index 36945bbdccf5..192a2fa6327b 100644
--- a/board/BuR/brppt1/board.c
+++ b/board/BuR/brppt1/board.c
@@ -9,7 +9,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <bootcount.h>
 #include <env.h>
 #include <errno.h>
diff --git a/board/BuR/brppt1/mux.c b/board/BuR/brppt1/mux.c
index 5d2c7a201ea0..8932b9ab3b1a 100644
--- a/board/BuR/brppt1/mux.c
+++ b/board/BuR/brppt1/mux.c
@@ -8,7 +8,6 @@
  * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/BuR/brppt2/board.c b/board/BuR/brppt2/board.c
index ee006f0196c6..105fac8912d0 100644
--- a/board/BuR/brppt2/board.c
+++ b/board/BuR/brppt2/board.c
@@ -6,7 +6,6 @@
  * B&R Industrial Automation GmbH - http://www.br-automation.com/
  *
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
diff --git a/board/BuR/brsmarc1/board.c b/board/BuR/brsmarc1/board.c
index 738a5d2ff944..2d3f593d0ab0 100644
--- a/board/BuR/brsmarc1/board.c
+++ b/board/BuR/brsmarc1/board.c
@@ -8,7 +8,6 @@
  * B&R Industrial Automation GmbH - http://www.br-automation.com
  *
  */
-#include <common.h>
 #include <errno.h>
 #include <init.h>
 #include <spl.h>
diff --git a/board/BuR/brsmarc1/mux.c b/board/BuR/brsmarc1/mux.c
index 33c214d6b2a7..b59d64f93ef3 100644
--- a/board/BuR/brsmarc1/mux.c
+++ b/board/BuR/brsmarc1/mux.c
@@ -9,7 +9,6 @@
  *
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/BuR/brxre1/board.c b/board/BuR/brxre1/board.c
index a909104df4ac..b9b595cb156d 100644
--- a/board/BuR/brxre1/board.c
+++ b/board/BuR/brxre1/board.c
@@ -8,7 +8,6 @@
  * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
  *
  */
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
diff --git a/board/BuR/brxre1/mux.c b/board/BuR/brxre1/mux.c
index 6c5ad891ba91..e2e8ec57678f 100644
--- a/board/BuR/brxre1/mux.c
+++ b/board/BuR/brxre1/mux.c
@@ -8,7 +8,6 @@
  * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/BuR/common/br_resetc.c b/board/BuR/common/br_resetc.c
index 32f32b65e9d8..f5d09fef3d34 100644
--- a/board/BuR/common/br_resetc.c
+++ b/board/BuR/common/br_resetc.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2019 Hannes Schmelzer <oe5hpm@oevsv.at>
  * B&R Industrial Automation GmbH - http://www.br-automation.com/ *
  */
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <i2c.h>
diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c
index 3c78020bf93c..8aff821cfe8a 100644
--- a/board/BuR/common/common.c
+++ b/board/BuR/common/common.c
@@ -10,7 +10,6 @@
  */
 #include <log.h>
 #include <version.h>
-#include <common.h>
 #include <env.h>
 #include <fdtdec.h>
 #include <i2c.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 007/149] board: BuS: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (4 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 006/149] board: BuR: Remove <common.h> and add needed includes Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:40 ` [PATCH 008/149] board: CZ.NIC: " Tom Rini
                   ` (143 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot; +Cc: Jens Scharsig

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Jens Scharsig <esw@bus-elektronik.de>
---
 board/BuS/eb_cpu5282/eb_cpu5282.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/BuS/eb_cpu5282/eb_cpu5282.c b/board/BuS/eb_cpu5282/eb_cpu5282.c
index ea49c7a99c0b..cf5610861b50 100644
--- a/board/BuS/eb_cpu5282/eb_cpu5282.c
+++ b/board/BuS/eb_cpu5282/eb_cpu5282.c
@@ -7,7 +7,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <asm/global_data.h>
 #include "asm/m5282.h"
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 008/149] board: CZ.NIC: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (5 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 007/149] board: BuS: " Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:40 ` [PATCH 009/149] board: LaCie: " Tom Rini
                   ` (142 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Behún

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: "Marek Behún" <kabel@kernel.org>
---
 board/CZ.NIC/turris_mox/mox_sp.c         | 2 +-
 board/CZ.NIC/turris_mox/turris_mox.c     | 2 +-
 board/CZ.NIC/turris_omnia/turris_omnia.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/CZ.NIC/turris_mox/mox_sp.c b/board/CZ.NIC/turris_mox/mox_sp.c
index 11d875647170..1591b40deee6 100644
--- a/board/CZ.NIC/turris_mox/mox_sp.c
+++ b/board/CZ.NIC/turris_mox/mox_sp.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2018 Marek Behún <kabel@kernel.org>
  */
 
-#include <common.h>
+#include <vsprintf.h>
 #include <asm/arch/soc.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c
index 00114e6d9156..e4ed7f258109 100644
--- a/board/CZ.NIC/turris_mox/turris_mox.c
+++ b/board/CZ.NIC/turris_mox/turris_mox.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2018 Marek Behún <kabel@kernel.org>
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <net.h>
diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
index 3b7a71bdad25..4ee1a394b024 100644
--- a/board/CZ.NIC/turris_omnia/turris_omnia.c
+++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
@@ -7,7 +7,7 @@
  *   Marvell/db-88f6820-gp by Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 009/149] board: LaCie: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (6 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 008/149] board: CZ.NIC: " Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:40 ` [PATCH 010/149] board: Marvell: " Tom Rini
                   ` (141 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot; +Cc: Simon Guinot

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Simon Guinot <simon.guinot@sequanux.org>
---
 board/LaCie/common/common.c           | 1 -
 board/LaCie/net2big_v2/net2big_v2.c   | 2 +-
 board/LaCie/netspace_v2/netspace_v2.c | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/board/LaCie/common/common.c b/board/LaCie/common/common.c
index 52880a16fad3..e8a7830fc056 100644
--- a/board/LaCie/common/common.c
+++ b/board/LaCie/common/common.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2011 Simon Guinot <sguinot@lacie.com>
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <miiphy.h>
 
diff --git a/board/LaCie/net2big_v2/net2big_v2.c b/board/LaCie/net2big_v2/net2big_v2.c
index 917091340009..083d91b696a1 100644
--- a/board/LaCie/net2big_v2/net2big_v2.c
+++ b/board/LaCie/net2big_v2/net2big_v2.c
@@ -8,7 +8,7 @@
  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <env.h>
 #include <i2c.h>
diff --git a/board/LaCie/netspace_v2/netspace_v2.c b/board/LaCie/netspace_v2/netspace_v2.c
index 22bb008745e1..3a2fdb5c1546 100644
--- a/board/LaCie/netspace_v2/netspace_v2.c
+++ b/board/LaCie/netspace_v2/netspace_v2.c
@@ -8,7 +8,6 @@
  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 010/149] board: Marvell: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (7 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 009/149] board: LaCie: " Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:47   ` Chris Packham
                     ` (2 more replies)
  2024-05-01  2:40 ` [PATCH 011/149] board: Seagate: " Tom Rini
                   ` (140 subsequent siblings)
  149 siblings, 3 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot
  Cc: Stefan Roese, Chris Packham, Tony Dinh, Jason Cooper,
	Siddarth Gore, Aaron Williams

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Roese <sr@denx.de>
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Tony Dinh <mibodhi@gmail.com>
Cc: Jason Cooper <u-boot@lakedaemon.net>
Cc: Siddarth Gore <gores@marvell.com>
Cc: Aaron Williams <awilliams@marvell.com>
---
 arch/arm/mach-kirkwood/include/mach/mpp.h     | 2 ++
 board/Marvell/db-88f6720/db-88f6720.c         | 1 -
 board/Marvell/db-88f6820-amc/db-88f6820-amc.c | 2 +-
 board/Marvell/db-88f6820-gp/db-88f6820-gp.c   | 2 +-
 board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c   | 1 -
 board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c   | 1 -
 board/Marvell/dreamplug/dreamplug.c           | 1 -
 board/Marvell/guruplug/guruplug.c             | 1 -
 board/Marvell/mvebu_alleycat-5/board.c        | 2 +-
 board/Marvell/mvebu_armada-37xx/board.c       | 2 +-
 board/Marvell/mvebu_armada-8k/board.c         | 2 +-
 board/Marvell/octeontx2/soc-utils.c           | 1 -
 board/Marvell/openrd/openrd.c                 | 1 -
 board/Marvell/sheevaplug/sheevaplug.c         | 1 -
 14 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/arch/arm/mach-kirkwood/include/mach/mpp.h b/arch/arm/mach-kirkwood/include/mach/mpp.h
index 4d1f58c0cbdf..e2757942590b 100644
--- a/arch/arm/mach-kirkwood/include/mach/mpp.h
+++ b/arch/arm/mach-kirkwood/include/mach/mpp.h
@@ -8,6 +8,8 @@
 #ifndef __KIRKWOOD_MPP_H
 #define __KIRKWOOD_MPP_H
 
+#include <linux/types.h>
+
 #define MPP(_num, _sel, _in, _out, _F6180, _F6190, _F6192, _F6281) ( \
 	/* MPP number */		((_num) & 0xff) | \
 	/* MPP select value */		(((_sel) & 0xf) << 8) | \
diff --git a/board/Marvell/db-88f6720/db-88f6720.c b/board/Marvell/db-88f6720/db-88f6720.c
index 26c30647fbb0..920421366f11 100644
--- a/board/Marvell/db-88f6720/db-88f6720.c
+++ b/board/Marvell/db-88f6720/db-88f6720.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
diff --git a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
index 122c63d11f99..0f92cc385bc8 100644
--- a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
+++ b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2015 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <init.h>
 #include <miiphy.h>
diff --git a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
index 1edc1cb6515c..8f8b2720107a 100644
--- a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
+++ b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2015 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <init.h>
 #include <miiphy.h>
diff --git a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
index 9e1fdecfca4d..6bca1f91a0a4 100644
--- a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
+++ b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2014 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
diff --git a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
index 0abdca1cd210..a7a84798a53b 100644
--- a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
+++ b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/Marvell/dreamplug/dreamplug.c b/board/Marvell/dreamplug/dreamplug.c
index d15faa1cb7ff..381275061318 100644
--- a/board/Marvell/dreamplug/dreamplug.c
+++ b/board/Marvell/dreamplug/dreamplug.c
@@ -8,7 +8,6 @@
  * Written-by: Siddarth Gore <gores@marvell.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <netdev.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/guruplug/guruplug.c b/board/Marvell/guruplug/guruplug.c
index ea87ded222e6..7c3cea22b936 100644
--- a/board/Marvell/guruplug/guruplug.c
+++ b/board/Marvell/guruplug/guruplug.c
@@ -5,7 +5,6 @@
  * Written-by: Siddarth Gore <gores@marvell.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
diff --git a/board/Marvell/mvebu_alleycat-5/board.c b/board/Marvell/mvebu_alleycat-5/board.c
index 0c4f8e03b859..c1b7cc3b613c 100644
--- a/board/Marvell/mvebu_alleycat-5/board.c
+++ b/board/Marvell/mvebu_alleycat-5/board.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c
index 1685b12b8478..df3fb6d21645 100644
--- a/board/Marvell/mvebu_armada-37xx/board.c
+++ b/board/Marvell/mvebu_armada-37xx/board.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <env.h>
diff --git a/board/Marvell/mvebu_armada-8k/board.c b/board/Marvell/mvebu_armada-8k/board.c
index a8899af6e5af..6d7042117424 100644
--- a/board/Marvell/mvebu_armada-8k/board.c
+++ b/board/Marvell/mvebu_armada-8k/board.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <i2c.h>
 #include <init.h>
diff --git a/board/Marvell/octeontx2/soc-utils.c b/board/Marvell/octeontx2/soc-utils.c
index 43a19a90717c..64eb95f3b400 100644
--- a/board/Marvell/octeontx2/soc-utils.c
+++ b/board/Marvell/octeontx2/soc-utils.c
@@ -5,7 +5,6 @@
  * https://spdx.org/licenses
  */
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <errno.h>
diff --git a/board/Marvell/openrd/openrd.c b/board/Marvell/openrd/openrd.c
index 581e2e084d6f..dda56a582b3e 100644
--- a/board/Marvell/openrd/openrd.c
+++ b/board/Marvell/openrd/openrd.c
@@ -10,7 +10,6 @@
  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c
index 26ee39ef77f9..23e761d5febf 100644
--- a/board/Marvell/sheevaplug/sheevaplug.c
+++ b/board/Marvell/sheevaplug/sheevaplug.c
@@ -6,7 +6,6 @@
  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <netdev.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 011/149] board: Seagate: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (8 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 010/149] board: Marvell: " Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01 20:21   ` Tony Dinh
  2024-05-01  2:40 ` [PATCH 012/149] board: Synology: " Tom Rini
                   ` (139 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot; +Cc: Tony Dinh, Evgeni Dobrev

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Tony Dinh <mibodhi@gmail.com>
Cc: Evgeni Dobrev <evgeni@studio-punkt.com>
---
 board/Seagate/dockstar/dockstar.c     | 1 -
 board/Seagate/goflexhome/goflexhome.c | 1 -
 board/Seagate/nas220/nas220.c         | 1 -
 3 files changed, 3 deletions(-)

diff --git a/board/Seagate/dockstar/dockstar.c b/board/Seagate/dockstar/dockstar.c
index d72e3ef24ee6..e6ec00a9c6cc 100644
--- a/board/Seagate/dockstar/dockstar.c
+++ b/board/Seagate/dockstar/dockstar.c
@@ -9,7 +9,6 @@
  * Marvell Semiconductor <www.marvell.com>
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <init.h>
 #include <netdev.h>
diff --git a/board/Seagate/goflexhome/goflexhome.c b/board/Seagate/goflexhome/goflexhome.c
index caea89c10e07..b2d0ad8c3f22 100644
--- a/board/Seagate/goflexhome/goflexhome.c
+++ b/board/Seagate/goflexhome/goflexhome.c
@@ -12,7 +12,6 @@
  * Marvell Semiconductor <www.marvell.com>
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <init.h>
 #include <netdev.h>
diff --git a/board/Seagate/nas220/nas220.c b/board/Seagate/nas220/nas220.c
index cd2bbdad1cd6..fa7553250d1c 100644
--- a/board/Seagate/nas220/nas220.c
+++ b/board/Seagate/nas220/nas220.c
@@ -8,7 +8,6 @@
  * Marvell Semiconductor <www.marvell.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 012/149] board: Synology: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (9 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 011/149] board: Seagate: " Tom Rini
@ 2024-05-01  2:40 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 013/149] board: advantech: " Tom Rini
                   ` (138 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:40 UTC (permalink / raw)
  To: u-boot; +Cc: Walter Schweizer, Phil Sutter

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Walter Schweizer <swwa@users.sourceforge.net>
Cc: Phil Sutter <phil@nwl.cc>
---
 board/Synology/ds109/ds109.c    | 2 +-
 board/Synology/ds414/cmd_syno.c | 1 -
 board/Synology/ds414/ds414.c    | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/board/Synology/ds109/ds109.c b/board/Synology/ds109/ds109.c
index 5c3f46e23f46..4f3975781823 100644
--- a/board/Synology/ds109/ds109.c
+++ b/board/Synology/ds109/ds109.c
@@ -5,7 +5,7 @@
  * Luka Perkov <luka@openwrt.org>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
diff --git a/board/Synology/ds414/cmd_syno.c b/board/Synology/ds414/cmd_syno.c
index a62658a2eb6b..29ea35e5e910 100644
--- a/board/Synology/ds414/cmd_syno.c
+++ b/board/Synology/ds414/cmd_syno.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2015  Phil Sutter <phil@nwl.cc>
  */
 
-#include <common.h>
 #include <command.h>
 #include <div64.h>
 #include <env.h>
diff --git a/board/Synology/ds414/ds414.c b/board/Synology/ds414/ds414.c
index abe6f9eb5e23..8db810ad3eba 100644
--- a/board/Synology/ds414/ds414.c
+++ b/board/Synology/ds414/ds414.c
@@ -4,7 +4,6 @@
  * Copyright (C) 2015 Phil Sutter <phil@nwl.cc>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 013/149] board: advantech: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (10 preceding siblings ...)
  2024-05-01  2:40 ` [PATCH 012/149] board: Synology: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-02 12:15   ` Oliver Graute
  2024-05-01  2:41 ` [PATCH 014/149] board: alliedtelesis: " Tom Rini
                   ` (137 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Ying-Chun Liu (PaulLiu), Oliver Graute, George McCollister

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org>
Cc: Oliver Graute <oliver.graute@kococonnector.com>
Cc: George McCollister <george.mccollister@gmail.com>
---
 board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c       | 1 -
 board/advantech/imx8mp_rsb3720a1/spl.c                    | 2 +-
 board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c     | 1 -
 board/advantech/imx8qm_dmsse20_a1/spl.c                   | 2 +-
 board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c     | 1 -
 board/advantech/imx8qm_rom7720_a1/spl.c                   | 2 +-
 board/advantech/som-db5800-som-6867/som-db5800-som-6867.c | 1 -
 7 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c b/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
index d87fe3606f6a..070933fb54b2 100644
--- a/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
+++ b/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
@@ -4,7 +4,6 @@
  * Copyright 2022 Linaro
  */
 
-#include <common.h>
 #include <dwc3-uboot.h>
 #include <efi.h>
 #include <efi_loader.h>
diff --git a/board/advantech/imx8mp_rsb3720a1/spl.c b/board/advantech/imx8mp_rsb3720a1/spl.c
index f4257bc993d6..1f7c1f25adcf 100644
--- a/board/advantech/imx8mp_rsb3720a1/spl.c
+++ b/board/advantech/imx8mp_rsb3720a1/spl.c
@@ -4,7 +4,7 @@
  * Copyright 2022 Linaro
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <errno.h>
diff --git a/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c b/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c
index 56b7bdb57c94..50b35db5f6cf 100644
--- a/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c
+++ b/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c
@@ -4,7 +4,6 @@
  * Copyright 2019-2023 Kococonnector GmbH
  */
 
-#include <common.h>
 #include <errno.h>
 #include <linux/libfdt.h>
 #include <asm/io.h>
diff --git a/board/advantech/imx8qm_dmsse20_a1/spl.c b/board/advantech/imx8qm_dmsse20_a1/spl.c
index e8959ede51d9..93cf07440026 100644
--- a/board/advantech/imx8qm_dmsse20_a1/spl.c
+++ b/board/advantech/imx8qm_dmsse20_a1/spl.c
@@ -3,7 +3,7 @@
  * Copyright 2017-2018 NXP
  * Copyright 2019-2023 Kococonnector GmbH
  */
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <spl.h>
 #include <init.h>
diff --git a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
index 7f766a688bb5..3def182f2967 100644
--- a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
+++ b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
@@ -4,7 +4,6 @@
  * Copyright (C) 2019 Oliver Graute <oliver.graute@kococonnector.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <errno.h>
diff --git a/board/advantech/imx8qm_rom7720_a1/spl.c b/board/advantech/imx8qm_rom7720_a1/spl.c
index d32400101fc9..5863e335a8bc 100644
--- a/board/advantech/imx8qm_rom7720_a1/spl.c
+++ b/board/advantech/imx8qm_rom7720_a1/spl.c
@@ -2,7 +2,7 @@
 /*
  * Copyright 2017-2018 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c b/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
index 8499fc541fa7..9bbd5fd291aa 100644
--- a/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
+++ b/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
@@ -4,7 +4,6 @@
  * Copyright (C) 2016 George McCollister <george.mccollister@gmail.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/fsp1/fsp_support.h>
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 014/149] board: alliedtelesis: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (11 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 013/149] board: advantech: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:47   ` Chris Packham
  2024-05-01  2:41 ` [PATCH 015/149] board: amarula: " Tom Rini
                   ` (136 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Chris Packham

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
 board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c     | 1 -
 board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c | 1 -
 board/alliedtelesis/common/gpio_hog.c           | 1 -
 board/alliedtelesis/x240/x240.c                 | 2 +-
 board/alliedtelesis/x530/x530.c                 | 2 +-
 5 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c b/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
index e0a7f3fa89f0..5e6d6c6234fb 100644
--- a/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
+++ b/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
@@ -4,7 +4,6 @@
  * Allied Telesis <www.alliedtelesis.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <asm/global_data.h>
diff --git a/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c b/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
index 52b8eba92fc1..f30821c17963 100644
--- a/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
+++ b/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
@@ -4,7 +4,6 @@
  * Allied Telesis <www.alliedtelesis.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
diff --git a/board/alliedtelesis/common/gpio_hog.c b/board/alliedtelesis/common/gpio_hog.c
index 4aecf7e2cef7..7da70fb4f7d6 100644
--- a/board/alliedtelesis/common/gpio_hog.c
+++ b/board/alliedtelesis/common/gpio_hog.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Allied Telesis Labs
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
diff --git a/board/alliedtelesis/x240/x240.c b/board/alliedtelesis/x240/x240.c
index 0c4f8e03b859..c1b7cc3b613c 100644
--- a/board/alliedtelesis/x240/x240.c
+++ b/board/alliedtelesis/x240/x240.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c
index 80ad62c2c665..65e6d48db0a6 100644
--- a/board/alliedtelesis/x530/x530.c
+++ b/board/alliedtelesis/x530/x530.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2017 Allied Telesis Labs
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <env.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 015/149] board: amarula: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (12 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 014/149] board: alliedtelesis: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 016/149] board: amlogic: " Tom Rini
                   ` (135 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Jagan Teki, Simon Glass, Philipp Tomsich, Kever Yang

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
Cc: Kever Yang <kever.yang@rock-chips.com>
---
 board/amarula/vyasa-rk3288/vyasa-rk3288.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/amarula/vyasa-rk3288/vyasa-rk3288.c b/board/amarula/vyasa-rk3288/vyasa-rk3288.c
index 92e0698c534b..b220256c67fa 100644
--- a/board/amarula/vyasa-rk3288/vyasa-rk3288.c
+++ b/board/amarula/vyasa-rk3288/vyasa-rk3288.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Amarula Solutions
  */
 
-#include <common.h>
 #include <serial.h>
 
 #ifndef CONFIG_TPL_BUILD
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 016/149] board: amlogic: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (13 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 015/149] board: amarula: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 017/149] board: aristainetos: " Tom Rini
                   ` (134 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Christian Hewitt, Viacheslav Bocharov, Neil Armstrong, Beniamino Galvani

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Christian Hewitt <christianshewitt@gmail.com>
Cc: Viacheslav Bocharov <adeep@lexina.in>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Beniamino Galvani <b.galvani@gmail.com>
---
 board/amlogic/beelink-s922x/beelink-s922x.c     | 1 -
 board/amlogic/jethub-j100/jethub-j100.c         | 1 -
 board/amlogic/jethub-j80/jethub-j80.c           | 1 -
 board/amlogic/odroid-go-ultra/odroid-go-ultra.c | 2 +-
 board/amlogic/odroid-n2/odroid-n2.c             | 1 -
 board/amlogic/p200/p200.c                       | 1 -
 board/amlogic/p201/p201.c                       | 1 -
 board/amlogic/p212/p212.c                       | 1 -
 board/amlogic/q200/q200.c                       | 1 -
 board/amlogic/s400/s400.c                       | 1 -
 board/amlogic/sei510/sei510.c                   | 1 -
 board/amlogic/sei610/sei610.c                   | 1 -
 board/amlogic/u200/u200.c                       | 1 -
 board/amlogic/vim3/vim3.c                       | 1 -
 board/amlogic/w400/w400.c                       | 1 -
 15 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/board/amlogic/beelink-s922x/beelink-s922x.c b/board/amlogic/beelink-s922x/beelink-s922x.c
index c2776310a3dc..ccb2f7d1bb19 100644
--- a/board/amlogic/beelink-s922x/beelink-s922x.c
+++ b/board/amlogic/beelink-s922x/beelink-s922x.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/amlogic/jethub-j100/jethub-j100.c b/board/amlogic/jethub-j100/jethub-j100.c
index 010fc0df7d18..b770a1f8c537 100644
--- a/board/amlogic/jethub-j100/jethub-j100.c
+++ b/board/amlogic/jethub-j100/jethub-j100.c
@@ -4,7 +4,6 @@
  * Author: Vyacheslav Bocharov <adeep@lexina.in>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/amlogic/jethub-j80/jethub-j80.c b/board/amlogic/jethub-j80/jethub-j80.c
index 0b781666e985..07a08dcd1700 100644
--- a/board/amlogic/jethub-j80/jethub-j80.c
+++ b/board/amlogic/jethub-j80/jethub-j80.c
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <adc.h>
 #include <env.h>
diff --git a/board/amlogic/odroid-go-ultra/odroid-go-ultra.c b/board/amlogic/odroid-go-ultra/odroid-go-ultra.c
index bbd23e20fcdd..8f3f2045d74d 100644
--- a/board/amlogic/odroid-go-ultra/odroid-go-ultra.c
+++ b/board/amlogic/odroid-go-ultra/odroid-go-ultra.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2023 Neil Armstrong <neil.armstrong@linaro.org>
  */
 
-#include <common.h>
+#include <log.h>
 #include <asm/arch/boot.h>
 #include <power/regulator.h>
 
diff --git a/board/amlogic/odroid-n2/odroid-n2.c b/board/amlogic/odroid-n2/odroid-n2.c
index a4bcc62174a0..ae953d0e4bab 100644
--- a/board/amlogic/odroid-n2/odroid-n2.c
+++ b/board/amlogic/odroid-n2/odroid-n2.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <adc.h>
 #include <env.h>
diff --git a/board/amlogic/p200/p200.c b/board/amlogic/p200/p200.c
index 754242e4a9fa..3bede46b324c 100644
--- a/board/amlogic/p200/p200.c
+++ b/board/amlogic/p200/p200.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/amlogic/p201/p201.c b/board/amlogic/p201/p201.c
index 769e2735d27e..d44ebae07dde 100644
--- a/board/amlogic/p201/p201.c
+++ b/board/amlogic/p201/p201.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/amlogic/p212/p212.c b/board/amlogic/p212/p212.c
index f6e60ae3af17..ae9834c0bf8d 100644
--- a/board/amlogic/p212/p212.c
+++ b/board/amlogic/p212/p212.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/amlogic/q200/q200.c b/board/amlogic/q200/q200.c
index 47f1566a9d3d..0c0afccb38c2 100644
--- a/board/amlogic/q200/q200.c
+++ b/board/amlogic/q200/q200.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/amlogic/s400/s400.c b/board/amlogic/s400/s400.c
index 06a9044fd808..96244c9ccb11 100644
--- a/board/amlogic/s400/s400.c
+++ b/board/amlogic/s400/s400.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/amlogic/sei510/sei510.c b/board/amlogic/sei510/sei510.c
index bb188c21f75f..1a978d1290a5 100644
--- a/board/amlogic/sei510/sei510.c
+++ b/board/amlogic/sei510/sei510.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <env_internal.h>
diff --git a/board/amlogic/sei610/sei610.c b/board/amlogic/sei610/sei610.c
index 6490bac9eb55..8a096b15bfb2 100644
--- a/board/amlogic/sei610/sei610.c
+++ b/board/amlogic/sei610/sei610.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <env_internal.h>
diff --git a/board/amlogic/u200/u200.c b/board/amlogic/u200/u200.c
index 06a9044fd808..96244c9ccb11 100644
--- a/board/amlogic/u200/u200.c
+++ b/board/amlogic/u200/u200.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/amlogic/vim3/vim3.c b/board/amlogic/vim3/vim3.c
index a4850364f418..bbc2d826e050 100644
--- a/board/amlogic/vim3/vim3.c
+++ b/board/amlogic/vim3/vim3.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env_internal.h>
 #include <init.h>
diff --git a/board/amlogic/w400/w400.c b/board/amlogic/w400/w400.c
index 4199198496b1..b84366aaeb15 100644
--- a/board/amlogic/w400/w400.c
+++ b/board/amlogic/w400/w400.c
@@ -4,7 +4,6 @@
  * Author: Neil Armstrong <narmstrong@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env_internal.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 017/149] board: aristainetos: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (14 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 016/149] board: amlogic: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  5:05   ` Heiko Schocher
  2024-05-01  2:41 ` [PATCH 018/149] board: armadeus: " Tom Rini
                   ` (133 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Heiko Schocher

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Heiko Schocher <hs@denx.de>
---
 board/aristainetos/aristainetos.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/aristainetos/aristainetos.c b/board/aristainetos/aristainetos.c
index 17f37badd746..8cfac9fbb342 100644
--- a/board/aristainetos/aristainetos.c
+++ b/board/aristainetos/aristainetos.c
@@ -9,7 +9,6 @@
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
 
-#include <common.h>
 #include <bmp_layout.h>
 #include <command.h>
 #include <image.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 018/149] board: armadeus: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (15 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 017/149] board: aristainetos: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 019/149] board: armltd: " Tom Rini
                   ` (132 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Sébastien Szymanski

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: "Sébastien Szymanski" <sebastien.szymanski@armadeus.com>
---
 board/armadeus/opos6uldev/board.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/armadeus/opos6uldev/board.c b/board/armadeus/opos6uldev/board.c
index 365fdca1b76f..5b25545cdb88 100644
--- a/board/armadeus/opos6uldev/board.c
+++ b/board/armadeus/opos6uldev/board.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Armadeus Systems
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 019/149] board: armltd: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (16 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 018/149] board: armadeus: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 020/149] board: astro: " Tom Rini
                   ` (131 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Abdellatif El Khlifi, Xueliang Zhong, Linus Walleij, Usama Arif,
	Kristian Amlie, Liviu Dudau, David Feng, Peter Hoyes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Cc: Xueliang Zhong <xueliang.zhong@arm.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Usama Arif <usama.arif@arm.com>
Cc: Kristian Amlie <kristian.amlie@northern.tech>
Cc: Liviu Dudau <liviu.dudau@foss.arm.com>
Cc: David Feng <fenghua@phytium.com.cn>
Cc: Peter Hoyes <Peter.Hoyes@arm.com>
---
 board/armltd/corstone1000/corstone1000.c   | 1 -
 board/armltd/integrator/integrator.c       | 2 +-
 board/armltd/integrator/timer.c            | 2 +-
 board/armltd/total_compute/total_compute.c | 2 +-
 board/armltd/vexpress/vexpress_common.c    | 2 +-
 board/armltd/vexpress64/pcie.c             | 1 -
 board/armltd/vexpress64/vexpress64.c       | 2 +-
 7 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/board/armltd/corstone1000/corstone1000.c b/board/armltd/corstone1000/corstone1000.c
index 01c80aaf9d77..3ad77f51949f 100644
--- a/board/armltd/corstone1000/corstone1000.c
+++ b/board/armltd/corstone1000/corstone1000.c
@@ -6,7 +6,6 @@
  */
 
 #include <blk.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <env.h>
diff --git a/board/armltd/integrator/integrator.c b/board/armltd/integrator/integrator.c
index ad02cf16da5e..eaf87e3bfe30 100644
--- a/board/armltd/integrator/integrator.c
+++ b/board/armltd/integrator/integrator.c
@@ -16,7 +16,7 @@
  * Philippe Robin, <philippe.robin@arm.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <bootstage.h>
 #include <cpu_func.h>
 #include <dm.h>
diff --git a/board/armltd/integrator/timer.c b/board/armltd/integrator/timer.c
index 9db5135a8ffa..f4101b649e30 100644
--- a/board/armltd/integrator/timer.c
+++ b/board/armltd/integrator/timer.c
@@ -16,7 +16,7 @@
  * Philippe Robin, <philippe.robin@arm.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <div64.h>
 #include <time.h>
 #include <linux/delay.h>
diff --git a/board/armltd/total_compute/total_compute.c b/board/armltd/total_compute/total_compute.c
index 53941b5f5f28..e1b4f49d044b 100644
--- a/board/armltd/total_compute/total_compute.c
+++ b/board/armltd/total_compute/total_compute.c
@@ -4,7 +4,7 @@
  * Usama Arif <usama.arif@arm.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <dm/platform_data/serial_pl01x.h>
 #include <asm/armv8/mmu.h>
diff --git a/board/armltd/vexpress/vexpress_common.c b/board/armltd/vexpress/vexpress_common.c
index 763131c217e5..6c374e25e32c 100644
--- a/board/armltd/vexpress/vexpress_common.c
+++ b/board/armltd/vexpress/vexpress_common.c
@@ -15,7 +15,7 @@
  * ARM Ltd.
  * Philippe Robin, <philippe.robin@arm.com>
  */
-#include <common.h>
+#include <config.h>
 #include <bootstage.h>
 #include <cpu_func.h>
 #include <init.h>
diff --git a/board/armltd/vexpress64/pcie.c b/board/armltd/vexpress64/pcie.c
index e553da86e0e0..1045c905f732 100644
--- a/board/armltd/vexpress64/pcie.c
+++ b/board/armltd/vexpress64/pcie.c
@@ -5,7 +5,6 @@
  * Author: Liviu Dudau <Liviu.Dudau@arm.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <log.h>
 #include <asm/io.h>
diff --git a/board/armltd/vexpress64/vexpress64.c b/board/armltd/vexpress64/vexpress64.c
index ee65a596838a..0119f54f0df8 100644
--- a/board/armltd/vexpress64/vexpress64.c
+++ b/board/armltd/vexpress64/vexpress64.c
@@ -4,7 +4,7 @@
  * David Feng <fenghua@phytium.com.cn>
  * Sharma Bhupesh <bhupesh.sharma@freescale.com>
  */
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 020/149] board: astro: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (17 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 019/149] board: armltd: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 021/149] board: atmel: " Tom Rini
                   ` (130 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Wolfgang Wegner

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Wolfgang Wegner <w.wegner@astro-kom.de>
---
 board/astro/mcf5373l/fpga.c     | 1 -
 board/astro/mcf5373l/mcf5373l.c | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/astro/mcf5373l/fpga.c b/board/astro/mcf5373l/fpga.c
index f85737432b31..6e505c630d12 100644
--- a/board/astro/mcf5373l/fpga.c
+++ b/board/astro/mcf5373l/fpga.c
@@ -13,7 +13,6 @@
 
 /* Altera/Xilinx FPGA configuration support for the ASTRO "URMEL" board */
 
-#include <common.h>
 #include <console.h>
 #include <watchdog.h>
 #include <altera.h>
diff --git a/board/astro/mcf5373l/mcf5373l.c b/board/astro/mcf5373l/mcf5373l.c
index 43563c412793..43fcbc65513d 100644
--- a/board/astro/mcf5373l/mcf5373l.c
+++ b/board/astro/mcf5373l/mcf5373l.c
@@ -5,9 +5,10 @@
  * modified by Wolfgang Wegner <w.wegner@astro-kom.de> for ASTRO 5373l
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <serial.h>
+#include <time.h>
 #include <watchdog.h>
 #include <command.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 021/149] board: atmel: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (18 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 020/149] board: astro: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 022/149] board: avionic-design: " Tom Rini
                   ` (129 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Stelian Pop, Eugen Hristev, Durai Manickam KR,
	Sandeep Sheriker M, Nicolas Ferre, Ludovic Desroches, Mihai Sain

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stelian Pop <stelian@popies.net>
Cc: Eugen Hristev <eugen.hristev@collabora.com>
Cc: Durai Manickam KR <durai.manickamkr@microchip.com>
Cc: Sandeep Sheriker M <sandeep.sheriker@microchip.com>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Mihai Sain <mihai.sain@microchip.com>
---
 board/atmel/at91sam9260ek/at91sam9260ek.c           | 2 +-
 board/atmel/at91sam9261ek/at91sam9261ek.c           | 2 +-
 board/atmel/at91sam9263ek/at91sam9263ek.c           | 2 +-
 board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c     | 2 +-
 board/atmel/at91sam9n12ek/at91sam9n12ek.c           | 2 +-
 board/atmel/at91sam9rlek/at91sam9rlek.c             | 2 +-
 board/atmel/at91sam9x5ek/at91sam9x5ek.c             | 2 +-
 board/atmel/common/board.c                          | 1 -
 board/atmel/common/mac-spi-nor.c                    | 1 -
 board/atmel/common/mac_eeprom.c                     | 1 -
 board/atmel/common/video_display.c                  | 1 -
 board/atmel/sam9x60_curiosity/sam9x60_curiosity.c   | 1 -
 board/atmel/sam9x60ek/sam9x60ek.c                   | 2 +-
 board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c     | 1 -
 board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c | 2 +-
 board/atmel/sama5d29_curiosity/sama5d29_curiosity.c | 1 -
 board/atmel/sama5d2_icp/sama5d2_icp.c               | 2 +-
 board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c         | 2 +-
 board/atmel/sama5d2_xplained/sama5d2_xplained.c     | 1 -
 board/atmel/sama5d3_xplained/sama5d3_xplained.c     | 2 +-
 board/atmel/sama5d3xek/sama5d3xek.c                 | 2 +-
 board/atmel/sama5d4_xplained/sama5d4_xplained.c     | 2 +-
 board/atmel/sama5d4ek/sama5d4ek.c                   | 2 +-
 board/atmel/sama7g54_curiosity/sama7g54_curiosity.c | 1 -
 board/atmel/sama7g5ek/sama7g5ek.c                   | 2 +-
 25 files changed, 16 insertions(+), 25 deletions(-)

diff --git a/board/atmel/at91sam9260ek/at91sam9260ek.c b/board/atmel/at91sam9260ek/at91sam9260ek.c
index b8e02f459031..48aec652c4a4 100644
--- a/board/atmel/at91sam9260ek/at91sam9260ek.c
+++ b/board/atmel/at91sam9260ek/at91sam9260ek.c
@@ -5,7 +5,7 @@
  * Lead Tech Design <www.leadtechdesign.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/atmel/at91sam9261ek/at91sam9261ek.c b/board/atmel/at91sam9261ek/at91sam9261ek.c
index eab3a1308195..5d7a18379fae 100644
--- a/board/atmel/at91sam9261ek/at91sam9261ek.c
+++ b/board/atmel/at91sam9261ek/at91sam9261ek.c
@@ -5,7 +5,7 @@
  * Lead Tech Design <www.leadtechdesign.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <vsprintf.h>
diff --git a/board/atmel/at91sam9263ek/at91sam9263ek.c b/board/atmel/at91sam9263ek/at91sam9263ek.c
index 15f20b62f672..2b0b01798eae 100644
--- a/board/atmel/at91sam9263ek/at91sam9263ek.c
+++ b/board/atmel/at91sam9263ek/at91sam9263ek.c
@@ -5,7 +5,7 @@
  * Lead Tech Design <www.leadtechdesign.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
index f53c1cf612d5..3bd94d0889da 100644
--- a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
+++ b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
@@ -5,7 +5,7 @@
  * Lead Tech Design <www.leadtechdesign.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/atmel/at91sam9n12ek/at91sam9n12ek.c b/board/atmel/at91sam9n12ek/at91sam9n12ek.c
index a3e294c88fc8..afc0c0520e1f 100644
--- a/board/atmel/at91sam9n12ek/at91sam9n12ek.c
+++ b/board/atmel/at91sam9n12ek/at91sam9n12ek.c
@@ -4,7 +4,7 @@
  * Josh Wu <josh.wu@atmel.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <net.h>
 #include <vsprintf.h>
diff --git a/board/atmel/at91sam9rlek/at91sam9rlek.c b/board/atmel/at91sam9rlek/at91sam9rlek.c
index 11725f778b7d..214e917381e7 100644
--- a/board/atmel/at91sam9rlek/at91sam9rlek.c
+++ b/board/atmel/at91sam9rlek/at91sam9rlek.c
@@ -5,7 +5,7 @@
  * Lead Tech Design <www.leadtechdesign.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <vsprintf.h>
diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
index ab666b6be34f..e5688c6cf132 100644
--- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c
+++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2012 Atmel Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/atmel/common/board.c b/board/atmel/common/board.c
index c93c0e52e30d..55afd43d4f32 100644
--- a/board/atmel/common/board.c
+++ b/board/atmel/common/board.c
@@ -4,7 +4,6 @@
  *		      Wenyou Yang <wenyou.yang@microchip.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <w1.h>
diff --git a/board/atmel/common/mac-spi-nor.c b/board/atmel/common/mac-spi-nor.c
index ced27b65e63b..628f79581295 100644
--- a/board/atmel/common/mac-spi-nor.c
+++ b/board/atmel/common/mac-spi-nor.c
@@ -5,7 +5,6 @@
  * Author: Tudor Ambarus <tudor.ambarus@microchip.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <net.h>
diff --git a/board/atmel/common/mac_eeprom.c b/board/atmel/common/mac_eeprom.c
index e3ab78fb895b..97edb7a549d4 100644
--- a/board/atmel/common/mac_eeprom.c
+++ b/board/atmel/common/mac_eeprom.c
@@ -4,7 +4,6 @@
  *		      Wenyou Yang <wenyou.yang@microchip.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <i2c_eeprom.h>
diff --git a/board/atmel/common/video_display.c b/board/atmel/common/video_display.c
index a5049f4aad41..771888205814 100644
--- a/board/atmel/common/video_display.c
+++ b/board/atmel/common/video_display.c
@@ -4,7 +4,6 @@
  *		      Wenyou Yang <wenyou.yang@microchip.com>
  */
 
-#include <common.h>
 #include <atmel_lcd.h>
 #include <dm.h>
 #include <init.h>
diff --git a/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c b/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
index f53d359404ef..e75043ec00f9 100644
--- a/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
+++ b/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
@@ -5,7 +5,6 @@
  * Author: Durai Manickam KR <durai.manickamkr@microchip.com>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <fdtdec.h>
 #include <init.h>
diff --git a/board/atmel/sam9x60ek/sam9x60ek.c b/board/atmel/sam9x60ek/sam9x60ek.c
index 3fbfca4acc96..2e5073f02b3e 100644
--- a/board/atmel/sam9x60ek/sam9x60ek.c
+++ b/board/atmel/sam9x60ek/sam9x60ek.c
@@ -5,7 +5,7 @@
  * Author: Sandeep Sheriker M <sandeep.sheriker@microchip.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c b/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c
index 329eac7223ad..36995a927cf1 100644
--- a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c
+++ b/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c
@@ -4,7 +4,6 @@
  *		      Wenyou.Yang <wenyou.yang@microchip.com>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <fdtdec.h>
 #include <init.h>
diff --git a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
index 6e41017af17c..c775d593e58c 100644
--- a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
+++ b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
@@ -5,7 +5,7 @@
  * Author: Nicolas Ferre <nicolas.ferre@microcihp.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/atmel/sama5d29_curiosity/sama5d29_curiosity.c b/board/atmel/sama5d29_curiosity/sama5d29_curiosity.c
index d0679317fb2d..8759ff6f01ac 100644
--- a/board/atmel/sama5d29_curiosity/sama5d29_curiosity.c
+++ b/board/atmel/sama5d29_curiosity/sama5d29_curiosity.c
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/atmel/sama5d2_icp/sama5d2_icp.c b/board/atmel/sama5d2_icp/sama5d2_icp.c
index fabe492715ab..986da01639f9 100644
--- a/board/atmel/sama5d2_icp/sama5d2_icp.c
+++ b/board/atmel/sama5d2_icp/sama5d2_icp.c
@@ -4,7 +4,7 @@
  *		      Eugen Hristev <eugen.hristev@microchip.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c b/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
index 854715ea2269..438829df82d5 100644
--- a/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
+++ b/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
@@ -4,7 +4,7 @@
  *		      Wenyou Yang <wenyou.yang@microchip.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <dm.h>
 #include <i2c.h>
diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c b/board/atmel/sama5d2_xplained/sama5d2_xplained.c
index aa522075691c..c8a8eb49826b 100644
--- a/board/atmel/sama5d2_xplained/sama5d2_xplained.c
+++ b/board/atmel/sama5d2_xplained/sama5d2_xplained.c
@@ -4,7 +4,6 @@
  *		      Wenyou.Yang <wenyou.yang@atmel.com>
  */
 
-#include <common.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/atmel/sama5d3_xplained/sama5d3_xplained.c b/board/atmel/sama5d3_xplained/sama5d3_xplained.c
index ce73a801e501..54cc3c4d9003 100644
--- a/board/atmel/sama5d3_xplained/sama5d3_xplained.c
+++ b/board/atmel/sama5d3_xplained/sama5d3_xplained.c
@@ -4,7 +4,7 @@
  *		      Bo Shen <voice.shen@atmel.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c
index 660a6b9d5835..f2e1242fcb0f 100644
--- a/board/atmel/sama5d3xek/sama5d3xek.c
+++ b/board/atmel/sama5d3xek/sama5d3xek.c
@@ -4,7 +4,7 @@
  * Bo Shen <voice.shen@atmel.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b/board/atmel/sama5d4_xplained/sama5d4_xplained.c
index 780aba15ab1d..09ca16ca88ce 100644
--- a/board/atmel/sama5d4_xplained/sama5d4_xplained.c
+++ b/board/atmel/sama5d4_xplained/sama5d4_xplained.c
@@ -4,7 +4,7 @@
  *		      Bo Shen <voice.shen@atmel.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c
index 2226906a3b3d..1f8b85f0614e 100644
--- a/board/atmel/sama5d4ek/sama5d4ek.c
+++ b/board/atmel/sama5d4ek/sama5d4ek.c
@@ -4,7 +4,7 @@
  *		      Bo Shen <voice.shen@atmel.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/atmel/sama7g54_curiosity/sama7g54_curiosity.c b/board/atmel/sama7g54_curiosity/sama7g54_curiosity.c
index 33cd0903d253..b05c9754c964 100644
--- a/board/atmel/sama7g54_curiosity/sama7g54_curiosity.c
+++ b/board/atmel/sama7g54_curiosity/sama7g54_curiosity.c
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/atmel/sama7g5ek/sama7g5ek.c b/board/atmel/sama7g5ek/sama7g5ek.c
index 295fd079dcf7..c07115a21195 100644
--- a/board/atmel/sama7g5ek/sama7g5ek.c
+++ b/board/atmel/sama7g5ek/sama7g5ek.c
@@ -4,7 +4,7 @@
  *		      Eugen Hristev <eugen.hristev@microchip.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 022/149] board: avionic-design: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (19 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 021/149] board: atmel: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 023/149] board: beacon: " Tom Rini
                   ` (128 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Alban Bedel

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Alban Bedel <alban.bedel@avionic-design.de>
---
 board/avionic-design/common/tamonten-ng.c | 1 -
 board/avionic-design/common/tamonten.c    | 1 -
 board/avionic-design/tec-ng/tec-ng-spl.c  | 1 -
 3 files changed, 3 deletions(-)

diff --git a/board/avionic-design/common/tamonten-ng.c b/board/avionic-design/common/tamonten-ng.c
index 29bde60228f9..e35bda814681 100644
--- a/board/avionic-design/common/tamonten-ng.c
+++ b/board/avionic-design/common/tamonten-ng.c
@@ -4,7 +4,6 @@
  * Avionic Design GmbH <www.avionic-design.de>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/arch/pinmux.h>
diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c
index 988f057a281c..4d7477237d44 100644
--- a/board/avionic-design/common/tamonten.c
+++ b/board/avionic-design/common/tamonten.c
@@ -6,7 +6,6 @@
  *  Avionic Design GmbH <www.avionic-design.de>
  */
 
-#include <common.h>
 #include <ns16550.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/board/avionic-design/tec-ng/tec-ng-spl.c b/board/avionic-design/tec-ng/tec-ng-spl.c
index 6e544641833e..250494524952 100644
--- a/board/avionic-design/tec-ng/tec-ng-spl.c
+++ b/board/avionic-design/tec-ng/tec-ng-spl.c
@@ -7,7 +7,6 @@
  *  Svyatoslav Ryhel <clamor95@gmail.com>
  */
 
-#include <common.h>
 #include <asm/arch-tegra/tegra_i2c.h>
 #include <linux/delay.h>
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 023/149] board: beacon: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (20 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 022/149] board: avionic-design: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  9:22   ` Adam Ford
  2024-05-01  2:41 ` [PATCH 024/149] board: beagle: " Tom Rini
                   ` (127 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Adam Ford

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Adam Ford <aford173@gmail.com>
---
 board/beacon/beacon-rzg2m/beacon-rzg2m.c | 1 -
 board/beacon/imx8mm/lpddr4_timing.c      | 1 -
 board/beacon/imx8mm/spl.c                | 1 -
 board/beacon/imx8mn/spl.c                | 1 -
 board/beacon/imx8mp/imx8mp_beacon.c      | 1 -
 board/beacon/imx8mp/spl.c                | 1 -
 6 files changed, 6 deletions(-)

diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
index 99fe1edfb330..099053235ded 100644
--- a/board/beacon/beacon-rzg2m/beacon-rzg2m.c
+++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
@@ -3,7 +3,6 @@
  * Copyright 2020 Compass Electronics Group, LLC
  */
 
-#include <common.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 
diff --git a/board/beacon/imx8mm/lpddr4_timing.c b/board/beacon/imx8mm/lpddr4_timing.c
index 8e48b9d81b77..c1498dd5eaf4 100644
--- a/board/beacon/imx8mm/lpddr4_timing.c
+++ b/board/beacon/imx8mm/lpddr4_timing.c
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/beacon/imx8mm/spl.c b/board/beacon/imx8mm/spl.c
index 1632238bf5dd..12013aa5a4da 100644
--- a/board/beacon/imx8mm/spl.c
+++ b/board/beacon/imx8mm/spl.c
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
diff --git a/board/beacon/imx8mn/spl.c b/board/beacon/imx8mn/spl.c
index b4d46f11f98d..f03841e5a01d 100644
--- a/board/beacon/imx8mn/spl.c
+++ b/board/beacon/imx8mn/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2020 Compass Electronics Group, LLC
  */
 
-#include <common.h>
 #include <hang.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/beacon/imx8mp/imx8mp_beacon.c b/board/beacon/imx8mp/imx8mp_beacon.c
index 8963a51fbba0..dd74e7c0f755 100644
--- a/board/beacon/imx8mp/imx8mp_beacon.c
+++ b/board/beacon/imx8mp/imx8mp_beacon.c
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /* Copyright 2023 Logic PD, Inc dba Beacon EmbeddedWorks */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/beacon/imx8mp/spl.c b/board/beacon/imx8mp/spl.c
index 591e8ca9ab5b..30d577f7e0e3 100644
--- a/board/beacon/imx8mp/spl.c
+++ b/board/beacon/imx8mp/spl.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <hang.h>
 #include <init.h>
 #include <log.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 024/149] board: beagle: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (21 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 023/149] board: beacon: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 025/149] board: beckhoff: " Tom Rini
                   ` (126 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Tom Rini <trini@konsulko.com>
---
 board/beagle/beagle/beagle.c | 2 +-
 board/beagle/beagle/led.c    | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/beagle/beagle/beagle.c b/board/beagle/beagle/beagle.c
index 847d596646e3..ac2f89cf213a 100644
--- a/board/beagle/beagle/beagle.c
+++ b/board/beagle/beagle/beagle.c
@@ -12,7 +12,7 @@
  *	Syed Mohammed Khasim <khasim@ti.com>
  *
  */
-#include <common.h>
+#include <config.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <env.h>
diff --git a/board/beagle/beagle/led.c b/board/beagle/beagle/led.c
index e21c0169db71..efbd7c1e0e36 100644
--- a/board/beagle/beagle/led.c
+++ b/board/beagle/beagle/led.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2010 Texas Instruments, Inc.
  * Jason Kridner <jkridner@beagleboard.org>
  */
-#include <common.h>
 #include <status_led.h>
 #include <asm/arch/cpu.h>
 #include <asm/io.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 025/149] board: beckhoff: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (22 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 024/149] board: beagle: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-02  6:47   ` Patrick Brünn
  2024-05-01  2:41 ` [PATCH 026/149] board: bluewater: " Tom Rini
                   ` (125 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Patrick Bruenn

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Patrick Bruenn <p.bruenn@beckhoff.com>
---
 board/beckhoff/mx53cx9020/mx53cx9020.c       | 1 -
 board/beckhoff/mx53cx9020/mx53cx9020_video.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/beckhoff/mx53cx9020/mx53cx9020.c b/board/beckhoff/mx53cx9020/mx53cx9020.c
index e7b131836b61..3a766728a6f7 100644
--- a/board/beckhoff/mx53cx9020/mx53cx9020.c
+++ b/board/beckhoff/mx53cx9020/mx53cx9020.c
@@ -7,7 +7,6 @@
  * Copyright (C) 2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/beckhoff/mx53cx9020/mx53cx9020_video.c b/board/beckhoff/mx53cx9020/mx53cx9020_video.c
index bf4729025622..fd28a70f4d72 100644
--- a/board/beckhoff/mx53cx9020/mx53cx9020_video.c
+++ b/board/beckhoff/mx53cx9020/mx53cx9020_video.c
@@ -7,7 +7,6 @@
  * Copyright (C) 2012 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <asm/arch/iomux-mx53.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/video.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 026/149] board: bluewater: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (23 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 025/149] board: beckhoff: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 027/149] board: bosch: " Tom Rini
                   ` (124 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Simon Glass

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Simon Glass <sjg@chromium.org>
---
 board/bluewater/gurnard/gurnard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/bluewater/gurnard/gurnard.c b/board/bluewater/gurnard/gurnard.c
index 9b42299b080f..3275803226a3 100644
--- a/board/bluewater/gurnard/gurnard.c
+++ b/board/bluewater/gurnard/gurnard.c
@@ -7,7 +7,7 @@
  *   Author: Ryan Mallon <ryan@bluewatersys.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <atmel_lcd.h>
 #include <atmel_lcdc.h>
 #include <atmel_mci.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 027/149] board: bosch: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (24 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 026/149] board: bluewater: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  5:08   ` Heiko Schocher
  2024-05-01  2:41 ` [PATCH 028/149] board: boundary: " Tom Rini
                   ` (123 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Matthias Winker, Philip Oberfichtner, Sjoerd Simons,
	Govindaraji Sivanantham, Hiremath Gireesh, Heiko Schocher

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Matthias Winker <matthias.winker@de.bosch.com>
Cc: Philip Oberfichtner <pro@denx.de>
Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Cc: Govindaraji Sivanantham <Govindaraji.Sivanantham@in.bosch.com>
Cc: Hiremath Gireesh <Gireesh.Hiremath@in.bosch.com>
Cc: Heiko Schocher <hs@denx.de>
---
 board/bosch/acc/acc.c        | 2 +-
 board/bosch/guardian/board.c | 2 +-
 board/bosch/guardian/mux.c   | 1 -
 board/bosch/shc/board.c      | 2 +-
 board/bosch/shc/mux.c        | 1 -
 5 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/board/bosch/acc/acc.c b/board/bosch/acc/acc.c
index 65c2f3567135..a1a00e7ffc49 100644
--- a/board/bosch/acc/acc.c
+++ b/board/bosch/acc/acc.c
@@ -5,7 +5,7 @@
  * Copyright (c) 2022 DENX Software Engineering GmbH, Philip Oberfichtner <pro@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <bootstage.h>
 #include <dm.h>
diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c
index ee9e6d632ed4..41d7567ad21e 100644
--- a/board/bosch/guardian/board.c
+++ b/board/bosch/guardian/board.c
@@ -8,7 +8,7 @@
  * Copyright (C) 2018 Robert Bosch Power Tools GmbH
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env_internal.h>
 #include <errno.h>
diff --git a/board/bosch/guardian/mux.c b/board/bosch/guardian/mux.c
index 53850ffb8f7e..eab3398c4aec 100644
--- a/board/bosch/guardian/mux.c
+++ b/board/bosch/guardian/mux.c
@@ -6,7 +6,6 @@
  * Copyright (C) 2018 Robert Bosch Power Tools GmbH
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/bosch/shc/board.c b/board/bosch/shc/board.c
index aebdfd4dfec0..ab688745938a 100644
--- a/board/bosch/shc/board.c
+++ b/board/bosch/shc/board.c
@@ -11,7 +11,7 @@
  * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
+#include <config.h>
 #include <bootstage.h>
 #include <cpu_func.h>
 #include <env.h>
diff --git a/board/bosch/shc/mux.c b/board/bosch/shc/mux.c
index f19d1866c721..a2a8947a3bd8 100644
--- a/board/bosch/shc/mux.c
+++ b/board/bosch/shc/mux.c
@@ -9,7 +9,6 @@
  * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <hang.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 028/149] board: boundary: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (25 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 027/149] board: bosch: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 029/149] board: broadcom: " Tom Rini
                   ` (122 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Troy Kisky

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Troy Kisky <troy.kisky@boundarydevices.com>
---
 board/boundary/nitrogen6x/nitrogen6x.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 382c01ddf4e0..2b0cb2361c40 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -4,7 +4,6 @@
  * Copyright (C) 2013, Boundary Devices <info@boundarydevices.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 029/149] board: broadcom: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (26 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 028/149] board: boundary: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  3:42   ` William Zhang
  2024-05-01  2:41 ` [PATCH 030/149] board: bsh: " Tom Rini
                   ` (121 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Anand Gore, William Zhang, Kursad Oney, Joel Peshkin,
	Philippe Reynes, Linus Walleij, Rayagonda Kokatanur,
	Thomas Fitzsimmons

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Anand Gore <anand.gore@broadcom.com>
Cc: William Zhang <william.zhang@broadcom.com>
Cc: Kursad Oney <kursad.oney@broadcom.com>
Cc: Joel Peshkin <joel.peshkin@broadcom.com>
Cc: Philippe Reynes <philippe.reynes@softathome.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Cc: Thomas Fitzsimmons <fitzsim@fitzsim.org>
---
 board/broadcom/bcmbca/board.c  | 1 -
 board/broadcom/bcmns/ns.c      | 1 -
 board/broadcom/bcmns3/ns3.c    | 2 +-
 board/broadcom/bcmstb/bcmstb.c | 1 -
 4 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/board/broadcom/bcmbca/board.c b/board/broadcom/bcmbca/board.c
index bcecb4d78392..a6ced92565f9 100644
--- a/board/broadcom/bcmbca/board.c
+++ b/board/broadcom/bcmbca/board.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2022 Broadcom Ltd.
  */
 
-#include <common.h>
 #include <fdtdec.h>
 
 int board_init(void)
diff --git a/board/broadcom/bcmns/ns.c b/board/broadcom/bcmns/ns.c
index 1249e45af036..45cc62936cec 100644
--- a/board/broadcom/bcmns/ns.c
+++ b/board/broadcom/bcmns/ns.c
@@ -4,7 +4,6 @@
  * Copyright (C) 2023 Linus Walleij <linus.walleij@linaro.org>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/broadcom/bcmns3/ns3.c b/board/broadcom/bcmns3/ns3.c
index 7ae6742c4be8..bb2f1e4f62ad 100644
--- a/board/broadcom/bcmns3/ns3.c
+++ b/board/broadcom/bcmns3/ns3.c
@@ -4,8 +4,8 @@
  *
  */
 
-#include <common.h>
 #include <fdt_support.h>
+#include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/gic-v3.h>
 #include <asm/global_data.h>
diff --git a/board/broadcom/bcmstb/bcmstb.c b/board/broadcom/bcmstb/bcmstb.c
index aead6f099e81..bc05aecc446d 100644
--- a/board/broadcom/bcmstb/bcmstb.c
+++ b/board/broadcom/bcmstb/bcmstb.c
@@ -12,7 +12,6 @@
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/types.h>
-#include <common.h>
 #include <env.h>
 #include <asm/io.h>
 #include <asm/bootm.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 030/149] board: bsh: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (27 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 029/149] board: broadcom: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01 13:58   ` Michael Nazzareno Trimarchi
  2024-05-01  2:41 ` [PATCH 031/149] board: bticino: " Tom Rini
                   ` (120 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Michael Trimarchi

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Michael Trimarchi <michael@amarulasolutions.com>
---
 board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c | 1 -
 board/bsh/imx6ulz_smm_m2/spl.c            | 1 -
 board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c   | 1 -
 3 files changed, 3 deletions(-)

diff --git a/board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c b/board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c
index c82eabbfbea1..c03e390762a9 100644
--- a/board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c
+++ b/board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c
@@ -14,7 +14,6 @@
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
-#include <common.h>
 #include <env.h>
 #include <linux/sizes.h>
 
diff --git a/board/bsh/imx6ulz_smm_m2/spl.c b/board/bsh/imx6ulz_smm_m2/spl.c
index 5b4812e129e3..724841b57456 100644
--- a/board/bsh/imx6ulz_smm_m2/spl.c
+++ b/board/bsh/imx6ulz_smm_m2/spl.c
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
diff --git a/board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c b/board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c
index 0ebf208be82a..c99896873991 100644
--- a/board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c
+++ b/board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c
@@ -3,7 +3,6 @@
  * Copyright 2021 Collabora Ltd.
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <env.h>
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 031/149] board: bticino: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (28 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 030/149] board: bsh: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 032/149] board: buffalo: " Tom Rini
                   ` (119 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Jagan Teki, Raffaele RECALCATI, Simone CIANNI

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Raffaele RECALCATI <raffaele.recalcati@bticino.it>
Cc: Simone CIANNI <simone.cianni@bticino.it>
---
 board/bticino/mamoj/mamoj.c | 1 -
 board/bticino/mamoj/spl.c   | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/bticino/mamoj/mamoj.c b/board/bticino/mamoj/mamoj.c
index c9da42b43bf5..71497b8ab1e8 100644
--- a/board/bticino/mamoj/mamoj.c
+++ b/board/bticino/mamoj/mamoj.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
diff --git a/board/bticino/mamoj/spl.c b/board/bticino/mamoj/spl.c
index 883b7f4133b9..59b7c24ccc9a 100644
--- a/board/bticino/mamoj/spl.c
+++ b/board/bticino/mamoj/spl.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <serial.h>
 #include <spl.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 032/149] board: buffalo: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (29 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 031/149] board: bticino: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-02  7:18   ` Michael Walle
  2024-05-01  2:41 ` [PATCH 033/149] board: cadence: " Tom Rini
                   ` (118 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Michael Walle

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Michael Walle <michael@walle.cc>
---
 board/buffalo/lsxl/lsxl.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/buffalo/lsxl/lsxl.c b/board/buffalo/lsxl/lsxl.c
index 6a866b5470d6..1e501a09813d 100644
--- a/board/buffalo/lsxl/lsxl.c
+++ b/board/buffalo/lsxl/lsxl.c
@@ -7,7 +7,6 @@
  *   Marvell Semiconductor <www.marvell.com>
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <button.h>
 #include <command.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 033/149] board: cadence: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (30 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 032/149] board: buffalo: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 034/149] board: calao: " Tom Rini
                   ` (117 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Max Filippov

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Max Filippov <jcmvbkbc@gmail.com>
---
 board/cadence/xtfpga/xtfpga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/cadence/xtfpga/xtfpga.c b/board/cadence/xtfpga/xtfpga.c
index 8e4081b4c6dd..5110fed31194 100644
--- a/board/cadence/xtfpga/xtfpga.c
+++ b/board/cadence/xtfpga/xtfpga.c
@@ -4,7 +4,7 @@
  * (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <command.h>
 #include <dm.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 034/149] board: calao: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (31 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 033/149] board: cadence: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 035/149] board: cavium: " Tom Rini
                   ` (116 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Mateusz Kulikowski

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
---
 board/calao/usb_a9263/usb_a9263.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/calao/usb_a9263/usb_a9263.c b/board/calao/usb_a9263/usb_a9263.c
index 3d31776d4841..8e39a157ea31 100644
--- a/board/calao/usb_a9263/usb_a9263.c
+++ b/board/calao/usb_a9263/usb_a9263.c
@@ -7,7 +7,7 @@
  * Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/arch/at91sam9_smc.h>
 #include <asm/arch/at91_common.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 035/149] board: cavium: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (32 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 034/149] board: calao: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 036/149] board: cei: " Tom Rini
                   ` (115 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Sergey Temerkhanov

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Sergey Temerkhanov <s.temerkhanov@gmail.com>
---
 board/cavium/thunderx/atf.c      | 3 ++-
 board/cavium/thunderx/thunderx.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/board/cavium/thunderx/atf.c b/board/cavium/thunderx/atf.c
index 37340fe97003..ce7afb78ed50 100644
--- a/board/cavium/thunderx/atf.c
+++ b/board/cavium/thunderx/atf.c
@@ -3,8 +3,9 @@
  * (C) Copyright 2014, Cavium Inc.
 **/
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
+#include <vsprintf.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/ptrace.h>
diff --git a/board/cavium/thunderx/thunderx.c b/board/cavium/thunderx/thunderx.c
index ab20825ed36f..b1a805c13609 100644
--- a/board/cavium/thunderx/thunderx.c
+++ b/board/cavium/thunderx/thunderx.c
@@ -3,7 +3,7 @@
  * (C) Copyright 2014, Cavium Inc.
 **/
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 036/149] board: cei: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (33 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 035/149] board: cavium: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 037/149] board: chipspark: " Tom Rini
                   ` (114 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Peter.Chubb

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Peter.Chubb@data61.csiro.au
---
 board/cei/cei-tk1-som/cei-tk1-som.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/cei/cei-tk1-som/cei-tk1-som.c b/board/cei/cei-tk1-som/cei-tk1-som.c
index 95ee7bbfe29a..15b200454da7 100644
--- a/board/cei/cei-tk1-som/cei-tk1-som.c
+++ b/board/cei/cei-tk1-som/cei-tk1-som.c
@@ -4,7 +4,7 @@
  * NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
+#include <linux/kernel.h>
 #include <power/as3722.h>
 
 #include <asm/arch/gpio.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 037/149] board: chipspark: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (34 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 036/149] board: cei: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 038/149] board: cloos: " Tom Rini
                   ` (113 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Lin Huang, Simon Glass, Philipp Tomsich, Kever Yang

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Lin Huang <hl@rock-chips.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
Cc: Kever Yang <kever.yang@rock-chips.com>
---
 board/chipspark/popmetal_rk3288/popmetal-rk3288.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/chipspark/popmetal_rk3288/popmetal-rk3288.c b/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
index e6909b3b1c53..dd7551170d25 100644
--- a/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
+++ b/board/chipspark/popmetal_rk3288/popmetal-rk3288.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/gpio.h>
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 038/149] board: cloos: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (35 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 037/149] board: chipspark: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 039/149] board: cloudengines: " Tom Rini
                   ` (112 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Fabio Estevam

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Fabio Estevam <festevam@denx.de>
---
 board/cloos/imx8mm_phg/imx8mm_phg.c | 1 -
 board/cloos/imx8mm_phg/spl.c        | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/cloos/imx8mm_phg/imx8mm_phg.c b/board/cloos/imx8mm_phg/imx8mm_phg.c
index bc4e984d5056..091c9a59a52b 100644
--- a/board/cloos/imx8mm_phg/imx8mm_phg.c
+++ b/board/cloos/imx8mm_phg/imx8mm_phg.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <miiphy.h>
diff --git a/board/cloos/imx8mm_phg/spl.c b/board/cloos/imx8mm_phg/spl.c
index 0c3a0135a860..b8892ed2fccd 100644
--- a/board/cloos/imx8mm_phg/spl.c
+++ b/board/cloos/imx8mm_phg/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 039/149] board: cloudengines: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (36 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 038/149] board: cloos: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01 20:25   ` Tony Dinh
  2024-05-01  2:41 ` [PATCH 040/149] board: cobra5272: " Tom Rini
                   ` (111 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Dave Purdy, Tony Dinh

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Dave Purdy <david.c.purdy@gmail.com>
Cc: Tony Dinh <mibodhi@gmail.com>
---
 board/cloudengines/pogo_e02/pogo_e02.c | 1 -
 board/cloudengines/pogo_v4/pogo_v4.c   | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/cloudengines/pogo_e02/pogo_e02.c b/board/cloudengines/pogo_e02/pogo_e02.c
index 59e1218b411a..48eee67129fa 100644
--- a/board/cloudengines/pogo_e02/pogo_e02.c
+++ b/board/cloudengines/pogo_e02/pogo_e02.c
@@ -10,7 +10,6 @@
  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <log.h>
 #include <netdev.h>
diff --git a/board/cloudengines/pogo_v4/pogo_v4.c b/board/cloudengines/pogo_v4/pogo_v4.c
index 61ce0d59c77e..c8ad563f721d 100644
--- a/board/cloudengines/pogo_v4/pogo_v4.c
+++ b/board/cloudengines/pogo_v4/pogo_v4.c
@@ -11,7 +11,6 @@
  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  */
 
-#include <common.h>
 #include <netdev.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 040/149] board: cobra5272: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (37 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 039/149] board: cloudengines: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-02  6:47   ` Angelo Dureghello
  2024-05-01  2:41 ` [PATCH 041/149] board: compulab: " Tom Rini
                   ` (110 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Angelo Dureghello

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Angelo Dureghello <angelo@kernel-space.org>
---
 board/cobra5272/cobra5272.c | 2 +-
 board/cobra5272/flash.c     | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/board/cobra5272/cobra5272.c b/board/cobra5272/cobra5272.c
index 69a9df942311..774aa82b57fe 100644
--- a/board/cobra5272/cobra5272.c
+++ b/board/cobra5272/cobra5272.c
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/cobra5272/flash.c b/board/cobra5272/flash.c
index 8416af163ad1..157b71da85e8 100644
--- a/board/cobra5272/flash.c
+++ b/board/cobra5272/flash.c
@@ -4,13 +4,17 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <console.h>
 #include <cpu_func.h>
 #include <flash.h>
 #include <irq_func.h>
+#include <stdio.h>
+#include <time.h>
 #include <uuid.h>
+#include <vsprintf.h>
 #include <linux/delay.h>
+#include <linux/string.h>
 
 #define PHYS_FLASH_1 CFG_SYS_FLASH_BASE
 #define FLASH_BANK_SIZE 0x200000
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 041/149] board: compulab: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (38 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 040/149] board: cobra5272: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 042/149] board: conclusive: " Tom Rini
                   ` (109 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Uri Mashiach, Nikita Kiryanov, Ying-Chun Liu (PaulLiu),
	Tom Warren, Stephen Warren

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Uri Mashiach <uri.mashiach@compulab.co.il>
Cc: Nikita Kiryanov <nikita@compulab.co.il>
Cc: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Tom Rini <trini@konsulko.com>
---
 board/compulab/cl-som-imx7/cl-som-imx7.c                       | 2 +-
 board/compulab/cl-som-imx7/common.c                            | 1 -
 board/compulab/cl-som-imx7/mux.c                               | 2 +-
 board/compulab/cl-som-imx7/spl.c                               | 1 -
 board/compulab/cm_fx6/cm_fx6.c                                 | 2 +-
 board/compulab/cm_fx6/common.c                                 | 1 -
 board/compulab/cm_fx6/spl.c                                    | 1 -
 board/compulab/cm_t43/cm_t43.c                                 | 2 +-
 board/compulab/cm_t43/mux.c                                    | 1 -
 board/compulab/cm_t43/spl.c                                    | 2 +-
 board/compulab/common/common.c                                 | 1 -
 board/compulab/common/eeprom.c                                 | 3 ++-
 board/compulab/common/omap3_smc911x.c                          | 1 -
 board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c                    | 1 -
 .../imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.1_2.c        | 1 -
 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.c | 1 -
 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff000110.c | 1 -
 board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff020008.c | 1 -
 board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c                 | 2 +-
 board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c         | 1 -
 board/compulab/imx8mm-cl-iot-gate/spl.c                        | 1 -
 board/compulab/trimslice/trimslice.c                           | 1 -
 22 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/board/compulab/cl-som-imx7/cl-som-imx7.c b/board/compulab/cl-som-imx7/cl-som-imx7.c
index af19a658b542..7853c4d024a3 100644
--- a/board/compulab/cl-som-imx7/cl-som-imx7.c
+++ b/board/compulab/cl-som-imx7/cl-som-imx7.c
@@ -7,7 +7,7 @@
  * Author: Uri Mashiach <uri.mashiach@compulab.co.il>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <init.h>
 #include <mmc.h>
diff --git a/board/compulab/cl-som-imx7/common.c b/board/compulab/cl-som-imx7/common.c
index 40ba0f7a9605..ae8e83466207 100644
--- a/board/compulab/cl-som-imx7/common.c
+++ b/board/compulab/cl-som-imx7/common.c
@@ -7,7 +7,6 @@
  * Author: Uri Mashiach <uri.mashiach@compulab.co.il>
  */
 
-#include <common.h>
 #include <fsl_esdhc_imx.h>
 #include <asm-generic/gpio.h>
 #include "common.h"
diff --git a/board/compulab/cl-som-imx7/mux.c b/board/compulab/cl-som-imx7/mux.c
index 18f16a48738c..25123ee145a6 100644
--- a/board/compulab/cl-som-imx7/mux.c
+++ b/board/compulab/cl-som-imx7/mux.c
@@ -7,7 +7,7 @@
  * Author: Uri Mashiach <uri.mashiach@compulab.co.il>
  */
 
-#include <common.h>
+#include <linux/kernel.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/arch-mx7/mx7-pins.h>
 
diff --git a/board/compulab/cl-som-imx7/spl.c b/board/compulab/cl-som-imx7/spl.c
index 98c3b831f1e1..9b6bbb974da7 100644
--- a/board/compulab/cl-som-imx7/spl.c
+++ b/board/compulab/cl-som-imx7/spl.c
@@ -7,7 +7,6 @@
  * Author: Uri Mashiach <uri.mashiach@compulab.co.il>
  */
 
-#include <common.h>
 #include <hang.h>
 #include <init.h>
 #include <spl.h>
diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
index 7bce09e432c0..4a6cc3e56308 100644
--- a/board/compulab/cm_fx6/cm_fx6.c
+++ b/board/compulab/cm_fx6/cm_fx6.c
@@ -7,7 +7,7 @@
  * Author: Nikita Kiryanov <nikita@compulab.co.il>
  */
 
-#include <common.h>
+#include <config.h>
 #include <ahci.h>
 #include <dm.h>
 #include <dwc_ahsata.h>
diff --git a/board/compulab/cm_fx6/common.c b/board/compulab/cm_fx6/common.c
index ed8c7a3bf5f8..a71861b1731b 100644
--- a/board/compulab/cm_fx6/common.c
+++ b/board/compulab/cm_fx6/common.c
@@ -7,7 +7,6 @@
  * Author: Nikita Kiryanov <nikita@compulab.co.il>
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
 #include <asm/mach-imx/spi.h>
diff --git a/board/compulab/cm_fx6/spl.c b/board/compulab/cm_fx6/spl.c
index 079f196200e5..b11bf2d28c68 100644
--- a/board/compulab/cm_fx6/spl.c
+++ b/board/compulab/cm_fx6/spl.c
@@ -7,7 +7,6 @@
  * Author: Nikita Kiryanov <nikita@compulab.co.il>
  */
 
-#include <common.h>
 #include <clock_legacy.h>
 #include <hang.h>
 #include <init.h>
diff --git a/board/compulab/cm_t43/cm_t43.c b/board/compulab/cm_t43/cm_t43.c
index 5df378a62e3c..181581926c37 100644
--- a/board/compulab/cm_t43/cm_t43.c
+++ b/board/compulab/cm_t43/cm_t43.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2015 Compulab, Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <miiphy.h>
 #include <cpsw.h>
diff --git a/board/compulab/cm_t43/mux.c b/board/compulab/cm_t43/mux.c
index 778ea05e84cb..f10910565d50 100644
--- a/board/compulab/cm_t43/mux.c
+++ b/board/compulab/cm_t43/mux.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Compulab, Ltd.
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mux.h>
 #include "board.h"
diff --git a/board/compulab/cm_t43/spl.c b/board/compulab/cm_t43/spl.c
index a6223a477fef..212bfeb5c307 100644
--- a/board/compulab/cm_t43/spl.c
+++ b/board/compulab/cm_t43/spl.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2016 Compulab, Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <hang.h>
 #include <init.h>
 #include <spl.h>
diff --git a/board/compulab/common/common.c b/board/compulab/common/common.c
index 528c97df19a4..6ffebe6bdb41 100644
--- a/board/compulab/common/common.c
+++ b/board/compulab/common/common.c
@@ -5,7 +5,6 @@
  * Authors: Igor Grinberg <grinberg@compulab.co.il>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/bootm.h>
 #include <asm/gpio.h>
diff --git a/board/compulab/common/eeprom.c b/board/compulab/common/eeprom.c
index 4c752821d6cd..efdaf342d5c3 100644
--- a/board/compulab/common/eeprom.c
+++ b/board/compulab/common/eeprom.c
@@ -6,12 +6,13 @@
  *	    Igor Grinberg <grinberg@compulab.co.il>
  */
 
-#include <common.h>
 #include <i2c.h>
+#include <vsprintf.h>
 #include <eeprom_layout.h>
 #include <eeprom_field.h>
 #include <asm/setup.h>
 #include <linux/kernel.h>
+#include <linux/string.h>
 #include "eeprom.h"
 
 #define EEPROM_LAYOUT_VER_OFFSET	44
diff --git a/board/compulab/common/omap3_smc911x.c b/board/compulab/common/omap3_smc911x.c
index f0d365272c1b..411fc4943bac 100644
--- a/board/compulab/common/omap3_smc911x.c
+++ b/board/compulab/common/omap3_smc911x.c
@@ -5,7 +5,6 @@
  * Authors: Igor Grinberg <grinberg@compulab.co.il>
  */
 
-#include <common.h>
 #include <netdev.h>
 #include <linux/delay.h>
 
diff --git a/board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c b/board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c
index b230478b611a..99d3bf3af3bc 100644
--- a/board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c
+++ b/board/compulab/imx8mm-cl-iot-gate/ddr/ddr.c
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <spl.h>
 #include <asm/io.h>
 #include <errno.h>
diff --git a/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.1_2.c b/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.1_2.c
index 9019a1f2035c..efcc95c739fd 100644
--- a/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.1_2.c
+++ b/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.1_2.c
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.c b/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.c
index 5141c04f12dc..67f59ed9407f 100644
--- a/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.c
+++ b/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_01061010.c
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff000110.c b/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff000110.c
index 2334722497db..273ee89c0bc6 100644
--- a/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff000110.c
+++ b/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff000110.c
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff020008.c b/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff020008.c
index e65445e01559..1243800b3241 100644
--- a/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff020008.c
+++ b/board/compulab/imx8mm-cl-iot-gate/ddr/lpddr4_timing_ff020008.c
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c b/board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c
index 90cc33a6e460..1256848f9a98 100644
--- a/board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c
+++ b/board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 /* (C) Copyright 2019 CompuLab, Ltd. <www.compulab.co.il> */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <linux/kernel.h>
 #include <asm/arch/imx8mq_pins.h>
diff --git a/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c b/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c
index af070ec315c4..ba1587341428 100644
--- a/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c
+++ b/board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c
@@ -4,7 +4,6 @@
  * Copyright 2020 Linaro
  */
 
-#include <common.h>
 #include <efi.h>
 #include <efi_loader.h>
 #include <env.h>
diff --git a/board/compulab/imx8mm-cl-iot-gate/spl.c b/board/compulab/imx8mm-cl-iot-gate/spl.c
index 19c1acd8a525..6d9af2538b63 100644
--- a/board/compulab/imx8mm-cl-iot-gate/spl.c
+++ b/board/compulab/imx8mm-cl-iot-gate/spl.c
@@ -4,7 +4,6 @@
  * Copyright 2020 Linaro
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
diff --git a/board/compulab/trimslice/trimslice.c b/board/compulab/trimslice/trimslice.c
index 21ff0cda7f70..af05c0c0f059 100644
--- a/board/compulab/trimslice/trimslice.c
+++ b/board/compulab/trimslice/trimslice.c
@@ -4,7 +4,6 @@
  *  NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/tegra.h>
 #include <asm/arch/clock.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 042/149] board: conclusive: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (39 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 041/149] board: compulab: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 043/149] board: congatec: " Tom Rini
                   ` (108 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Jakub Klama, Artur Rojek

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Jakub Klama <jakub@conclusive.pl>
Cc: Artur Rojek <artur@conclusive.pl>
---
 board/conclusive/kstr-sama5d27/kstr-sama5d27.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/conclusive/kstr-sama5d27/kstr-sama5d27.c b/board/conclusive/kstr-sama5d27/kstr-sama5d27.c
index 1b765b113743..64282ae9dc77 100644
--- a/board/conclusive/kstr-sama5d27/kstr-sama5d27.c
+++ b/board/conclusive/kstr-sama5d27/kstr-sama5d27.c
@@ -4,7 +4,7 @@
  * Copyright (C) 2021-2023 Conclusive Engineering Sp. z o. o.
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <init.h>
 #include <env.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 043/149] board: congatec: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (40 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 042/149] board: conclusive: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-02 12:15   ` Oliver Graute
  2024-05-01  2:41 ` [PATCH 044/149] board: coreboot: " Tom Rini
                   ` (107 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Oliver Graute, Stefan Roese

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Oliver Graute <oliver.graute@kococonnector.com>
Cc: Stefan Roese <sr@denx.de>
---
 board/congatec/cgtqmx8/cgtqmx8.c                           | 2 +-
 board/congatec/cgtqmx8/spl.c                               | 1 -
 board/congatec/common/mmc.c                                | 3 ++-
 board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c | 1 -
 4 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/board/congatec/cgtqmx8/cgtqmx8.c b/board/congatec/cgtqmx8/cgtqmx8.c
index d8e5b1d69633..99c33a1943e0 100644
--- a/board/congatec/cgtqmx8/cgtqmx8.c
+++ b/board/congatec/cgtqmx8/cgtqmx8.c
@@ -3,7 +3,7 @@
  * Copyright 2018 congatec AG
  * Copyright (C) 2019 Oliver Graute <oliver.graute@kococonnector.com>
  */
-#include <common.h>
+#include <config.h>
 #include <errno.h>
 #include <linux/libfdt.h>
 #include <fsl_esdhc.h>
diff --git a/board/congatec/cgtqmx8/spl.c b/board/congatec/cgtqmx8/spl.c
index b432ce27459f..242e794981b7 100644
--- a/board/congatec/cgtqmx8/spl.c
+++ b/board/congatec/cgtqmx8/spl.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdt_support.h>
 #include <init.h>
diff --git a/board/congatec/common/mmc.c b/board/congatec/common/mmc.c
index bb7a3d4a9aa0..74a189ab4d7f 100644
--- a/board/congatec/common/mmc.c
+++ b/board/congatec/common/mmc.c
@@ -4,7 +4,8 @@
  * Copyright 2018 NXP
  *
  */
-#include <common.h>
+
+#include <vsprintf.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <env.h>
diff --git a/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c b/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
index 315b6dc54295..4197e88fb6ff 100644
--- a/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
+++ b/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <init.h>
 #include <winbond_w83627.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 044/149] board: coreboot: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (41 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 043/149] board: congatec: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 045/149] board: cortina: " Tom Rini
                   ` (106 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Simon Glass, Bin Meng, Mike Frysinger

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Mike Frysinger <vapier@chromium.org>
---
 board/coreboot/coreboot/coreboot.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/coreboot/coreboot/coreboot.c b/board/coreboot/coreboot/coreboot.c
index e58dce37477f..f2ca10767681 100644
--- a/board/coreboot/coreboot/coreboot.c
+++ b/board/coreboot/coreboot/coreboot.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#include <common.h>
 #include <splash.h>
 #include <init.h>
 #include <smbios.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 045/149] board: cortina: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (42 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 044/149] board: coreboot: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 046/149] board: d-link: " Tom Rini
                   ` (105 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Alex Nemirovsky

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>
---
 board/cortina/presidio-asic/presidio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/cortina/presidio-asic/presidio.c b/board/cortina/presidio-asic/presidio.c
index fdfa3affc3b1..c07e0eae4e9d 100644
--- a/board/cortina/presidio-asic/presidio.c
+++ b/board/cortina/presidio-asic/presidio.c
@@ -3,7 +3,7 @@
  * (C) Copyright 2020 - Cortina Access Inc.
  *
  */
-#include <common.h>
+#include <config.h>
 #include <event.h>
 #include <init.h>
 #include <malloc.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 046/149] board: d-link: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (43 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 045/149] board: cortina: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 047/149] board: data_modul: " Tom Rini
                   ` (104 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Stefan Herbrechtsmeier

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
---
 board/d-link/dns325/dns325.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/d-link/dns325/dns325.c b/board/d-link/dns325/dns325.c
index 8ebfe4c60189..3bbde9808d20 100644
--- a/board/d-link/dns325/dns325.c
+++ b/board/d-link/dns325/dns325.c
@@ -9,7 +9,6 @@
  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <log.h>
 #include <miiphy.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 047/149] board: data_modul: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (44 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 046/149] board: d-link: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 048/149] board: davinci: " Tom Rini
                   ` (103 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Fabio Estevam, Simon Glass

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
---
 board/data_modul/common/common.c                            | 1 -
 board/data_modul/imx8mm_edm_sbc/imx8mm_data_modul_edm_sbc.c | 1 -
 board/data_modul/imx8mm_edm_sbc/spl.c                       | 1 -
 board/data_modul/imx8mp_edm_sbc/imx8mp_data_modul_edm_sbc.c | 1 -
 board/data_modul/imx8mp_edm_sbc/spl.c                       | 1 -
 5 files changed, 5 deletions(-)

diff --git a/board/data_modul/common/common.c b/board/data_modul/common/common.c
index 4ece82c73039..b4d74a8fd8bd 100644
--- a/board/data_modul/common/common.c
+++ b/board/data_modul/common/common.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <asm-generic/gpio.h>
 #include <asm-generic/sections.h>
 #include <asm/arch/clock.h>
diff --git a/board/data_modul/imx8mm_edm_sbc/imx8mm_data_modul_edm_sbc.c b/board/data_modul/imx8mm_edm_sbc/imx8mm_data_modul_edm_sbc.c
index bfb2bddc1d1f..339702e83927 100644
--- a/board/data_modul/imx8mm_edm_sbc/imx8mm_data_modul_edm_sbc.c
+++ b/board/data_modul/imx8mm_edm_sbc/imx8mm_data_modul_edm_sbc.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx8mm_pins.h>
 #include <asm/io.h>
diff --git a/board/data_modul/imx8mm_edm_sbc/spl.c b/board/data_modul/imx8mm_edm_sbc/spl.c
index 4a9c62fb86fc..17aafd719c9d 100644
--- a/board/data_modul/imx8mm_edm_sbc/spl.c
+++ b/board/data_modul/imx8mm_edm_sbc/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <hang.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/data_modul/imx8mp_edm_sbc/imx8mp_data_modul_edm_sbc.c b/board/data_modul/imx8mp_edm_sbc/imx8mp_data_modul_edm_sbc.c
index f0f373aa2800..138acd36ad24 100644
--- a/board/data_modul/imx8mp_edm_sbc/imx8mp_data_modul_edm_sbc.c
+++ b/board/data_modul/imx8mp_edm_sbc/imx8mp_data_modul_edm_sbc.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx8mp_pins.h>
 #include <asm/io.h>
diff --git a/board/data_modul/imx8mp_edm_sbc/spl.c b/board/data_modul/imx8mp_edm_sbc/spl.c
index cc2d253e391e..c19358985332 100644
--- a/board/data_modul/imx8mp_edm_sbc/spl.c
+++ b/board/data_modul/imx8mp_edm_sbc/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <hang.h>
 #include <image.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 048/149] board: davinci: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (45 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 047/149] board: data_modul: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  9:23   ` Adam Ford
  2024-05-01  2:41 ` [PATCH 049/149] board: dfi: " Tom Rini
                   ` (102 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Adam Ford

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Adam Ford <aford173@gmail.com>
---
 board/davinci/da8xxevm/da850evm.c      | 2 +-
 board/davinci/da8xxevm/omapl138_lcdk.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
index 05053a87a5a9..0011c8285237 100644
--- a/board/davinci/da8xxevm/da850evm.c
+++ b/board/davinci/da8xxevm/da850evm.c
@@ -8,7 +8,7 @@
  * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env.h>
 #include <i2c.h>
diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c
index 9738e2bd9c77..607e05ad9ae4 100644
--- a/board/davinci/da8xxevm/omapl138_lcdk.c
+++ b/board/davinci/da8xxevm/omapl138_lcdk.c
@@ -8,7 +8,7 @@
  * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 049/149] board: dfi: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (46 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 048/149] board: davinci: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 050/149] board: dhelectronics: " Tom Rini
                   ` (101 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Stefan Roese

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Roese <sr@denx.de>
---
 board/dfi/dfi-bt700/dfi-bt700.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/dfi/dfi-bt700/dfi-bt700.c b/board/dfi/dfi-bt700/dfi-bt700.c
index 87506a77a17e..907cc985d7a9 100644
--- a/board/dfi/dfi-bt700/dfi-bt700.c
+++ b/board/dfi/dfi-bt700/dfi-bt700.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <log.h>
 #include <nuvoton_nct6102d.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 050/149] board: dhelectronics: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (47 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 049/149] board: dfi: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 051/149] board: ea: " Tom Rini
                   ` (100 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Andreas Geisreiter, Christoph Niedermaier, Marek Vasut,
	Patrick Delaunay, Patrice Chotard

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Andreas Geisreiter <ageisreiter@dh-electronics.de>
Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
---
 board/dhelectronics/common/dh_common.c            | 1 -
 board/dhelectronics/common/dh_imx.c               | 2 +-
 board/dhelectronics/dh_imx6/dh_imx6.c             | 1 -
 board/dhelectronics/dh_imx6/dh_imx6_spl.c         | 1 -
 board/dhelectronics/dh_imx8mp/common.c            | 1 -
 board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c | 1 -
 board/dhelectronics/dh_imx8mp/spl.c               | 1 -
 board/dhelectronics/dh_stm32mp1/board.c           | 1 -
 8 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/board/dhelectronics/common/dh_common.c b/board/dhelectronics/common/dh_common.c
index 34094a020b07..32c50b4f0f59 100644
--- a/board/dhelectronics/common/dh_common.c
+++ b/board/dhelectronics/common/dh_common.c
@@ -4,7 +4,6 @@
  * Copyright 2022 DENX Software Engineering GmbH, Philip Oberfichtner <pro@denx.de>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c_eeprom.h>
 #include <net.h>
diff --git a/board/dhelectronics/common/dh_imx.c b/board/dhelectronics/common/dh_imx.c
index 7f451bad59c7..3d6487dd0d8c 100644
--- a/board/dhelectronics/common/dh_imx.c
+++ b/board/dhelectronics/common/dh_imx.c
@@ -4,9 +4,9 @@
  * Copyright 2022 DENX Software Engineering GmbH, Philip Oberfichtner <pro@denx.de>
  */
 
+#include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
-#include <common.h>
 #include <net.h>
 #include "dh_imx.h"
 
diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c
index 9dcfcec9e9e6..c8dd30dfeaf5 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2017 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/dhelectronics/dh_imx6/dh_imx6_spl.c b/board/dhelectronics/dh_imx6/dh_imx6_spl.c
index e6d5657c62d0..3a5495ea18e3 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6_spl.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6_spl.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2017 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/arch/clock.h>
diff --git a/board/dhelectronics/dh_imx8mp/common.c b/board/dhelectronics/dh_imx8mp/common.c
index 44456da681ce..f6db9f678042 100644
--- a/board/dhelectronics/dh_imx8mp/common.c
+++ b/board/dhelectronics/dh_imx8mp/common.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
 
diff --git a/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c b/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c
index ff2c0e872151..c635735d89cb 100644
--- a/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c
+++ b/board/dhelectronics/dh_imx8mp/imx8mp_dhcom_pdk2.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/dhelectronics/dh_imx8mp/spl.c b/board/dhelectronics/dh_imx8mp/spl.c
index 7d228da8e5b7..714f846521e0 100644
--- a/board/dhelectronics/dh_imx8mp/spl.c
+++ b/board/dhelectronics/dh_imx8mp/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <hang.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c
index 22af423536d5..20c9d70737ec 100644
--- a/board/dhelectronics/dh_stm32mp1/board.c
+++ b/board/dhelectronics/dh_stm32mp1/board.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <adc.h>
 #include <log.h>
 #include <net.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 051/149] board: ea: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (48 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 050/149] board: dhelectronics: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 052/149] board: eets: " Tom Rini
                   ` (99 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Trevor Woerner, Fabio Estevam

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Trevor Woerner <twoerner@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
---
 board/ea/ea-lpc3250devkitv2/ea-lpc3250devkitv2.c | 2 +-
 board/ea/mx7ulp_com/mx7ulp_com.c                 | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/ea/ea-lpc3250devkitv2/ea-lpc3250devkitv2.c b/board/ea/ea-lpc3250devkitv2/ea-lpc3250devkitv2.c
index 2b03e4891d92..222e5facf434 100644
--- a/board/ea/ea-lpc3250devkitv2/ea-lpc3250devkitv2.c
+++ b/board/ea/ea-lpc3250devkitv2/ea-lpc3250devkitv2.c
@@ -5,7 +5,7 @@
  */
 
 #include <init.h>
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <asm/global_data.h>
 
diff --git a/board/ea/mx7ulp_com/mx7ulp_com.c b/board/ea/mx7ulp_com/mx7ulp_com.c
index cd9591a9e324..8f78937e0973 100644
--- a/board/ea/mx7ulp_com/mx7ulp_com.c
+++ b/board/ea/mx7ulp_com/mx7ulp_com.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 052/149] board: eets: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (49 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 051/149] board: ea: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 053/149] board: efi: " Tom Rini
                   ` (98 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Felix Brack, Nishanth Menon

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Felix Brack <fb@ltec.ch>
Cc: Nishanth Menon <nm@ti.com>
---
 board/eets/pdu001/board.c | 2 +-
 board/eets/pdu001/mux.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/eets/pdu001/board.c b/board/eets/pdu001/board.c
index 3a52e4ae675f..2ad256f86357 100644
--- a/board/eets/pdu001/board.c
+++ b/board/eets/pdu001/board.c
@@ -9,7 +9,7 @@
  * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
diff --git a/board/eets/pdu001/mux.c b/board/eets/pdu001/mux.c
index c97927e5cfe9..f306a1340315 100644
--- a/board/eets/pdu001/mux.c
+++ b/board/eets/pdu001/mux.c
@@ -7,7 +7,7 @@
  * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 053/149] board: efi: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (50 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 052/149] board: eets: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 054/149] board: egnite: " Tom Rini
                   ` (97 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Bin Meng

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 board/efi/efi-x86_payload/payload.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/efi/efi-x86_payload/payload.c b/board/efi/efi-x86_payload/payload.c
index 5d4492cdc77a..d7d1e53e911c 100644
--- a/board/efi/efi-x86_payload/payload.c
+++ b/board/efi/efi-x86_payload/payload.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <usb.h>
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 054/149] board: egnite: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (51 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 053/149] board: efi: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 055/149] board: elgin: " Tom Rini
                   ` (96 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: egnite GmbH

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: egnite GmbH <info@egnite.de>
---
 board/egnite/ethernut5/ethernut5.c        | 2 +-
 board/egnite/ethernut5/ethernut5_pwrman.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/egnite/ethernut5/ethernut5.c b/board/egnite/ethernut5/ethernut5.c
index 9953df017e19..64e341c3779c 100644
--- a/board/egnite/ethernut5/ethernut5.c
+++ b/board/egnite/ethernut5/ethernut5.c
@@ -52,7 +52,7 @@
  * http://www.ethernut.de/
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <net.h>
 #include <netdev.h>
diff --git a/board/egnite/ethernut5/ethernut5_pwrman.c b/board/egnite/ethernut5/ethernut5_pwrman.c
index 81f1abf2fad9..42e1914a8759 100644
--- a/board/egnite/ethernut5/ethernut5_pwrman.c
+++ b/board/egnite/ethernut5/ethernut5_pwrman.c
@@ -31,8 +31,8 @@
  * For additional information visit the project home page at
  * http://www.ethernut.de/
  */
-#include <common.h>
 #include <command.h>
+#include <vsprintf.h>
 #include <asm/arch/at91sam9260.h>
 #include <asm/arch/at91_common.h>
 #include <asm/arch/gpio.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 055/149] board: elgin: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (52 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 054/149] board: egnite: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 056/149] board: embest: " Tom Rini
                   ` (95 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Otavio Salvador

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Otavio Salvador <otavio@ossystems.com.br>
---
 board/elgin/elgin_rv1108/elgin_rv1108.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/elgin/elgin_rv1108/elgin_rv1108.c b/board/elgin/elgin_rv1108/elgin_rv1108.c
index 10398e7f7126..9fea4f86d5aa 100644
--- a/board/elgin/elgin_rv1108/elgin_rv1108.c
+++ b/board/elgin/elgin_rv1108/elgin_rv1108.c
@@ -4,7 +4,6 @@
  * Authors: Andy Yan <andy.yan@rock-chips.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <syscon.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 056/149] board: embest: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (53 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 055/149] board: elgin: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 057/149] board: emulation: " Tom Rini
                   ` (94 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Eric Bénard

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: "Eric Bénard" <eric@eukrea.com>
---
 board/embest/mx6boards/mx6boards.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/embest/mx6boards/mx6boards.c b/board/embest/mx6boards/mx6boards.c
index a3c23bdfb64e..896350140d61 100644
--- a/board/embest/mx6boards/mx6boards.c
+++ b/board/embest/mx6boards/mx6boards.c
@@ -12,7 +12,6 @@
  * Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com>.
  */
 
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <asm/arch/clock.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 057/149] board: emulation: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (54 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 056/149] board: embest: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 058/149] board: engicam: " Tom Rini
                   ` (93 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Bin Meng, Tuomas Tynkkynen, Alexander Graf

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Cc: Alexander Graf <agraf@csgraf.de>
---
 board/emulation/common/qemu_dfu.c           | 1 -
 board/emulation/common/qemu_mtdparts.c      | 1 -
 board/emulation/qemu-arm/qemu-arm.c         | 2 +-
 board/emulation/qemu-ppce500/qemu-ppce500.c | 2 +-
 board/emulation/qemu-riscv/qemu-riscv.c     | 1 -
 5 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/board/emulation/common/qemu_dfu.c b/board/emulation/common/qemu_dfu.c
index 7e7d84f6c00f..393fcaeb7422 100644
--- a/board/emulation/common/qemu_dfu.c
+++ b/board/emulation/common/qemu_dfu.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2020 Linaro Limited
  */
 
-#include <common.h>
 #include <dfu.h>
 #include <env.h>
 #include <memalign.h>
diff --git a/board/emulation/common/qemu_mtdparts.c b/board/emulation/common/qemu_mtdparts.c
index 60212e97acf6..c1501276789c 100644
--- a/board/emulation/common/qemu_mtdparts.c
+++ b/board/emulation/common/qemu_mtdparts.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2020 Linaro Limited
  */
 
-#include <common.h>
 #include <dm.h>
 #include <mtd.h>
 
diff --git a/board/emulation/qemu-arm/qemu-arm.c b/board/emulation/qemu-arm/qemu-arm.c
index ecfd19f1a7ed..6095cb02b23f 100644
--- a/board/emulation/qemu-arm/qemu-arm.c
+++ b/board/emulation/qemu-arm/qemu-arm.c
@@ -3,7 +3,7 @@
  * Copyright (c) 2017 Tuomas Tynkkynen
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <efi.h>
diff --git a/board/emulation/qemu-ppce500/qemu-ppce500.c b/board/emulation/qemu-ppce500/qemu-ppce500.c
index 221361691c15..58e5d5eb9427 100644
--- a/board/emulation/qemu-ppce500/qemu-ppce500.c
+++ b/board/emulation/qemu-ppce500/qemu-ppce500.c
@@ -4,7 +4,7 @@
  * Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
diff --git a/board/emulation/qemu-riscv/qemu-riscv.c b/board/emulation/qemu-riscv/qemu-riscv.c
index 173245b40e3c..e5193e31e37e 100644
--- a/board/emulation/qemu-riscv/qemu-riscv.c
+++ b/board/emulation/qemu-riscv/qemu-riscv.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/ofnode.h>
 #include <env.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 058/149] board: engicam: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (55 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 057/149] board: emulation: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 059/149] board: esd: " Tom Rini
                   ` (92 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Jagan Teki, Matteo Lisi, Suniel Mahesh, Manoj Sai,
	Patrick Delaunay, Patrice Chotard

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Suniel Mahesh <sunil@amarulasolutions.com>
Cc: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
---
 board/engicam/common/board.c         | 1 -
 board/engicam/common/spl.c           | 1 -
 board/engicam/imx6q/imx6q.c          | 1 -
 board/engicam/imx6ul/imx6ul.c        | 1 -
 board/engicam/imx8mm/icore_mx8mm.c   | 1 -
 board/engicam/imx8mm/lpddr4_timing.c | 1 -
 board/engicam/imx8mm/spl.c           | 1 -
 board/engicam/imx8mp/icore_mx8mp.c   | 1 -
 board/engicam/imx8mp/spl.c           | 1 -
 board/engicam/stm32mp1/spl.c         | 2 +-
 board/engicam/stm32mp1/stm32mp1.c    | 1 -
 11 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/board/engicam/common/board.c b/board/engicam/common/board.c
index df9149e0d6d8..8e0477c7a6e4 100644
--- a/board/engicam/common/board.c
+++ b/board/engicam/common/board.c
@@ -5,7 +5,6 @@
  * Author: Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <hang.h>
diff --git a/board/engicam/common/spl.c b/board/engicam/common/spl.c
index f1ccdc334363..8bc80ee6baa8 100644
--- a/board/engicam/common/spl.c
+++ b/board/engicam/common/spl.c
@@ -5,7 +5,6 @@
  * Author: Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <image.h>
 #include <init.h>
 #include <serial.h>
diff --git a/board/engicam/imx6q/imx6q.c b/board/engicam/imx6q/imx6q.c
index e6c888fcfde1..d799fe6526af 100644
--- a/board/engicam/imx6q/imx6q.c
+++ b/board/engicam/imx6q/imx6q.c
@@ -5,7 +5,6 @@
  * Author: Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/board/engicam/imx6ul/imx6ul.c b/board/engicam/imx6ul/imx6ul.c
index 412d6c302e88..24d654445dbd 100644
--- a/board/engicam/imx6ul/imx6ul.c
+++ b/board/engicam/imx6ul/imx6ul.c
@@ -5,7 +5,6 @@
  * Author: Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <mmc.h>
 
 #include <asm/io.h>
diff --git a/board/engicam/imx8mm/icore_mx8mm.c b/board/engicam/imx8mm/icore_mx8mm.c
index 320388faae3e..236337546aee 100644
--- a/board/engicam/imx8mm/icore_mx8mm.c
+++ b/board/engicam/imx8mm/icore_mx8mm.c
@@ -5,7 +5,6 @@
  * Author: Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <miiphy.h>
 #include <netdev.h>
 
diff --git a/board/engicam/imx8mm/lpddr4_timing.c b/board/engicam/imx8mm/lpddr4_timing.c
index 821212740bcc..fcd45c158f22 100644
--- a/board/engicam/imx8mm/lpddr4_timing.c
+++ b/board/engicam/imx8mm/lpddr4_timing.c
@@ -6,7 +6,6 @@
  * Align with uboot-imx_v2018.03_4.14.78_1.0.0_ga
  */
 
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/engicam/imx8mm/spl.c b/board/engicam/imx8mm/spl.c
index af9044a3c2b0..d51ae241e85c 100644
--- a/board/engicam/imx8mm/spl.c
+++ b/board/engicam/imx8mm/spl.c
@@ -5,7 +5,6 @@
  * Author: Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <hang.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/engicam/imx8mp/icore_mx8mp.c b/board/engicam/imx8mp/icore_mx8mp.c
index 5f820cc8dd70..e2ed70caa43a 100644
--- a/board/engicam/imx8mp/icore_mx8mp.c
+++ b/board/engicam/imx8mp/icore_mx8mp.c
@@ -8,7 +8,6 @@
  * Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
diff --git a/board/engicam/imx8mp/spl.c b/board/engicam/imx8mp/spl.c
index 36b83aace392..cd31aa6041d1 100644
--- a/board/engicam/imx8mp/spl.c
+++ b/board/engicam/imx8mp/spl.c
@@ -8,7 +8,6 @@
  * Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <hang.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/engicam/stm32mp1/spl.c b/board/engicam/stm32mp1/spl.c
index 2b7779cc01dd..bb2bd446aa8c 100644
--- a/board/engicam/stm32mp1/spl.c
+++ b/board/engicam/stm32mp1/spl.c
@@ -5,7 +5,7 @@
  * Copyright (C) 2020 Amarula Solutions(India)
  */
 
-#include <common.h>
+#include <linux/types.h>
 
 /* board early initialisation in board_f: need to use global variable */
 static u32 opp_voltage_mv __section(".data");
diff --git a/board/engicam/stm32mp1/stm32mp1.c b/board/engicam/stm32mp1/stm32mp1.c
index 5223e9bae8d7..bc2af66d8e96 100644
--- a/board/engicam/stm32mp1/stm32mp1.c
+++ b/board/engicam/stm32mp1/stm32mp1.c
@@ -6,7 +6,6 @@
  * Author: Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <env_internal.h>
 #include <syscon.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 059/149] board: esd: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (56 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 058/149] board: engicam: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 060/149] board: firefly: " Tom Rini
                   ` (91 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Daniel Gorsulowski

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Daniel Gorsulowski <daniel.gorsulowski@esd.eu>
---
 board/esd/meesc/meesc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/esd/meesc/meesc.c b/board/esd/meesc/meesc.c
index 9e3621042241..dce69abdfd1d 100644
--- a/board/esd/meesc/meesc.c
+++ b/board/esd/meesc/meesc.c
@@ -9,7 +9,7 @@
  * esd electronic system design gmbh <www.esd.eu>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <init.h>
 #include <net.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 060/149] board: firefly: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (57 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 059/149] board: esd: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-07  7:41   ` Kever Yang
  2024-05-01  2:41 ` [PATCH 061/149] board: freescale: " Tom Rini
                   ` (90 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Simon Glass, Philipp Tomsich, Kever Yang, Andy Yan, Levin Du,
	Suniel Mahesh

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Simon Glass <sjg@chromium.org>
Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Andy Yan <andy.yan@rock-chips.com>
Cc: Levin Du <djw@t-chip.com.cn>
Cc: Suniel Mahesh <sunil@amarulasolutions.com>
---
 board/firefly/firefly-rk3288/firefly-rk3288.c | 1 -
 board/firefly/firefly-rk3308/roc_cc_rk3308.c  | 1 -
 board/firefly/roc-pc-rk3399/roc-pc-rk3399.c   | 1 -
 3 files changed, 3 deletions(-)

diff --git a/board/firefly/firefly-rk3288/firefly-rk3288.c b/board/firefly/firefly-rk3288/firefly-rk3288.c
index 95d8b00924d8..8e67ab4b1327 100644
--- a/board/firefly/firefly-rk3288/firefly-rk3288.c
+++ b/board/firefly/firefly-rk3288/firefly-rk3288.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 Google, Inc
  */
 
-#include <common.h>
 #include <hang.h>
 #include <led.h>
 #include <log.h>
diff --git a/board/firefly/firefly-rk3308/roc_cc_rk3308.c b/board/firefly/firefly-rk3308/roc_cc_rk3308.c
index af00250e118d..404bdc632bbc 100644
--- a/board/firefly/firefly-rk3308/roc_cc_rk3308.c
+++ b/board/firefly/firefly-rk3308/roc_cc_rk3308.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2019 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <adc.h>
 #include <asm/arch-rockchip/grf_rk3308.h>
 #include <asm/arch-rockchip/hardware.h>
diff --git a/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c b/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
index 590519b32af2..a149e4fe822e 100644
--- a/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
+++ b/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <log.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 061/149] board: freescale: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (58 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 060/149] board: firefly: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01 11:26   ` Peng Fan
  2024-05-01 12:02   ` Jason Liu
  2024-05-01  2:41 ` [PATCH 062/149] board: friendlyarm: " Tom Rini
                   ` (89 subsequent siblings)
  149 siblings, 2 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Stefano Babic, Fabio Estevam, NXP i.MX U-Boot Team, Peng Fan,
	Giulio Benetti, Jesse Taube, Pramod Kumar, Alison Wang,
	Tang Yuantian, Mingkai Hu, Ashish Kumar, Priyanka Jain,
	Wasim Khan, Meenakshi Aggarwal, Angelo Dureghello, TsiChung Liew,
	Sinan Akman, Otavio Salvador, Jason Liu, Eric Nelson,
	Adrian Alonso, Qiang Zhao, Shengzhou Liu

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
Cc: Jesse Taube <Mr.Bossman075@gmail.com>
Cc: Pramod Kumar <pramod.kumar_1@nxp.com>
Cc: Alison Wang <alison.wang@nxp.com>
Cc: Tang Yuantian <andy.tang@nxp.com>
Cc: Mingkai Hu <mingkai.hu@nxp.com>
Cc: Ashish Kumar <Ashish.Kumar@nxp.com>
Cc: Priyanka Jain <priyanka.jain@nxp.com>
Cc: Wasim Khan <wasim.khan@nxp.com>
Cc: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Cc: Angelo Dureghello <angelo@kernel-space.org>
Cc: TsiChung Liew <Tsi-Chung.Liew@nxp.com>
Cc: Sinan Akman <sinan@writeme.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Jason Liu <jason.hui.liu@nxp.com>
Cc: Eric Nelson <eric@nelint.com>
Cc: Adrian Alonso <adrian.alonso@nxp.com>
Cc: Qiang Zhao <qiang.zhao@nxp.com>
Cc: Shengzhou Liu <Shengzhou.Liu@nxp.com>
---
 arch/arm/include/asm/arch-imx8m/ddr.h             | 2 +-
 arch/arm/include/asm/mach-imx/gpio.h              | 2 ++
 board/freescale/common/cadmus.c                   | 3 ++-
 board/freescale/common/cds_pci_ft.c               | 1 -
 board/freescale/common/cds_via.c                  | 1 -
 board/freescale/common/cmd_esbc_validate.c        | 2 +-
 board/freescale/common/emc2305.c                  | 1 -
 board/freescale/common/fman.c                     | 1 -
 board/freescale/common/fsl_chain_of_trust.c       | 2 +-
 board/freescale/common/fsl_validate.c             | 2 +-
 board/freescale/common/i2c_common.c               | 2 +-
 board/freescale/common/i2c_mux.c                  | 3 ++-
 board/freescale/common/ics307_clk.c               | 2 +-
 board/freescale/common/ls102xa_stream_id.c        | 2 +-
 board/freescale/common/mc34vr500.c                | 1 -
 board/freescale/common/mmc.c                      | 2 +-
 board/freescale/common/ngpixis.c                  | 1 -
 board/freescale/common/ns_access.c                | 2 +-
 board/freescale/common/p_corenet/law.c            | 2 +-
 board/freescale/common/p_corenet/tlb.c            | 3 ++-
 board/freescale/common/pfuze.c                    | 1 -
 board/freescale/common/qixis.c                    | 2 +-
 board/freescale/common/sdhc_boot.c                | 1 -
 board/freescale/common/sys_eeprom.c               | 1 -
 board/freescale/common/vid.c                      | 3 ++-
 board/freescale/imx8mm_evk/imx8mm_evk.c           | 1 -
 board/freescale/imx8mm_evk/spl.c                  | 1 -
 board/freescale/imx8mn_evk/imx8mn_evk.c           | 1 -
 board/freescale/imx8mn_evk/spl.c                  | 1 -
 board/freescale/imx8mp_evk/spl.c                  | 1 -
 board/freescale/imx8mq_evk/imx8mq_evk.c           | 1 -
 board/freescale/imx8mq_evk/lpddr4_timing.c        | 1 -
 board/freescale/imx8mq_evk/lpddr4_timing_b0.c     | 1 -
 board/freescale/imx8mq_evk/spl.c                  | 2 +-
 board/freescale/imx8qm_mek/imx8qm_mek.c           | 1 -
 board/freescale/imx8qm_mek/spl.c                  | 1 -
 board/freescale/imx8qxp_mek/imx8qxp_mek.c         | 1 -
 board/freescale/imx8qxp_mek/spl.c                 | 1 -
 board/freescale/imx8ulp_evk/imx8ulp_evk.c         | 1 -
 board/freescale/imx8ulp_evk/spl.c                 | 1 -
 board/freescale/imx93_evk/imx93_evk.c             | 1 -
 board/freescale/imx93_evk/spl.c                   | 1 -
 board/freescale/imxrt1020-evk/imxrt1020-evk.c     | 1 -
 board/freescale/imxrt1050-evk/imxrt1050-evk.c     | 1 -
 board/freescale/imxrt1170-evk/imxrt1170-evk.c     | 1 -
 board/freescale/ls1012afrdm/eth.c                 | 1 -
 board/freescale/ls1012afrdm/ls1012afrdm.c         | 2 +-
 board/freescale/ls1012aqds/eth.c                  | 2 +-
 board/freescale/ls1012aqds/ls1012aqds.c           | 2 +-
 board/freescale/ls1012ardb/eth.c                  | 2 +-
 board/freescale/ls1012ardb/ls1012ardb.c           | 2 +-
 board/freescale/ls1021aiot/ls1021aiot.c           | 2 +-
 board/freescale/ls1021aqds/ddr.c                  | 2 +-
 board/freescale/ls1028a/ddr.c                     | 1 -
 board/freescale/ls1028a/ls1028a.c                 | 2 +-
 board/freescale/ls1043aqds/ddr.c                  | 1 -
 board/freescale/ls1043aqds/eth.c                  | 2 +-
 board/freescale/ls1043aqds/ls1043aqds.c           | 2 +-
 board/freescale/ls1043ardb/cpld.c                 | 2 +-
 board/freescale/ls1043ardb/ddr.c                  | 1 -
 board/freescale/ls1043ardb/eth.c                  | 2 +-
 board/freescale/ls1046afrwy/ddr.c                 | 1 -
 board/freescale/ls1046afrwy/eth.c                 | 2 +-
 board/freescale/ls1046afrwy/ls1046afrwy.c         | 2 +-
 board/freescale/ls1046aqds/ddr.c                  | 1 -
 board/freescale/ls1046aqds/eth.c                  | 2 +-
 board/freescale/ls1046aqds/ls1046aqds.c           | 2 +-
 board/freescale/ls1046ardb/cpld.c                 | 2 +-
 board/freescale/ls1046ardb/ddr.c                  | 1 -
 board/freescale/ls1046ardb/eth.c                  | 2 +-
 board/freescale/ls1046ardb/ls1046ardb.c           | 2 +-
 board/freescale/ls1088a/ddr.c                     | 1 -
 board/freescale/ls1088a/ls1088a.c                 | 2 +-
 board/freescale/ls2080aqds/ddr.c                  | 1 -
 board/freescale/ls2080aqds/ls2080aqds.c           | 2 +-
 board/freescale/ls2080ardb/ddr.c                  | 1 -
 board/freescale/ls2080ardb/ls2080ardb.c           | 2 +-
 board/freescale/lx2160a/ddr.c                     | 1 -
 board/freescale/lx2160a/eth_lx2160ardb.c          | 1 -
 board/freescale/lx2160a/lx2160a.c                 | 2 +-
 board/freescale/m5208evbe/m5208evbe.c             | 1 -
 board/freescale/m5235evb/m5235evb.c               | 1 -
 board/freescale/m5249evb/m5249evb.c               | 2 +-
 board/freescale/m5253demo/flash.c                 | 3 ++-
 board/freescale/m5253demo/m5253demo.c             | 2 +-
 board/freescale/m5272c3/m5272c3.c                 | 2 +-
 board/freescale/m5275evb/m5275evb.c               | 2 +-
 board/freescale/m5282evb/m5282evb.c               | 2 +-
 board/freescale/m53017evb/m53017evb.c             | 1 -
 board/freescale/m5329evb/m5329evb.c               | 1 -
 board/freescale/m5329evb/nand.c                   | 1 -
 board/freescale/m5373evb/m5373evb.c               | 1 -
 board/freescale/m5373evb/nand.c                   | 1 -
 board/freescale/mpc837xerdb/mpc837xerdb.c         | 2 +-
 board/freescale/mpc8548cds/ddr.c                  | 1 -
 board/freescale/mpc8548cds/law.c                  | 2 +-
 board/freescale/mpc8548cds/mpc8548cds.c           | 2 +-
 board/freescale/mpc8548cds/tlb.c                  | 3 ++-
 board/freescale/mx23evk/mx23evk.c                 | 1 -
 board/freescale/mx23evk/spl_boot.c                | 1 -
 board/freescale/mx28evk/iomux.c                   | 1 -
 board/freescale/mx28evk/mx28evk.c                 | 1 -
 board/freescale/mx51evk/mx51evk.c                 | 2 +-
 board/freescale/mx53loco/mx53loco.c               | 2 +-
 board/freescale/mx6memcal/mx6memcal.c             | 1 -
 board/freescale/mx6memcal/spl.c                   | 1 -
 board/freescale/mx6sabreauto/mx6sabreauto.c       | 1 -
 board/freescale/mx6slevk/mx6slevk.c               | 1 -
 board/freescale/mx6sllevk/mx6sllevk.c             | 1 -
 board/freescale/mx6sxsabreauto/mx6sxsabreauto.c   | 2 +-
 board/freescale/mx6sxsabresd/mx6sxsabresd.c       | 1 -
 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +-
 board/freescale/mx6ullevk/mx6ullevk.c             | 2 +-
 board/freescale/mx7dsabresd/mx7dsabresd.c         | 1 -
 board/freescale/mx7ulp_evk/mx7ulp_evk.c           | 1 -
 board/freescale/p1010rdb/ddr.c                    | 1 -
 board/freescale/p1010rdb/law.c                    | 2 +-
 board/freescale/p1010rdb/p1010rdb.c               | 2 +-
 board/freescale/p1010rdb/spl.c                    | 2 +-
 board/freescale/p1010rdb/spl_minimal.c            | 2 +-
 board/freescale/p1010rdb/tlb.c                    | 3 ++-
 board/freescale/p1_p2_rdb_pc/ddr.c                | 5 +++--
 board/freescale/p1_p2_rdb_pc/law.c                | 2 +-
 board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c       | 2 +-
 board/freescale/p1_p2_rdb_pc/spl.c                | 2 +-
 board/freescale/p1_p2_rdb_pc/spl_minimal.c        | 2 +-
 board/freescale/p1_p2_rdb_pc/tlb.c                | 3 ++-
 board/freescale/p2041rdb/cpld.c                   | 1 -
 board/freescale/p2041rdb/ddr.c                    | 1 -
 board/freescale/p2041rdb/eth.c                    | 2 +-
 board/freescale/p2041rdb/p2041rdb.c               | 2 +-
 board/freescale/t102xrdb/cpld.c                   | 2 +-
 board/freescale/t102xrdb/ddr.c                    | 2 +-
 board/freescale/t102xrdb/eth_t102xrdb.c           | 2 +-
 board/freescale/t102xrdb/law.c                    | 2 +-
 board/freescale/t102xrdb/spl.c                    | 2 +-
 board/freescale/t102xrdb/t102xrdb.c               | 2 +-
 board/freescale/t102xrdb/tlb.c                    | 3 ++-
 board/freescale/t104xrdb/cpld.c                   | 2 +-
 board/freescale/t104xrdb/ddr.c                    | 2 +-
 board/freescale/t104xrdb/eth.c                    | 2 +-
 board/freescale/t104xrdb/law.c                    | 2 +-
 board/freescale/t104xrdb/spl.c                    | 2 +-
 board/freescale/t104xrdb/t104xrdb.c               | 2 +-
 board/freescale/t104xrdb/tlb.c                    | 3 ++-
 board/freescale/t208xqds/ddr.c                    | 1 -
 board/freescale/t208xqds/eth_t208xqds.c           | 2 +-
 board/freescale/t208xqds/law.c                    | 2 +-
 board/freescale/t208xqds/spl.c                    | 2 +-
 board/freescale/t208xqds/t208xqds.c               | 2 +-
 board/freescale/t208xqds/tlb.c                    | 3 ++-
 board/freescale/t208xrdb/cpld.c                   | 3 ++-
 board/freescale/t208xrdb/ddr.c                    | 1 -
 board/freescale/t208xrdb/eth_t208xrdb.c           | 1 -
 board/freescale/t208xrdb/law.c                    | 2 +-
 board/freescale/t208xrdb/spl.c                    | 2 +-
 board/freescale/t208xrdb/t208xrdb.c               | 2 +-
 board/freescale/t208xrdb/tlb.c                    | 3 ++-
 board/freescale/t4rdb/cpld.c                      | 2 +-
 board/freescale/t4rdb/ddr.c                       | 1 -
 board/freescale/t4rdb/eth.c                       | 2 +-
 board/freescale/t4rdb/law.c                       | 2 +-
 board/freescale/t4rdb/spl.c                       | 2 +-
 board/freescale/t4rdb/t4240rdb.c                  | 2 +-
 board/freescale/t4rdb/tlb.c                       | 3 ++-
 board/freescale/vf610twr/vf610twr.c               | 1 -
 166 files changed, 115 insertions(+), 166 deletions(-)

diff --git a/arch/arm/include/asm/arch-imx8m/ddr.h b/arch/arm/include/asm/arch-imx8m/ddr.h
index c14855d177ec..1f81d91977c8 100644
--- a/arch/arm/include/asm/arch-imx8m/ddr.h
+++ b/arch/arm/include/asm/arch-imx8m/ddr.h
@@ -8,7 +8,7 @@
 
 #include <asm/io.h>
 #include <asm/types.h>
-#include <asm/arch/ddr.h>
+#include <asm/arch/imx-regs.h>
 
 #define DDRC_DDR_SS_GPR0		0x3d000000
 #define DDRC_IPS_BASE_ADDR_0		0x3f400000
diff --git a/arch/arm/include/asm/mach-imx/gpio.h b/arch/arm/include/asm/mach-imx/gpio.h
index 1b7c9cd52499..25763526f5f6 100644
--- a/arch/arm/include/asm/mach-imx/gpio.h
+++ b/arch/arm/include/asm/mach-imx/gpio.h
@@ -9,6 +9,8 @@
 #define __ASM_ARCH_IMX_GPIO_H
 
 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
+#include <linux/types.h>
+
 /* GPIO registers */
 struct gpio_regs {
 	u32 gpio_dr;	/* data */
diff --git a/board/freescale/common/cadmus.c b/board/freescale/common/cadmus.c
index e7e07fff86c3..6f66ed6851d4 100644
--- a/board/freescale/common/cadmus.c
+++ b/board/freescale/common/cadmus.c
@@ -4,8 +4,9 @@
  */
 
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
+#include <linux/types.h>
 
 /*
  * CADMUS Board System Registers
diff --git a/board/freescale/common/cds_pci_ft.c b/board/freescale/common/cds_pci_ft.c
index dc2d62850d19..56b01e3f51f0 100644
--- a/board/freescale/common/cds_pci_ft.c
+++ b/board/freescale/common/cds_pci_ft.c
@@ -3,7 +3,6 @@
  * Copyright 2004 Freescale Semiconductor.
  */
 
-#include <common.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include "cadmus.h"
diff --git a/board/freescale/common/cds_via.c b/board/freescale/common/cds_via.c
index 6184472b1658..6fc3a21780f6 100644
--- a/board/freescale/common/cds_via.c
+++ b/board/freescale/common/cds_via.c
@@ -3,7 +3,6 @@
  * Copyright 2006 Freescale Semiconductor.
  */
 
-#include <common.h>
 #include <pci.h>
 
 /* Config the VIA chip */
diff --git a/board/freescale/common/cmd_esbc_validate.c b/board/freescale/common/cmd_esbc_validate.c
index 6c096266b484..d4192e5ab521 100644
--- a/board/freescale/common/cmd_esbc_validate.c
+++ b/board/freescale/common/cmd_esbc_validate.c
@@ -3,10 +3,10 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <fsl_validate.h>
+#include <vsprintf.h>
 
 int do_esbc_halt(struct cmd_tbl *cmdtp, int flag, int argc,
 		 char *const argv[])
diff --git a/board/freescale/common/emc2305.c b/board/freescale/common/emc2305.c
index 9a75c5a09dd1..50252bb5007f 100644
--- a/board/freescale/common/emc2305.c
+++ b/board/freescale/common/emc2305.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <command.h>
 #include <i2c.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/common/fman.c b/board/freescale/common/fman.c
index 358303108d8d..650ecc7b4402 100644
--- a/board/freescale/common/fman.c
+++ b/board/freescale/common/fman.c
@@ -3,7 +3,6 @@
  * Copyright 2011-2015 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <linux/libfdt.h>
 #include <linux/libfdt_env.h>
 #include <fdt_support.h>
diff --git a/board/freescale/common/fsl_chain_of_trust.c b/board/freescale/common/fsl_chain_of_trust.c
index 87ed814d6a2a..27a33924c84d 100644
--- a/board/freescale/common/fsl_chain_of_trust.c
+++ b/board/freescale/common/fsl_chain_of_trust.c
@@ -4,7 +4,7 @@
  * Copyright 2022 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c
index bfe6357b0d60..e03434dcdfed 100644
--- a/board/freescale/common/fsl_validate.c
+++ b/board/freescale/common/fsl_validate.c
@@ -4,7 +4,7 @@
  * Copyright 2021-2022 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <fsl_validate.h>
 #include <fsl_secboot_err.h>
diff --git a/board/freescale/common/i2c_common.c b/board/freescale/common/i2c_common.c
index 119ed3c6171b..20705ecc8e46 100644
--- a/board/freescale/common/i2c_common.c
+++ b/board/freescale/common/i2c_common.c
@@ -5,7 +5,7 @@
  * Copyright 2021 Microsoft Corporation
  */
 
-#include <common.h>
+#include <stdio.h>
 #include <i2c.h>
 #include "i2c_common.h"
 
diff --git a/board/freescale/common/i2c_mux.c b/board/freescale/common/i2c_mux.c
index d40b34f10397..89151ccaf060 100644
--- a/board/freescale/common/i2c_mux.c
+++ b/board/freescale/common/i2c_mux.c
@@ -5,8 +5,9 @@
  * Copyright 2021 Microsoft Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
+#include <stdio.h>
 #include "i2c_common.h"
 #include "i2c_mux.h"
 
diff --git a/board/freescale/common/ics307_clk.c b/board/freescale/common/ics307_clk.c
index 5f95571d24cc..af30faa0c5fe 100644
--- a/board/freescale/common/ics307_clk.c
+++ b/board/freescale/common/ics307_clk.c
@@ -3,7 +3,7 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <log.h>
 #include <asm/io.h>
diff --git a/board/freescale/common/ls102xa_stream_id.c b/board/freescale/common/ls102xa_stream_id.c
index f754cf42fd38..bf76274c43ca 100644
--- a/board/freescale/common/ls102xa_stream_id.c
+++ b/board/freescale/common/ls102xa_stream_id.c
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <asm/arch/ls102xa_stream_id.h>
 
diff --git a/board/freescale/common/mc34vr500.c b/board/freescale/common/mc34vr500.c
index d6b4c65a3c08..cf14b29a3ec1 100644
--- a/board/freescale/common/mc34vr500.c
+++ b/board/freescale/common/mc34vr500.c
@@ -4,7 +4,6 @@
  * Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
  */
 
-#include <common.h>
 #include <errno.h>
 #include <i2c.h>
 #include <log.h>
diff --git a/board/freescale/common/mmc.c b/board/freescale/common/mmc.c
index 8cd5079f962d..00e4f3675fe4 100644
--- a/board/freescale/common/mmc.c
+++ b/board/freescale/common/mmc.c
@@ -4,8 +4,8 @@
  * Copyright 2018-2022 NXP
  */
 
-#include <common.h>
 #include <command.h>
+#include <vsprintf.h>
 #include <asm/arch/sys_proto.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/board/freescale/common/ngpixis.c b/board/freescale/common/ngpixis.c
index 7be1ccee6383..74c345807e64 100644
--- a/board/freescale/common/ngpixis.c
+++ b/board/freescale/common/ngpixis.c
@@ -29,7 +29,6 @@
  *    boot from the alternate bank.
  */
 
-#include <common.h>
 #include <command.h>
 #include <asm/io.h>
 
diff --git a/board/freescale/common/ns_access.c b/board/freescale/common/ns_access.c
index a95d15c1ef39..c46e87f4ccee 100644
--- a/board/freescale/common/ns_access.c
+++ b/board/freescale/common/ns_access.c
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/cache.h>
 #include <asm/io.h>
diff --git a/board/freescale/common/p_corenet/law.c b/board/freescale/common/p_corenet/law.c
index 1a1e9343d23b..83818d6d8479 100644
--- a/board/freescale/common/p_corenet/law.c
+++ b/board/freescale/common/p_corenet/law.c
@@ -6,7 +6,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/common/p_corenet/tlb.c b/board/freescale/common/p_corenet/tlb.c
index 1a2d9cbfc0ce..cebdedfa4a7a 100644
--- a/board/freescale/common/p_corenet/tlb.c
+++ b/board/freescale/common/p_corenet/tlb.c
@@ -6,8 +6,9 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c
index a9288820b2eb..0d7a94fd232f 100644
--- a/board/freescale/common/pfuze.c
+++ b/board/freescale/common/pfuze.c
@@ -3,7 +3,6 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <errno.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
diff --git a/board/freescale/common/qixis.c b/board/freescale/common/qixis.c
index da2c1de078b7..6400ac052454 100644
--- a/board/freescale/common/qixis.c
+++ b/board/freescale/common/qixis.c
@@ -7,7 +7,7 @@
  * This file provides support for the QIXIS of some Freescale reference boards.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <asm/io.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/common/sdhc_boot.c b/board/freescale/common/sdhc_boot.c
index a1c7a94a90e3..5ee730cefd04 100644
--- a/board/freescale/common/sdhc_boot.c
+++ b/board/freescale/common/sdhc_boot.c
@@ -3,7 +3,6 @@
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <mmc.h>
 #include <malloc.h>
 
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index 64139d4659f2..ec3c9e37222a 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -6,7 +6,6 @@
  * Timur Tabi (timur@freescale.com)
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <i2c.h>
diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c
index fc5d400cfe18..84cb43fad56a 100644
--- a/board/freescale/common/vid.c
+++ b/board/freescale/common/vid.c
@@ -5,12 +5,13 @@
  * Copyright 2020 Stephen Carlson <stcarlso@linux.microsoft.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <env.h>
 #include <i2c.h>
 #include <irq_func.h>
 #include <log.h>
+#include <vsprintf.h>
 #include <asm/io.h>
 #ifdef CONFIG_FSL_LSCH2
 #include <asm/arch/immap_lsch2.h>
diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c
index e0975fcda705..4c4436af3b1d 100644
--- a/board/freescale/imx8mm_evk/imx8mm_evk.c
+++ b/board/freescale/imx8mm_evk/imx8mm_evk.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <miiphy.h>
diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
index 35437811d9df..cd251d274ff6 100644
--- a/board/freescale/imx8mm_evk/spl.c
+++ b/board/freescale/imx8mm_evk/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2019, 2021 NXP
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c b/board/freescale/imx8mn_evk/imx8mn_evk.c
index e35d505aea97..6b6fb0a7dd21 100644
--- a/board/freescale/imx8mn_evk/imx8mn_evk.c
+++ b/board/freescale/imx8mn_evk/imx8mn_evk.c
@@ -3,7 +3,6 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/imx8mn_evk/spl.c b/board/freescale/imx8mn_evk/spl.c
index dd54fa9b6085..231b9289eead 100644
--- a/board/freescale/imx8mn_evk/spl.c
+++ b/board/freescale/imx8mn_evk/spl.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c
index 9dd2cbc799c3..12da1b2abfbb 100644
--- a/board/freescale/imx8mp_evk/spl.c
+++ b/board/freescale/imx8mp_evk/spl.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <hang.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_evk.c
index e577e4d9ccaa..ab920a4539cd 100644
--- a/board/freescale/imx8mq_evk/imx8mq_evk.c
+++ b/board/freescale/imx8mq_evk/imx8mq_evk.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <malloc.h>
diff --git a/board/freescale/imx8mq_evk/lpddr4_timing.c b/board/freescale/imx8mq_evk/lpddr4_timing.c
index 46bc7f8591cb..e9559e3d843a 100644
--- a/board/freescale/imx8mq_evk/lpddr4_timing.c
+++ b/board/freescale/imx8mq_evk/lpddr4_timing.c
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/freescale/imx8mq_evk/lpddr4_timing_b0.c b/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
index ec68edaf6905..5d8f2803be67 100644
--- a/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
+++ b/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c
index 818cdd615eb9..a346305c8633 100644
--- a/board/freescale/imx8mq_evk/spl.c
+++ b/board/freescale/imx8mq_evk/spl.c
@@ -4,7 +4,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <hang.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c
index 2b209c8886f2..72527f774ca9 100644
--- a/board/freescale/imx8qm_mek/imx8qm_mek.c
+++ b/board/freescale/imx8qm_mek/imx8qm_mek.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <errno.h>
diff --git a/board/freescale/imx8qm_mek/spl.c b/board/freescale/imx8qm_mek/spl.c
index 17fd437116d3..ad7868333091 100644
--- a/board/freescale/imx8qm_mek/spl.c
+++ b/board/freescale/imx8qm_mek/spl.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
index 833bee55462d..adb9556a021c 100644
--- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
+++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <errno.h>
diff --git a/board/freescale/imx8qxp_mek/spl.c b/board/freescale/imx8qxp_mek/spl.c
index 462c43ceebc7..05e3c0a2ff26 100644
--- a/board/freescale/imx8qxp_mek/spl.c
+++ b/board/freescale/imx8qxp_mek/spl.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/freescale/imx8ulp_evk/imx8ulp_evk.c b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
index dd04d5925a00..0af610672637 100644
--- a/board/freescale/imx8ulp_evk/imx8ulp_evk.c
+++ b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
@@ -3,7 +3,6 @@
  * Copyright 2020 NXP
  */
 
-#include <common.h>
 #include <miiphy.h>
 #include <netdev.h>
 #include <asm/arch/imx8ulp-pins.h>
diff --git a/board/freescale/imx8ulp_evk/spl.c b/board/freescale/imx8ulp_evk/spl.c
index c49b5be47620..d123b21b7225 100644
--- a/board/freescale/imx8ulp_evk/spl.c
+++ b/board/freescale/imx8ulp_evk/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
 #include <init.h>
 #include <spl.h>
 #include <asm/io.h>
diff --git a/board/freescale/imx93_evk/imx93_evk.c b/board/freescale/imx93_evk/imx93_evk.c
index c54dc9d05c5c..341831a7d30d 100644
--- a/board/freescale/imx93_evk/imx93_evk.c
+++ b/board/freescale/imx93_evk/imx93_evk.c
@@ -3,7 +3,6 @@
  * Copyright 2022 NXP
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <miiphy.h>
diff --git a/board/freescale/imx93_evk/spl.c b/board/freescale/imx93_evk/spl.c
index 6d5e110b2776..e5807134bb23 100644
--- a/board/freescale/imx93_evk/spl.c
+++ b/board/freescale/imx93_evk/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2022 NXP
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <hang.h>
diff --git a/board/freescale/imxrt1020-evk/imxrt1020-evk.c b/board/freescale/imxrt1020-evk/imxrt1020-evk.c
index 785da604b964..42a0a67ae933 100644
--- a/board/freescale/imxrt1020-evk/imxrt1020-evk.c
+++ b/board/freescale/imxrt1020-evk/imxrt1020-evk.c
@@ -4,7 +4,6 @@
  * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/freescale/imxrt1050-evk/imxrt1050-evk.c b/board/freescale/imxrt1050-evk/imxrt1050-evk.c
index 4cc3defc8828..46a644908e9d 100644
--- a/board/freescale/imxrt1050-evk/imxrt1050-evk.c
+++ b/board/freescale/imxrt1050-evk/imxrt1050-evk.c
@@ -4,7 +4,6 @@
  * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/freescale/imxrt1170-evk/imxrt1170-evk.c b/board/freescale/imxrt1170-evk/imxrt1170-evk.c
index 4b82ee5e9ce4..e10b8830ec6a 100644
--- a/board/freescale/imxrt1170-evk/imxrt1170-evk.c
+++ b/board/freescale/imxrt1170-evk/imxrt1170-evk.c
@@ -4,7 +4,6 @@
  * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/freescale/ls1012afrdm/eth.c b/board/freescale/ls1012afrdm/eth.c
index d2df9351eacc..c431e5e611bb 100644
--- a/board/freescale/ls1012afrdm/eth.c
+++ b/board/freescale/ls1012afrdm/eth.c
@@ -4,7 +4,6 @@
  * Copyright 2017 NXP
  */
 
-#include <common.h>
 #include <dm.h>
 #include <net.h>
 #include <asm/io.h>
diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c b/board/freescale/ls1012afrdm/ls1012afrdm.c
index 271072bf7a1c..dae2cf097bc0 100644
--- a/board/freescale/ls1012afrdm/ls1012afrdm.c
+++ b/board/freescale/ls1012afrdm/ls1012afrdm.c
@@ -3,7 +3,7 @@
  * Copyright 2017-2018, 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <fdt_support.h>
 #include <i2c.h>
 #include <asm/cache.h>
diff --git a/board/freescale/ls1012aqds/eth.c b/board/freescale/ls1012aqds/eth.c
index 38267acedde1..d5e87c5393b8 100644
--- a/board/freescale/ls1012aqds/eth.c
+++ b/board/freescale/ls1012aqds/eth.c
@@ -4,7 +4,7 @@
  * Copyright 2017 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <netdev.h>
diff --git a/board/freescale/ls1012aqds/ls1012aqds.c b/board/freescale/ls1012aqds/ls1012aqds.c
index a5ea8d634edc..7d56eb0117d4 100644
--- a/board/freescale/ls1012aqds/ls1012aqds.c
+++ b/board/freescale/ls1012aqds/ls1012aqds.c
@@ -4,7 +4,7 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <fdt_support.h>
 #include <asm/cache.h>
diff --git a/board/freescale/ls1012ardb/eth.c b/board/freescale/ls1012ardb/eth.c
index 5c661274987c..71cb2988a56d 100644
--- a/board/freescale/ls1012ardb/eth.c
+++ b/board/freescale/ls1012ardb/eth.c
@@ -4,7 +4,7 @@
  * Copyright 2017 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <net.h>
 #include <asm/io.h>
diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c
index 18f92089caef..7f8001b4981f 100644
--- a/board/freescale/ls1012ardb/ls1012ardb.c
+++ b/board/freescale/ls1012ardb/ls1012ardb.c
@@ -4,7 +4,7 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <fdt_support.h>
 #include <hang.h>
diff --git a/board/freescale/ls1021aiot/ls1021aiot.c b/board/freescale/ls1021aiot/ls1021aiot.c
index d6f22bd6a2a3..7abc41269330 100644
--- a/board/freescale/ls1021aiot/ls1021aiot.c
+++ b/board/freescale/ls1021aiot/ls1021aiot.c
@@ -4,7 +4,7 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <fdt_support.h>
 #include <init.h>
diff --git a/board/freescale/ls1021aqds/ddr.c b/board/freescale/ls1021aqds/ddr.c
index 4e70acc5a0cc..5b0f23688f0b 100644
--- a/board/freescale/ls1021aqds/ddr.c
+++ b/board/freescale/ls1021aqds/ddr.c
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <init.h>
diff --git a/board/freescale/ls1028a/ddr.c b/board/freescale/ls1028a/ddr.c
index 3e976da6b305..c406f2436d1a 100644
--- a/board/freescale/ls1028a/ddr.c
+++ b/board/freescale/ls1028a/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls1028a/ls1028a.c b/board/freescale/ls1028a/ls1028a.c
index 7f181ab3dfb7..e01b5a8c2eb0 100644
--- a/board/freescale/ls1028a/ls1028a.c
+++ b/board/freescale/ls1028a/ls1028a.c
@@ -3,7 +3,7 @@
  * Copyright 2019-2022 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <display_options.h>
 #include <init.h>
 #include <malloc.h>
diff --git a/board/freescale/ls1043aqds/ddr.c b/board/freescale/ls1043aqds/ddr.c
index 23947bdb84c9..2a9717df616c 100644
--- a/board/freescale/ls1043aqds/ddr.c
+++ b/board/freescale/ls1043aqds/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #ifdef CONFIG_FSL_DEEP_SLEEP
diff --git a/board/freescale/ls1043aqds/eth.c b/board/freescale/ls1043aqds/eth.c
index cd1f83e3d068..5a8ca27b3278 100644
--- a/board/freescale/ls1043aqds/eth.c
+++ b/board/freescale/ls1043aqds/eth.c
@@ -4,7 +4,7 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <net.h>
 #include <asm/io.h>
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c
index b87da41e4083..fdf011efc5bd 100644
--- a/board/freescale/ls1043aqds/ls1043aqds.c
+++ b/board/freescale/ls1043aqds/ls1043aqds.c
@@ -4,7 +4,7 @@
  * Copyright 2019-2020 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <i2c.h>
 #include <fdt_support.h>
diff --git a/board/freescale/ls1043ardb/cpld.c b/board/freescale/ls1043ardb/cpld.c
index 9db3aa586059..bda2f3ac3a69 100644
--- a/board/freescale/ls1043ardb/cpld.c
+++ b/board/freescale/ls1043ardb/cpld.c
@@ -5,7 +5,7 @@
  * Freescale LS1043ARDB board-specific CPLD controlling supports.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <asm/io.h>
 #include "cpld.h"
diff --git a/board/freescale/ls1043ardb/ddr.c b/board/freescale/ls1043ardb/ddr.c
index 4d2fce384121..187925e981a5 100644
--- a/board/freescale/ls1043ardb/ddr.c
+++ b/board/freescale/ls1043ardb/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls1043ardb/eth.c b/board/freescale/ls1043ardb/eth.c
index cc95214c4e3f..cacc49c0584d 100644
--- a/board/freescale/ls1043ardb/eth.c
+++ b/board/freescale/ls1043ardb/eth.c
@@ -2,7 +2,7 @@
 /*
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <net.h>
 #include <asm/io.h>
 #include <netdev.h>
diff --git a/board/freescale/ls1046afrwy/ddr.c b/board/freescale/ls1046afrwy/ddr.c
index 256397b52b65..b08caee1d97d 100644
--- a/board/freescale/ls1046afrwy/ddr.c
+++ b/board/freescale/ls1046afrwy/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2019 NXP
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/global_data.h>
 
diff --git a/board/freescale/ls1046afrwy/eth.c b/board/freescale/ls1046afrwy/eth.c
index d1a2bfe18855..8efc7f68424c 100644
--- a/board/freescale/ls1046afrwy/eth.c
+++ b/board/freescale/ls1046afrwy/eth.c
@@ -2,7 +2,7 @@
 /*
  * Copyright 2019 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <fdt_support.h>
 #include <net.h>
 #include <asm/io.h>
diff --git a/board/freescale/ls1046afrwy/ls1046afrwy.c b/board/freescale/ls1046afrwy/ls1046afrwy.c
index 899c22a367e6..8889c24f1f0c 100644
--- a/board/freescale/ls1046afrwy/ls1046afrwy.c
+++ b/board/freescale/ls1046afrwy/ls1046afrwy.c
@@ -3,7 +3,7 @@
  * Copyright 2019, 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <fdt_support.h>
 #include <init.h>
diff --git a/board/freescale/ls1046aqds/ddr.c b/board/freescale/ls1046aqds/ddr.c
index 9a96de271786..ac1b60497216 100644
--- a/board/freescale/ls1046aqds/ddr.c
+++ b/board/freescale/ls1046aqds/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2016 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #ifdef CONFIG_FSL_DEEP_SLEEP
diff --git a/board/freescale/ls1046aqds/eth.c b/board/freescale/ls1046aqds/eth.c
index bbf8b8c2bee5..cd3500c2e960 100644
--- a/board/freescale/ls1046aqds/eth.c
+++ b/board/freescale/ls1046aqds/eth.c
@@ -4,7 +4,7 @@
  * Copyright 2018-2020 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <net.h>
 #include <asm/io.h>
diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c
index 2faac54a0e23..a83b21706519 100644
--- a/board/freescale/ls1046aqds/ls1046aqds.c
+++ b/board/freescale/ls1046aqds/ls1046aqds.c
@@ -4,7 +4,7 @@
  * Copyright 2019-2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <i2c.h>
 #include <fdt_support.h>
diff --git a/board/freescale/ls1046ardb/cpld.c b/board/freescale/ls1046ardb/cpld.c
index ee19d4ff8aab..7f8ca2e857fd 100644
--- a/board/freescale/ls1046ardb/cpld.c
+++ b/board/freescale/ls1046ardb/cpld.c
@@ -5,7 +5,7 @@
  * Freescale LS1046ARDB board-specific CPLD controlling supports.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <asm/io.h>
 #include "cpld.h"
diff --git a/board/freescale/ls1046ardb/ddr.c b/board/freescale/ls1046ardb/ddr.c
index befb556bd30b..68353022e7dd 100644
--- a/board/freescale/ls1046ardb/ddr.c
+++ b/board/freescale/ls1046ardb/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2016 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls1046ardb/eth.c b/board/freescale/ls1046ardb/eth.c
index bbc22a3cdf4a..fee8e0e21d44 100644
--- a/board/freescale/ls1046ardb/eth.c
+++ b/board/freescale/ls1046ardb/eth.c
@@ -2,7 +2,7 @@
 /*
  * Copyright 2016 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <fdt_support.h>
 #include <net.h>
 #include <asm/io.h>
diff --git a/board/freescale/ls1046ardb/ls1046ardb.c b/board/freescale/ls1046ardb/ls1046ardb.c
index 26e69db55f74..0492f0a8c0ae 100644
--- a/board/freescale/ls1046ardb/ls1046ardb.c
+++ b/board/freescale/ls1046ardb/ls1046ardb.c
@@ -4,7 +4,7 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <fdt_support.h>
 #include <init.h>
diff --git a/board/freescale/ls1088a/ddr.c b/board/freescale/ls1088a/ddr.c
index 9e0941cc9d6e..d2e239c4d615 100644
--- a/board/freescale/ls1088a/ddr.c
+++ b/board/freescale/ls1088a/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2017 NXP
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <log.h>
diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c
index 98a91c48adb0..58951f2bb2aa 100644
--- a/board/freescale/ls1088a/ls1088a.c
+++ b/board/freescale/ls1088a/ls1088a.c
@@ -2,7 +2,7 @@
 /*
  * Copyright 2017-2022 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <display_options.h>
 #include <env.h>
diff --git a/board/freescale/ls2080aqds/ddr.c b/board/freescale/ls2080aqds/ddr.c
index 2767d058cc96..2986ffb7a820 100644
--- a/board/freescale/ls2080aqds/ddr.c
+++ b/board/freescale/ls2080aqds/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <log.h>
diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
index 5c94c83121b5..4c8d0706688f 100644
--- a/board/freescale/ls2080aqds/ls2080aqds.c
+++ b/board/freescale/ls2080aqds/ls2080aqds.c
@@ -3,7 +3,7 @@
  * Copyright 2015 Freescale Semiconductor
  * Copyright 2021 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <display_options.h>
 #include <env.h>
diff --git a/board/freescale/ls2080ardb/ddr.c b/board/freescale/ls2080ardb/ddr.c
index 07fa84733324..ec34b42e619a 100644
--- a/board/freescale/ls2080ardb/ddr.c
+++ b/board/freescale/ls2080ardb/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2015 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <log.h>
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 5c30de83d841..6f824f57c478 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -3,7 +3,7 @@
  * Copyright 2015 Freescale Semiconductor
  * Copyright 2017, 2021 NXP
  */
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <display_options.h>
 #include <env.h>
diff --git a/board/freescale/lx2160a/ddr.c b/board/freescale/lx2160a/ddr.c
index 7ab7a9e6ca83..637e43a22bee 100644
--- a/board/freescale/lx2160a/ddr.c
+++ b/board/freescale/lx2160a/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/lx2160a/eth_lx2160ardb.c b/board/freescale/lx2160a/eth_lx2160ardb.c
index c5dfefe1f342..90e7c9100e12 100644
--- a/board/freescale/lx2160a/eth_lx2160ardb.c
+++ b/board/freescale/lx2160a/eth_lx2160ardb.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <netdev.h>
 #include <exports.h>
 #include <fsl-mc/fsl_mc.h>
diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
index b3187a14214a..3aa984dab8e7 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -3,7 +3,7 @@
  * Copyright 2018-2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <display_options.h>
 #include <dm.h>
diff --git a/board/freescale/m5208evbe/m5208evbe.c b/board/freescale/m5208evbe/m5208evbe.c
index 6125c9e13aa3..b202b8094d92 100644
--- a/board/freescale/m5208evbe/m5208evbe.c
+++ b/board/freescale/m5208evbe/m5208evbe.c
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m5235evb/m5235evb.c b/board/freescale/m5235evb/m5235evb.c
index 44161a0b0a1c..65cde56fb2d7 100644
--- a/board/freescale/m5235evb/m5235evb.c
+++ b/board/freescale/m5235evb/m5235evb.c
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m5249evb/m5249evb.c b/board/freescale/m5249evb/m5249evb.c
index d67db24d5883..717dc087e02b 100644
--- a/board/freescale/m5249evb/m5249evb.c
+++ b/board/freescale/m5249evb/m5249evb.c
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <init.h>
 #include <malloc.h>
diff --git a/board/freescale/m5253demo/flash.c b/board/freescale/m5253demo/flash.c
index eeb9cfd31259..334518a4bc9d 100644
--- a/board/freescale/m5253demo/flash.c
+++ b/board/freescale/m5253demo/flash.c
@@ -7,10 +7,11 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
+#include <config.h>
 #include <flash.h>
 #include <init.h>
 #include <irq_func.h>
+#include <time.h>
 
 #include <asm/immap.h>
 
diff --git a/board/freescale/m5253demo/m5253demo.c b/board/freescale/m5253demo/m5253demo.c
index c1cff52fb3db..d0b01f81745f 100644
--- a/board/freescale/m5253demo/m5253demo.c
+++ b/board/freescale/m5253demo/m5253demo.c
@@ -7,7 +7,7 @@
  * Hayden Fraser (Hayden.Fraser@freescale.com)
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <net.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/m5272c3/m5272c3.c b/board/freescale/m5272c3/m5272c3.c
index 3c20a23385c5..d1286badc61c 100644
--- a/board/freescale/m5272c3/m5272c3.c
+++ b/board/freescale/m5272c3/m5272c3.c
@@ -6,7 +6,7 @@
  * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m5275evb/m5275evb.c b/board/freescale/m5275evb/m5275evb.c
index 00fa35ca5f71..e1d94fc9a3e2 100644
--- a/board/freescale/m5275evb/m5275evb.c
+++ b/board/freescale/m5275evb/m5275evb.c
@@ -8,7 +8,7 @@
  * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m5282evb/m5282evb.c b/board/freescale/m5282evb/m5282evb.c
index 53e0f202101c..81da6e2abd46 100644
--- a/board/freescale/m5282evb/m5282evb.c
+++ b/board/freescale/m5282evb/m5282evb.c
@@ -4,7 +4,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m53017evb/m53017evb.c b/board/freescale/m53017evb/m53017evb.c
index 76ebc0ab8dcd..196d56dc17d3 100644
--- a/board/freescale/m53017evb/m53017evb.c
+++ b/board/freescale/m53017evb/m53017evb.c
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m5329evb/m5329evb.c b/board/freescale/m5329evb/m5329evb.c
index b278dbfb4852..26d5f3bf58ce 100644
--- a/board/freescale/m5329evb/m5329evb.c
+++ b/board/freescale/m5329evb/m5329evb.c
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m5329evb/nand.c b/board/freescale/m5329evb/nand.c
index d921eef8b675..a250d61ef368 100644
--- a/board/freescale/m5329evb/nand.c
+++ b/board/freescale/m5329evb/nand.c
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <asm/io.h>
 #include <asm/immap.h>
 
diff --git a/board/freescale/m5373evb/m5373evb.c b/board/freescale/m5373evb/m5373evb.c
index 0e9eec316c2f..d6fdf41bab47 100644
--- a/board/freescale/m5373evb/m5373evb.c
+++ b/board/freescale/m5373evb/m5373evb.c
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m5373evb/nand.c b/board/freescale/m5373evb/nand.c
index 6d825a66e33f..e7c08d22e6bb 100644
--- a/board/freescale/m5373evb/nand.c
+++ b/board/freescale/m5373evb/nand.c
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <asm/io.h>
 #include <asm/immap.h>
 
diff --git a/board/freescale/mpc837xerdb/mpc837xerdb.c b/board/freescale/mpc837xerdb/mpc837xerdb.c
index 97884a397964..55299745a3cb 100644
--- a/board/freescale/mpc837xerdb/mpc837xerdb.c
+++ b/board/freescale/mpc837xerdb/mpc837xerdb.c
@@ -5,7 +5,7 @@
  * Joe D'Abbraccio <joe.d'abbraccio@freescale.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <hwconfig.h>
 #include <i2c.h>
diff --git a/board/freescale/mpc8548cds/ddr.c b/board/freescale/mpc8548cds/ddr.c
index b6c1847b141b..14202cd5a788 100644
--- a/board/freescale/mpc8548cds/ddr.c
+++ b/board/freescale/mpc8548cds/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2008 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
diff --git a/board/freescale/mpc8548cds/law.c b/board/freescale/mpc8548cds/law.c
index 7b6ef5b11c92..2334870fda08 100644
--- a/board/freescale/mpc8548cds/law.c
+++ b/board/freescale/mpc8548cds/law.c
@@ -6,7 +6,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index ec6e3a2d0ab5..7810010fd042 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -5,7 +5,7 @@
  * (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <display_options.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/freescale/mpc8548cds/tlb.c b/board/freescale/mpc8548cds/tlb.c
index 994a32dd92ad..0b2afa8054d8 100644
--- a/board/freescale/mpc8548cds/tlb.c
+++ b/board/freescale/mpc8548cds/tlb.c
@@ -6,8 +6,9 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/mx23evk/mx23evk.c b/board/freescale/mx23evk/mx23evk.c
index df4fb3912558..fbc8fbdbf593 100644
--- a/board/freescale/mx23evk/mx23evk.c
+++ b/board/freescale/mx23evk/mx23evk.c
@@ -11,7 +11,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
diff --git a/board/freescale/mx23evk/spl_boot.c b/board/freescale/mx23evk/spl_boot.c
index 14e9b4a8634f..a4c39a352219 100644
--- a/board/freescale/mx23evk/spl_boot.c
+++ b/board/freescale/mx23evk/spl_boot.c
@@ -6,7 +6,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <config.h>
 #include <asm/io.h>
 #include <asm/arch/iomux-mx23.h>
diff --git a/board/freescale/mx28evk/iomux.c b/board/freescale/mx28evk/iomux.c
index cc0c85885446..b84b045bd1f5 100644
--- a/board/freescale/mx28evk/iomux.c
+++ b/board/freescale/mx28evk/iomux.c
@@ -6,7 +6,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <config.h>
 #include <asm/io.h>
 #include <asm/arch/iomux-mx28.h>
diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c
index 88c3bf36089c..ada572912dad 100644
--- a/board/freescale/mx28evk/mx28evk.c
+++ b/board/freescale/mx28evk/mx28evk.c
@@ -11,7 +11,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index 95edb3599443..694568423026 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -3,7 +3,7 @@
  * (C) Copyright 2009 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
index d418cd8f4c0d..2d8f5da9906f 100644
--- a/board/freescale/mx53loco/mx53loco.c
+++ b/board/freescale/mx53loco/mx53loco.c
@@ -4,7 +4,7 @@
  * Jason Liu <r64343@freescale.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <log.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/mx6memcal/mx6memcal.c b/board/freescale/mx6memcal/mx6memcal.c
index 0dfd7dec9efb..17095c34e926 100644
--- a/board/freescale/mx6memcal/mx6memcal.c
+++ b/board/freescale/mx6memcal/mx6memcal.c
@@ -7,7 +7,6 @@
  * Author: Eric Nelson <eric@nelint.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/mx6memcal/spl.c b/board/freescale/mx6memcal/spl.c
index 61d0ca3408f0..bc9c4259f07b 100644
--- a/board/freescale/mx6memcal/spl.c
+++ b/board/freescale/mx6memcal/spl.c
@@ -4,7 +4,6 @@
  * Author: Eric Nelson <eric@nelint.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c b/board/freescale/mx6sabreauto/mx6sabreauto.c
index 77e92006131a..e782543c0fae 100644
--- a/board/freescale/mx6sabreauto/mx6sabreauto.c
+++ b/board/freescale/mx6sabreauto/mx6sabreauto.c
@@ -5,7 +5,6 @@
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
 
-#include <common.h>
 #include <image.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c
index e9ac57118b01..d37d8a4136f6 100644
--- a/board/freescale/mx6slevk/mx6slevk.c
+++ b/board/freescale/mx6slevk/mx6slevk.c
@@ -21,7 +21,6 @@
 #include <asm/io.h>
 #include <asm/sections.h>
 #include <linux/sizes.h>
-#include <common.h>
 #include <fsl_esdhc_imx.h>
 #include <i2c.h>
 #include <mmc.h>
diff --git a/board/freescale/mx6sllevk/mx6sllevk.c b/board/freescale/mx6sllevk/mx6sllevk.c
index 10a00095affb..7114444fc3e6 100644
--- a/board/freescale/mx6sllevk/mx6sllevk.c
+++ b/board/freescale/mx6sllevk/mx6sllevk.c
@@ -15,7 +15,6 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/io.h>
-#include <common.h>
 #include <linux/sizes.h>
 #include <mmc.h>
 #include <power/pmic.h>
diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
index 84cc51e9cac7..6176f7382389 100644
--- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
+++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
@@ -20,7 +20,7 @@
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/sizes.h>
-#include <common.h>
+#include <config.h>
 #include <fsl_esdhc_imx.h>
 #include <miiphy.h>
 #include <netdev.h>
diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
index e7958df40243..e3353feec688 100644
--- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c
+++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
@@ -21,7 +21,6 @@
 #include <env.h>
 #include <linux/delay.h>
 #include <linux/sizes.h>
-#include <common.h>
 #include <fsl_esdhc_imx.h>
 #include <mmc.h>
 #include <i2c.h>
diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index 534b16cec7ae..6b0665a1067f 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -19,7 +19,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/io.h>
 #include <asm/sections.h>
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <fsl_esdhc_imx.h>
 #include <i2c.h>
diff --git a/board/freescale/mx6ullevk/mx6ullevk.c b/board/freescale/mx6ullevk/mx6ullevk.c
index de45f8b1d24b..189eddefea3f 100644
--- a/board/freescale/mx6ullevk/mx6ullevk.c
+++ b/board/freescale/mx6ullevk/mx6ullevk.c
@@ -15,7 +15,7 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/io.h>
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <fsl_esdhc_imx.h>
 #include <linux/sizes.h>
diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c
index 4fe23b51cd1b..3db167c0dad3 100644
--- a/board/freescale/mx7dsabresd/mx7dsabresd.c
+++ b/board/freescale/mx7dsabresd/mx7dsabresd.c
@@ -15,7 +15,6 @@
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/sizes.h>
-#include <common.h>
 #include <fsl_esdhc_imx.h>
 #include <mmc.h>
 #include <miiphy.h>
diff --git a/board/freescale/mx7ulp_evk/mx7ulp_evk.c b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
index 01e32136532d..af68e57854e2 100644
--- a/board/freescale/mx7ulp_evk/mx7ulp_evk.c
+++ b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <fdt_support.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/p1010rdb/ddr.c b/board/freescale/p1010rdb/ddr.c
index b423ec8e218a..43a0936bc9af 100644
--- a/board/freescale/p1010rdb/ddr.c
+++ b/board/freescale/p1010rdb/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
diff --git a/board/freescale/p1010rdb/law.c b/board/freescale/p1010rdb/law.c
index 13fc2fa2e38c..a7d80f285211 100644
--- a/board/freescale/p1010rdb/law.c
+++ b/board/freescale/p1010rdb/law.c
@@ -3,7 +3,7 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/p1010rdb/p1010rdb.c b/board/freescale/p1010rdb/p1010rdb.c
index d32274b24812..ab0031440ae8 100644
--- a/board/freescale/p1010rdb/p1010rdb.c
+++ b/board/freescale/p1010rdb/p1010rdb.c
@@ -4,7 +4,7 @@
  * Copyright 2020 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/freescale/p1010rdb/spl.c b/board/freescale/p1010rdb/spl.c
index e450f626e0ad..fc26cef2cc8e 100644
--- a/board/freescale/p1010rdb/spl.c
+++ b/board/freescale/p1010rdb/spl.c
@@ -2,7 +2,7 @@
 /* Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <console.h>
 #include <env.h>
diff --git a/board/freescale/p1010rdb/spl_minimal.c b/board/freescale/p1010rdb/spl_minimal.c
index 8f0dec4c0ab7..8cd79c6fb5f6 100644
--- a/board/freescale/p1010rdb/spl_minimal.c
+++ b/board/freescale/p1010rdb/spl_minimal.c
@@ -2,7 +2,7 @@
 /*
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <init.h>
 #include <mpc85xx.h>
diff --git a/board/freescale/p1010rdb/tlb.c b/board/freescale/p1010rdb/tlb.c
index 265cde81a3c2..44acebaa2bbd 100644
--- a/board/freescale/p1010rdb/tlb.c
+++ b/board/freescale/p1010rdb/tlb.c
@@ -3,8 +3,9 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/p1_p2_rdb_pc/ddr.c b/board/freescale/p1_p2_rdb_pc/ddr.c
index 5f16779abaad..8622a5a610a5 100644
--- a/board/freescale/p1_p2_rdb_pc/ddr.c
+++ b/board/freescale/p1_p2_rdb_pc/ddr.c
@@ -3,11 +3,12 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <vsprintf.h>
+#include <linux/string.h>
 #include <asm/mmu.h>
 #include <asm/immap_85xx.h>
-#include <asm/processor.h>
+#include <asm/ppc.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/io.h>
diff --git a/board/freescale/p1_p2_rdb_pc/law.c b/board/freescale/p1_p2_rdb_pc/law.c
index 6085984eab43..49594070b836 100644
--- a/board/freescale/p1_p2_rdb_pc/law.c
+++ b/board/freescale/p1_p2_rdb_pc/law.c
@@ -3,7 +3,7 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
index 602b7f0156ba..399ff7207229 100644
--- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
+++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
@@ -4,7 +4,7 @@
  * Copyright 2020 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <env.h>
 #include <hang.h>
diff --git a/board/freescale/p1_p2_rdb_pc/spl.c b/board/freescale/p1_p2_rdb_pc/spl.c
index 6c3f82849e3a..b07f481fbf9d 100644
--- a/board/freescale/p1_p2_rdb_pc/spl.c
+++ b/board/freescale/p1_p2_rdb_pc/spl.c
@@ -3,7 +3,7 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <console.h>
 #include <env.h>
diff --git a/board/freescale/p1_p2_rdb_pc/spl_minimal.c b/board/freescale/p1_p2_rdb_pc/spl_minimal.c
index f9e0b5b25ab7..511bcf5506b4 100644
--- a/board/freescale/p1_p2_rdb_pc/spl_minimal.c
+++ b/board/freescale/p1_p2_rdb_pc/spl_minimal.c
@@ -3,7 +3,7 @@
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <init.h>
 #include <ns16550.h>
diff --git a/board/freescale/p1_p2_rdb_pc/tlb.c b/board/freescale/p1_p2_rdb_pc/tlb.c
index 94773969e9d8..ae0b7adbe544 100644
--- a/board/freescale/p1_p2_rdb_pc/tlb.c
+++ b/board/freescale/p1_p2_rdb_pc/tlb.c
@@ -3,8 +3,9 @@
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/p2041rdb/cpld.c b/board/freescale/p2041rdb/cpld.c
index a1908b8a5712..915a8b994d5c 100644
--- a/board/freescale/p2041rdb/cpld.c
+++ b/board/freescale/p2041rdb/cpld.c
@@ -11,7 +11,6 @@
  * CPLD_BASE - The virtual address of the base of the CPLD register map
  */
 
-#include <common.h>
 #include <command.h>
 #include <asm/io.h>
 
diff --git a/board/freescale/p2041rdb/ddr.c b/board/freescale/p2041rdb/ddr.c
index 910058cefe16..b8b765a85ef5 100644
--- a/board/freescale/p2041rdb/ddr.c
+++ b/board/freescale/p2041rdb/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2011 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
 #include <init.h>
diff --git a/board/freescale/p2041rdb/eth.c b/board/freescale/p2041rdb/eth.c
index c0d05539c5c0..658508667776 100644
--- a/board/freescale/p2041rdb/eth.c
+++ b/board/freescale/p2041rdb/eth.c
@@ -12,7 +12,7 @@
  * and serdes protocol selection.
  */
 
-#include <common.h>
+#include <config.h>
 #include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
diff --git a/board/freescale/p2041rdb/p2041rdb.c b/board/freescale/p2041rdb/p2041rdb.c
index 575259b19c03..d5b71f784303 100644
--- a/board/freescale/p2041rdb/p2041rdb.c
+++ b/board/freescale/p2041rdb/p2041rdb.c
@@ -3,7 +3,7 @@
  * Copyright 2011,2012 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <command.h>
 #include <env.h>
diff --git a/board/freescale/t102xrdb/cpld.c b/board/freescale/t102xrdb/cpld.c
index 17a6226cafc7..cc933ccd5440 100644
--- a/board/freescale/t102xrdb/cpld.c
+++ b/board/freescale/t102xrdb/cpld.c
@@ -7,7 +7,7 @@
  * The following macros need to be defined:
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <asm/io.h>
 #include "cpld.h"
diff --git a/board/freescale/t102xrdb/ddr.c b/board/freescale/t102xrdb/ddr.c
index 1b4173989925..f8d504fb3c73 100644
--- a/board/freescale/t102xrdb/ddr.c
+++ b/board/freescale/t102xrdb/ddr.c
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <hwconfig.h>
 #include <init.h>
diff --git a/board/freescale/t102xrdb/eth_t102xrdb.c b/board/freescale/t102xrdb/eth_t102xrdb.c
index ad78f72f98c8..7185a0abd520 100644
--- a/board/freescale/t102xrdb/eth_t102xrdb.c
+++ b/board/freescale/t102xrdb/eth_t102xrdb.c
@@ -5,7 +5,7 @@
  * Shengzhou Liu <Shengzhou.Liu@freescale.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <fdt_support.h>
 #include <net.h>
diff --git a/board/freescale/t102xrdb/law.c b/board/freescale/t102xrdb/law.c
index d636bef325f0..81caa961897a 100644
--- a/board/freescale/t102xrdb/law.c
+++ b/board/freescale/t102xrdb/law.c
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/t102xrdb/spl.c b/board/freescale/t102xrdb/spl.c
index 9faf259af74d..de6cdda194e7 100644
--- a/board/freescale/t102xrdb/spl.c
+++ b/board/freescale/t102xrdb/spl.c
@@ -2,7 +2,7 @@
 /* Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
diff --git a/board/freescale/t102xrdb/t102xrdb.c b/board/freescale/t102xrdb/t102xrdb.c
index 73f9d3ac72e7..0a29e27b42cd 100644
--- a/board/freescale/t102xrdb/t102xrdb.c
+++ b/board/freescale/t102xrdb/t102xrdb.c
@@ -4,7 +4,7 @@
  * Copyright 2020-2023 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
diff --git a/board/freescale/t102xrdb/tlb.c b/board/freescale/t102xrdb/tlb.c
index 2519a9e4dbee..008bd6e72b7b 100644
--- a/board/freescale/t102xrdb/tlb.c
+++ b/board/freescale/t102xrdb/tlb.c
@@ -3,8 +3,9 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t104xrdb/cpld.c b/board/freescale/t104xrdb/cpld.c
index 9ac57bbd8300..c2d526ae15ac 100644
--- a/board/freescale/t104xrdb/cpld.c
+++ b/board/freescale/t104xrdb/cpld.c
@@ -10,7 +10,7 @@
  * CFG_SYS_CPLD_BASE-The virtual address of the base of the CPLD register map
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <asm/io.h>
 
diff --git a/board/freescale/t104xrdb/ddr.c b/board/freescale/t104xrdb/ddr.c
index 02ddb6614158..bab684860dad 100644
--- a/board/freescale/t104xrdb/ddr.c
+++ b/board/freescale/t104xrdb/ddr.c
@@ -4,7 +4,7 @@
  * Copyright 2021 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <hwconfig.h>
 #include <init.h>
diff --git a/board/freescale/t104xrdb/eth.c b/board/freescale/t104xrdb/eth.c
index 5eca9386f6eb..d5c084e319d4 100644
--- a/board/freescale/t104xrdb/eth.c
+++ b/board/freescale/t104xrdb/eth.c
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <net.h>
 #include <netdev.h>
 #include <asm/fsl_serdes.h>
diff --git a/board/freescale/t104xrdb/law.c b/board/freescale/t104xrdb/law.c
index a0d6eb5b2707..d34641c23970 100644
--- a/board/freescale/t104xrdb/law.c
+++ b/board/freescale/t104xrdb/law.c
@@ -3,7 +3,7 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/t104xrdb/spl.c b/board/freescale/t104xrdb/spl.c
index dd8283f3c60a..e02a1f95d4cb 100644
--- a/board/freescale/t104xrdb/spl.c
+++ b/board/freescale/t104xrdb/spl.c
@@ -2,7 +2,7 @@
 /* Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
diff --git a/board/freescale/t104xrdb/t104xrdb.c b/board/freescale/t104xrdb/t104xrdb.c
index b30804927167..ef4dfef4965c 100644
--- a/board/freescale/t104xrdb/t104xrdb.c
+++ b/board/freescale/t104xrdb/t104xrdb.c
@@ -4,7 +4,7 @@
  * Copyright 2023 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
diff --git a/board/freescale/t104xrdb/tlb.c b/board/freescale/t104xrdb/tlb.c
index 10be580b8136..24bc83f756bd 100644
--- a/board/freescale/t104xrdb/tlb.c
+++ b/board/freescale/t104xrdb/tlb.c
@@ -3,8 +3,9 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t208xqds/ddr.c b/board/freescale/t208xqds/ddr.c
index 56471b3988b9..9076fbba10af 100644
--- a/board/freescale/t208xqds/ddr.c
+++ b/board/freescale/t208xqds/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
 #include <init.h>
diff --git a/board/freescale/t208xqds/eth_t208xqds.c b/board/freescale/t208xqds/eth_t208xqds.c
index 569b193eab78..9f299227e295 100644
--- a/board/freescale/t208xqds/eth_t208xqds.c
+++ b/board/freescale/t208xqds/eth_t208xqds.c
@@ -6,7 +6,7 @@
  * Shengzhou Liu <Shengzhou.Liu@freescale.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <fdt_support.h>
 #include <log.h>
diff --git a/board/freescale/t208xqds/law.c b/board/freescale/t208xqds/law.c
index 3cdd4937684e..287f4650e058 100644
--- a/board/freescale/t208xqds/law.c
+++ b/board/freescale/t208xqds/law.c
@@ -6,7 +6,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/t208xqds/spl.c b/board/freescale/t208xqds/spl.c
index 8866be54a661..44ad4e68d9f6 100644
--- a/board/freescale/t208xqds/spl.c
+++ b/board/freescale/t208xqds/spl.c
@@ -2,7 +2,7 @@
 /* Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
diff --git a/board/freescale/t208xqds/t208xqds.c b/board/freescale/t208xqds/t208xqds.c
index 8be55e52e5f6..5e71da0e163f 100644
--- a/board/freescale/t208xqds/t208xqds.c
+++ b/board/freescale/t208xqds/t208xqds.c
@@ -4,7 +4,7 @@
  * Copyright 2020 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <command.h>
 #include <env.h>
diff --git a/board/freescale/t208xqds/tlb.c b/board/freescale/t208xqds/tlb.c
index 3d220afc16e6..f99d51c8cd76 100644
--- a/board/freescale/t208xqds/tlb.c
+++ b/board/freescale/t208xqds/tlb.c
@@ -6,8 +6,9 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t208xrdb/cpld.c b/board/freescale/t208xrdb/cpld.c
index 933fa0decc31..d2226af62786 100644
--- a/board/freescale/t208xrdb/cpld.c
+++ b/board/freescale/t208xrdb/cpld.c
@@ -5,8 +5,9 @@
  * Freescale T2080RDB board-specific CPLD controlling supports.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
+#include <asm/io.h>
 #include "cpld.h"
 
 u8 cpld_read(unsigned int reg)
diff --git a/board/freescale/t208xrdb/ddr.c b/board/freescale/t208xrdb/ddr.c
index 1fbab36e1a20..fe98f62668a7 100644
--- a/board/freescale/t208xrdb/ddr.c
+++ b/board/freescale/t208xrdb/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
 #include <init.h>
diff --git a/board/freescale/t208xrdb/eth_t208xrdb.c b/board/freescale/t208xrdb/eth_t208xrdb.c
index e4592eac1530..5223eccb2804 100644
--- a/board/freescale/t208xrdb/eth_t208xrdb.c
+++ b/board/freescale/t208xrdb/eth_t208xrdb.c
@@ -6,7 +6,6 @@
  * Shengzhou Liu <Shengzhou.Liu@freescale.com>
  */
 
-#include <common.h>
 #include <command.h>
 #include <fdt_support.h>
 #include <net.h>
diff --git a/board/freescale/t208xrdb/law.c b/board/freescale/t208xrdb/law.c
index 53a13694506f..e1f570a89358 100644
--- a/board/freescale/t208xrdb/law.c
+++ b/board/freescale/t208xrdb/law.c
@@ -6,7 +6,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/t208xrdb/spl.c b/board/freescale/t208xrdb/spl.c
index 130cb8847c0f..df3b9c6fe405 100644
--- a/board/freescale/t208xrdb/spl.c
+++ b/board/freescale/t208xrdb/spl.c
@@ -2,7 +2,7 @@
 /* Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
diff --git a/board/freescale/t208xrdb/t208xrdb.c b/board/freescale/t208xrdb/t208xrdb.c
index e33e5d082d80..d93edf007ad9 100644
--- a/board/freescale/t208xrdb/t208xrdb.c
+++ b/board/freescale/t208xrdb/t208xrdb.c
@@ -4,7 +4,7 @@
  * Copyright 2021-2023 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
diff --git a/board/freescale/t208xrdb/tlb.c b/board/freescale/t208xrdb/tlb.c
index 688a208c621f..df5831541f38 100644
--- a/board/freescale/t208xrdb/tlb.c
+++ b/board/freescale/t208xrdb/tlb.c
@@ -6,8 +6,9 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t4rdb/cpld.c b/board/freescale/t4rdb/cpld.c
index 8b1012086ec7..cd14d5895f50 100644
--- a/board/freescale/t4rdb/cpld.c
+++ b/board/freescale/t4rdb/cpld.c
@@ -14,7 +14,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <asm/io.h>
 
diff --git a/board/freescale/t4rdb/ddr.c b/board/freescale/t4rdb/ddr.c
index 57cbde154f0e..5b60b50c672b 100644
--- a/board/freescale/t4rdb/ddr.c
+++ b/board/freescale/t4rdb/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <hwconfig.h>
 #include <init.h>
diff --git a/board/freescale/t4rdb/eth.c b/board/freescale/t4rdb/eth.c
index 2e52543847bf..e7646365d7d4 100644
--- a/board/freescale/t4rdb/eth.c
+++ b/board/freescale/t4rdb/eth.c
@@ -5,7 +5,7 @@
  * Chunhe Lan <Chunhe.Lan@freescale.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <fdt_support.h>
 #include <net.h>
diff --git a/board/freescale/t4rdb/law.c b/board/freescale/t4rdb/law.c
index 43eeb884e2ff..c43ac0f30d74 100644
--- a/board/freescale/t4rdb/law.c
+++ b/board/freescale/t4rdb/law.c
@@ -3,7 +3,7 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/freescale/t4rdb/spl.c b/board/freescale/t4rdb/spl.c
index 779457d29640..9d2472dec250 100644
--- a/board/freescale/t4rdb/spl.c
+++ b/board/freescale/t4rdb/spl.c
@@ -5,7 +5,7 @@
  * Author: Chunhe Lan <Chunhe.Lan@freescale.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <console.h>
 #include <env_internal.h>
diff --git a/board/freescale/t4rdb/t4240rdb.c b/board/freescale/t4rdb/t4240rdb.c
index ab717769ed5c..5cacfd273803 100644
--- a/board/freescale/t4rdb/t4240rdb.c
+++ b/board/freescale/t4rdb/t4240rdb.c
@@ -4,7 +4,7 @@
  * Copyright 2023 NXP
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <env.h>
 #include <fdt_support.h>
diff --git a/board/freescale/t4rdb/tlb.c b/board/freescale/t4rdb/tlb.c
index f5af893c2d9d..1fb9d41d52b1 100644
--- a/board/freescale/t4rdb/tlb.c
+++ b/board/freescale/t4rdb/tlb.c
@@ -3,8 +3,9 @@
  * Copyright 2014 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/vf610twr/vf610twr.c b/board/freescale/vf610twr/vf610twr.c
index 98cb0140ad02..80a798af9cb6 100644
--- a/board/freescale/vf610twr/vf610twr.c
+++ b/board/freescale/vf610twr/vf610twr.c
@@ -3,7 +3,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 062/149] board: friendlyarm: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (59 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 061/149] board: freescale: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-08 17:39   ` Stefan Bosch
  2024-05-01  2:41 ` [PATCH 063/149] board: gardena: " Tom Rini
                   ` (88 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Stefan Bosch, Caleb Connolly, Eugen Hristev, Igor Prusov,
	Patrice Chotard

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Bosch <stefan_b@posteo.net>
Cc: Caleb Connolly <caleb.connolly@linaro.org>
Cc: Eugen Hristev <eugen.hristev@collabora.com>
Cc: Igor Prusov <ivprusov@salutedevices.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
---
 board/friendlyarm/nanopi2/board.c   | 1 -
 board/friendlyarm/nanopi2/hwrev.c   | 1 -
 board/friendlyarm/nanopi2/lcds.c    | 1 -
 board/friendlyarm/nanopi2/onewire.c | 1 -
 4 files changed, 4 deletions(-)

diff --git a/board/friendlyarm/nanopi2/board.c b/board/friendlyarm/nanopi2/board.c
index 393c5a447d6f..c8cbc5a15fa8 100644
--- a/board/friendlyarm/nanopi2/board.c
+++ b/board/friendlyarm/nanopi2/board.c
@@ -5,7 +5,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <fdt_support.h>
 #include <log.h>
diff --git a/board/friendlyarm/nanopi2/hwrev.c b/board/friendlyarm/nanopi2/hwrev.c
index 585e08c944f9..cd9c2414a320 100644
--- a/board/friendlyarm/nanopi2/hwrev.c
+++ b/board/friendlyarm/nanopi2/hwrev.c
@@ -5,7 +5,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <i2c.h>
 #include <asm/io.h>
 
diff --git a/board/friendlyarm/nanopi2/lcds.c b/board/friendlyarm/nanopi2/lcds.c
index 7303e53af925..b37367300cf0 100644
--- a/board/friendlyarm/nanopi2/lcds.c
+++ b/board/friendlyarm/nanopi2/lcds.c
@@ -4,7 +4,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
diff --git a/board/friendlyarm/nanopi2/onewire.c b/board/friendlyarm/nanopi2/onewire.c
index 4f0b1e33c2df..31cc871330ca 100644
--- a/board/friendlyarm/nanopi2/onewire.c
+++ b/board/friendlyarm/nanopi2/onewire.c
@@ -5,7 +5,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
 #include <asm/io.h>
 #include <asm/arch/clk.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 063/149] board: gardena: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (60 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 062/149] board: friendlyarm: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 064/149] board: gateworks: " Tom Rini
                   ` (87 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Stefan Roese

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Roese <sr@denx.de>
---
 board/gardena/smart-gateway-at91sam/board.c | 2 +-
 board/gardena/smart-gateway-at91sam/spl.c   | 2 +-
 board/gardena/smart-gateway-mt7688/board.c  | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/board/gardena/smart-gateway-at91sam/board.c b/board/gardena/smart-gateway-at91sam/board.c
index d9dfb256b32a..2b5b2844fbd2 100644
--- a/board/gardena/smart-gateway-at91sam/board.c
+++ b/board/gardena/smart-gateway-at91sam/board.c
@@ -4,7 +4,7 @@
  * Copyright (C) 2019 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/gardena/smart-gateway-at91sam/spl.c b/board/gardena/smart-gateway-at91sam/spl.c
index 2807c4e31141..fb3ec48f9c52 100644
--- a/board/gardena/smart-gateway-at91sam/spl.c
+++ b/board/gardena/smart-gateway-at91sam/spl.c
@@ -4,7 +4,7 @@
  * Copyright (C) 2019 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <nand.h>
 #include <spl.h>
 #include <asm/arch/at91sam9x5_matrix.h>
diff --git a/board/gardena/smart-gateway-mt7688/board.c b/board/gardena/smart-gateway-mt7688/board.c
index 0cfde91c94c6..c6b14bed41fb 100644
--- a/board/gardena/smart-gateway-mt7688/board.c
+++ b/board/gardena/smart-gateway-mt7688/board.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <env_internal.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 064/149] board: gateworks: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (61 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 063/149] board: gardena: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01 16:06   ` Tim Harvey
  2024-05-01  2:41 ` [PATCH 065/149] board: gdsys: " Tom Rini
                   ` (86 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Tim Harvey

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/gw_ventana/common.c           | 1 -
 board/gateworks/gw_ventana/eeprom.c           | 1 -
 board/gateworks/gw_ventana/gw_ventana.c       | 1 -
 board/gateworks/gw_ventana/gw_ventana_spl.c   | 2 +-
 board/gateworks/venice/eeprom.c               | 1 -
 board/gateworks/venice/lpddr4_timing_imx8mm.c | 1 -
 board/gateworks/venice/spl.c                  | 1 -
 7 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c
index 74328b2e1b31..891d1b5ddcaa 100644
--- a/board/gateworks/gw_ventana/common.c
+++ b/board/gateworks/gw_ventana/common.c
@@ -5,7 +5,6 @@
  * Author: Tim Harvey <tharvey@gateworks.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <fsl_esdhc_imx.h>
 #include <hwconfig.h>
diff --git a/board/gateworks/gw_ventana/eeprom.c b/board/gateworks/gw_ventana/eeprom.c
index e622a9ba9e4d..b37f19722491 100644
--- a/board/gateworks/gw_ventana/eeprom.c
+++ b/board/gateworks/gw_ventana/eeprom.c
@@ -5,7 +5,6 @@
  */
 
 #include <command.h>
-#include <common.h>
 #include <gsc.h>
 #include <hexdump.h>
 #include <i2c.h>
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 683def7e9f71..21a908c20dd5 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -6,7 +6,6 @@
  */
 
 #include <command.h>
-#include <common.h>
 #include <fdt_support.h>
 #include <gsc.h>
 #include <hwconfig.h>
diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c
index 2f046c9c0b3e..3de4727b2edf 100644
--- a/board/gateworks/gw_ventana/gw_ventana_spl.c
+++ b/board/gateworks/gw_ventana/gw_ventana_spl.c
@@ -4,7 +4,7 @@
  * Author: Tim Harvey <tharvey@gateworks.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <gsc.h>
 #include <hang.h>
diff --git a/board/gateworks/venice/eeprom.c b/board/gateworks/venice/eeprom.c
index 241be4ee630b..afaabf348793 100644
--- a/board/gateworks/venice/eeprom.c
+++ b/board/gateworks/venice/eeprom.c
@@ -3,7 +3,6 @@
  * Copyright 2021 Gateworks Corporation
  */
 
-#include <common.h>
 #include <gsc.h>
 #include <hexdump.h>
 #include <i2c.h>
diff --git a/board/gateworks/venice/lpddr4_timing_imx8mm.c b/board/gateworks/venice/lpddr4_timing_imx8mm.c
index 78b431dc2844..3f2c090a94fc 100644
--- a/board/gateworks/venice/lpddr4_timing_imx8mm.c
+++ b/board/gateworks/venice/lpddr4_timing_imx8mm.c
@@ -6,7 +6,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
index b0a315ba9531..f10d310a46d4 100644
--- a/board/gateworks/venice/spl.c
+++ b/board/gateworks/venice/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2021 Gateworks Corporation
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <i2c.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 065/149] board: gdsys: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (62 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 064/149] board: gateworks: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 066/149] board: ge: " Tom Rini
                   ` (85 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Mario Six

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Mario Six <mario.six@gdsys.cc>
---
 board/gdsys/a38x/controlcenterdc.c | 2 +-
 board/gdsys/a38x/dt_helpers.c      | 1 -
 board/gdsys/a38x/hre.c             | 1 -
 board/gdsys/a38x/hydra.c           | 2 +-
 board/gdsys/a38x/ihs_phys.c        | 1 -
 board/gdsys/a38x/keyprogram.c      | 1 -
 board/gdsys/common/cmd_ioloop.c    | 1 -
 board/gdsys/common/dp501.c         | 1 -
 board/gdsys/common/ihs_mdio.c      | 1 -
 board/gdsys/common/ioep-fpga.c     | 1 -
 board/gdsys/common/osd.c           | 1 -
 board/gdsys/common/osd_cmd.c       | 1 -
 board/gdsys/mpc8308/gazerbeam.c    | 1 -
 board/gdsys/mpc8308/mpc8308.c      | 1 -
 board/gdsys/mpc8308/sdram.c        | 2 +-
 15 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/board/gdsys/a38x/controlcenterdc.c b/board/gdsys/a38x/controlcenterdc.c
index 0f620c2d9172..4abb3e451285 100644
--- a/board/gdsys/a38x/controlcenterdc.c
+++ b/board/gdsys/a38x/controlcenterdc.c
@@ -4,7 +4,7 @@
  * Copyright (C) 2016 Mario Six <mario.six@gdsys.cc>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <event.h>
diff --git a/board/gdsys/a38x/dt_helpers.c b/board/gdsys/a38x/dt_helpers.c
index 61d30c2e6373..a12e115c72cb 100644
--- a/board/gdsys/a38x/dt_helpers.c
+++ b/board/gdsys/a38x/dt_helpers.c
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <fdt_support.h>
 #include <asm-generic/gpio.h>
diff --git a/board/gdsys/a38x/hre.c b/board/gdsys/a38x/hre.c
index d16233ed78ee..f303793b63b7 100644
--- a/board/gdsys/a38x/hre.c
+++ b/board/gdsys/a38x/hre.c
@@ -4,7 +4,6 @@
  * Reinhard Pfau, Guntermann & Drunck GmbH, reinhard.pfau@gdsys.cc
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <fs.h>
diff --git a/board/gdsys/a38x/hydra.c b/board/gdsys/a38x/hydra.c
index 495a97691881..970d508ff328 100644
--- a/board/gdsys/a38x/hydra.c
+++ b/board/gdsys/a38x/hydra.c
@@ -1,8 +1,8 @@
-#include <common.h>
 #include <command.h>
 #include <console.h> /* ctrlc */
 #include <pci.h>
 #include <asm/io.h>
+#include <mach/soc.h>
 
 #include "hydra.h"
 
diff --git a/board/gdsys/a38x/ihs_phys.c b/board/gdsys/a38x/ihs_phys.c
index 60a5c37aeffb..690a29690b9c 100644
--- a/board/gdsys/a38x/ihs_phys.c
+++ b/board/gdsys/a38x/ihs_phys.c
@@ -1,4 +1,3 @@
-#include <common.h>
 #include <dm.h>
 #include <miiphy.h>
 #include <asm-generic/gpio.h>
diff --git a/board/gdsys/a38x/keyprogram.c b/board/gdsys/a38x/keyprogram.c
index 7020fae18941..15c36e22684f 100644
--- a/board/gdsys/a38x/keyprogram.c
+++ b/board/gdsys/a38x/keyprogram.c
@@ -4,7 +4,6 @@
  * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
  */
 
-#include <common.h>
 #include <command.h>
 #include <env.h>
 #include <tpm-v1.h>
diff --git a/board/gdsys/common/cmd_ioloop.c b/board/gdsys/common/cmd_ioloop.c
index 1412421a0218..fb6313f01975 100644
--- a/board/gdsys/common/cmd_ioloop.c
+++ b/board/gdsys/common/cmd_ioloop.c
@@ -4,7 +4,6 @@
  * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
  */
 
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <linux/bitops.h>
diff --git a/board/gdsys/common/dp501.c b/board/gdsys/common/dp501.c
index 9ca69ebcbbe7..7698e76b5248 100644
--- a/board/gdsys/common/dp501.c
+++ b/board/gdsys/common/dp501.c
@@ -8,7 +8,6 @@
 
 #ifdef CONFIG_GDSYS_LEGACY_DRIVERS
 
-#include <common.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <i2c.h>
diff --git a/board/gdsys/common/ihs_mdio.c b/board/gdsys/common/ihs_mdio.c
index 5f1215e9e8a6..a814566beaf0 100644
--- a/board/gdsys/common/ihs_mdio.c
+++ b/board/gdsys/common/ihs_mdio.c
@@ -4,7 +4,6 @@
  * Dirk Eibach,  Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
  */
 
-#include <common.h>
 #include <linux/delay.h>
 
 #include <miiphy.h>
diff --git a/board/gdsys/common/ioep-fpga.c b/board/gdsys/common/ioep-fpga.c
index 7292d7ab5a41..f01b48b5c8e9 100644
--- a/board/gdsys/common/ioep-fpga.c
+++ b/board/gdsys/common/ioep-fpga.c
@@ -6,7 +6,6 @@
 
 #ifdef CONFIG_GDSYS_LEGACY_DRIVERS
 
-#include <common.h>
 
 #include <gdsys_fpga.h>
 #include <linux/bitops.h>
diff --git a/board/gdsys/common/osd.c b/board/gdsys/common/osd.c
index dc548efbc7a4..bd9c5ca99698 100644
--- a/board/gdsys/common/osd.c
+++ b/board/gdsys/common/osd.c
@@ -6,7 +6,6 @@
 
 #ifdef CONFIG_GDSYS_LEGACY_DRIVERS
 
-#include <common.h>
 #include <command.h>
 #include <i2c.h>
 #include <malloc.h>
diff --git a/board/gdsys/common/osd_cmd.c b/board/gdsys/common/osd_cmd.c
index 6a9c0b4c24f0..39e64f5f2eb3 100644
--- a/board/gdsys/common/osd_cmd.c
+++ b/board/gdsys/common/osd_cmd.c
@@ -9,7 +9,6 @@
  * Dirk Eibach,  Guntermann & Drunck GmbH, eibach@gdsys.de
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <hexdump.h>
diff --git a/board/gdsys/mpc8308/gazerbeam.c b/board/gdsys/mpc8308/gazerbeam.c
index cc608c4ac434..05e4d84460ae 100644
--- a/board/gdsys/mpc8308/gazerbeam.c
+++ b/board/gdsys/mpc8308/gazerbeam.c
@@ -5,7 +5,6 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <env.h>
diff --git a/board/gdsys/mpc8308/mpc8308.c b/board/gdsys/mpc8308/mpc8308.c
index 0f90f8ad327b..42c45ecedcea 100644
--- a/board/gdsys/mpc8308/mpc8308.c
+++ b/board/gdsys/mpc8308/mpc8308.c
@@ -4,7 +4,6 @@
  * Dirk Eibach,  Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
  */
 
-#include <common.h>
 #include <command.h>
 #include <init.h>
 #include <asm/processor.h>
diff --git a/board/gdsys/mpc8308/sdram.c b/board/gdsys/mpc8308/sdram.c
index 4fac146353da..2933de0f3048 100644
--- a/board/gdsys/mpc8308/sdram.c
+++ b/board/gdsys/mpc8308/sdram.c
@@ -13,7 +13,7 @@
 
 #ifndef CONFIG_MPC83XX_SDRAM
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <mpc83xx.h>
 #include <spd_sdram.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 066/149] board: ge: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (63 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 065/149] board: gdsys: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01 23:58   ` [PATCHv2 " Tom Rini
  2024-05-01  2:41 ` [PATCH 067/149] board: google: " Tom Rini
                   ` (84 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Huan 'Kitty' Wang, Ian Ray, Martyn Welch

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: "Huan 'Kitty' Wang" <HuanWang@gehealthcare.com>
Cc: Ian Ray <ian.ray@gehealthcare.com>
Cc: Martyn Welch <martyn.welch@collabora.com>
---
 board/ge/b1x5v2/b1x5v2.c         | 1 -
 board/ge/common/ge_rtc.c         | 1 -
 board/ge/mx53ppd/mx53ppd.c       | 1 -
 board/ge/mx53ppd/mx53ppd_video.c | 1 -
 4 files changed, 4 deletions(-)

diff --git a/board/ge/b1x5v2/b1x5v2.c b/board/ge/b1x5v2/b1x5v2.c
index a2cbd1512e92..031773bc5ef3 100644
--- a/board/ge/b1x5v2/b1x5v2.c
+++ b/board/ge/b1x5v2/b1x5v2.c
@@ -17,7 +17,6 @@
 #include <asm/io.h>
 #include <asm/mach-imx/video.h>
 #include <command.h>
-#include <common.h>
 #include <i2c.h>
 #include <input.h>
 #include <ipu_pixfmt.h>
diff --git a/board/ge/common/ge_rtc.c b/board/ge/common/ge_rtc.c
index 6437afc7bd0a..5c62ecca8c89 100644
--- a/board/ge/common/ge_rtc.c
+++ b/board/ge/common/ge_rtc.c
@@ -3,7 +3,6 @@
  * Copyright 2017 General Electric Company
  */
 
-#include <common.h>
 #include <env.h>
 #include <dm/uclass.h>
 #include <rtc.h>
diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c
index cc462d53da6a..9396d43f8add 100644
--- a/board/ge/mx53ppd/mx53ppd.c
+++ b/board/ge/mx53ppd/mx53ppd.c
@@ -8,7 +8,6 @@
  * Jason Liu <r64343@freescale.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/ge/mx53ppd/mx53ppd_video.c b/board/ge/mx53ppd/mx53ppd_video.c
index 4e2c6ebde73c..eb4dd758b3b5 100644
--- a/board/ge/mx53ppd/mx53ppd_video.c
+++ b/board/ge/mx53ppd/mx53ppd_video.c
@@ -8,7 +8,6 @@
  * Fabio Estevam <fabio.estevam@freescale.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <linux/list.h>
 #include <asm/arch/iomux-mx53.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 067/149] board: google: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (64 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 066/149] board: ge: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 068/149] board: grinn: " Tom Rini
                   ` (83 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Simon Glass, Fabio Estevam, Marco Franchi, Alifer Moraes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Simon Glass <sjg@chromium.org>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Marco Franchi <marcofrk@gmail.com>
Cc: Alifer Moraes <alifer.wsdm@gmail.com>
---
 board/google/chromebook_coral/coral.c          | 1 -
 board/google/imx8mq_phanbell/imx8mq_phanbell.c | 1 -
 board/google/imx8mq_phanbell/spl.c             | 2 +-
 board/google/veyron/veyron.c                   | 1 -
 4 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/board/google/chromebook_coral/coral.c b/board/google/chromebook_coral/coral.c
index 9d9168d608a1..7b2724c01d04 100644
--- a/board/google/chromebook_coral/coral.c
+++ b/board/google/chromebook_coral/coral.c
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY	UCLASS_SYSINFO
 
-#include <common.h>
 #include <bloblist.h>
 #include <command.h>
 #include <cros_ec.h>
diff --git a/board/google/imx8mq_phanbell/imx8mq_phanbell.c b/board/google/imx8mq_phanbell/imx8mq_phanbell.c
index d0a740dd3f40..9544d6dd19a8 100644
--- a/board/google/imx8mq_phanbell/imx8mq_phanbell.c
+++ b/board/google/imx8mq_phanbell/imx8mq_phanbell.c
@@ -3,7 +3,6 @@
  * Copyright 2020 NXP
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <malloc.h>
diff --git a/board/google/imx8mq_phanbell/spl.c b/board/google/imx8mq_phanbell/spl.c
index 83de5bfd75fa..cfba9300dcbf 100644
--- a/board/google/imx8mq_phanbell/spl.c
+++ b/board/google/imx8mq_phanbell/spl.c
@@ -4,7 +4,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <hang.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/google/veyron/veyron.c b/board/google/veyron/veyron.c
index 32dbcdc4d10a..53c3435c92fc 100644
--- a/board/google/veyron/veyron.c
+++ b/board/google/veyron/veyron.c
@@ -4,7 +4,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 068/149] board: grinn: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (65 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 067/149] board: google: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 069/149] board: highbank: " Tom Rini
                   ` (82 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Marcin Niestroj

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Marcin Niestroj <m.niestroj@grinn-global.com>
---
 board/grinn/chiliboard/board.c | 2 +-
 board/grinn/liteboard/board.c  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/grinn/chiliboard/board.c b/board/grinn/chiliboard/board.c
index 64b32ca96df3..8313b37655fb 100644
--- a/board/grinn/chiliboard/board.c
+++ b/board/grinn/chiliboard/board.c
@@ -4,7 +4,7 @@
  * Copyright (C) 2017, Grinn - http://grinn-global.com/
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <net.h>
 #include <asm/arch/chilisom.h>
diff --git a/board/grinn/liteboard/board.c b/board/grinn/liteboard/board.c
index cf1d7cee9252..07bb5b7d7974 100644
--- a/board/grinn/liteboard/board.c
+++ b/board/grinn/liteboard/board.c
@@ -4,7 +4,6 @@
  * Copyright (C) 2016 Grinn
  */
 
-#include <common.h>
 #include <command.h>
 #include <init.h>
 #include <asm/arch/clock.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 069/149] board: highbank: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (66 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 068/149] board: grinn: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:41 ` [PATCH 070/149] board: hisilicon: " Tom Rini
                   ` (81 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Andre Przywara

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Andre Przywara <andre.przywara@arm.com>
---
 board/highbank/ahci.c     | 1 -
 board/highbank/hb_sregs.c | 1 -
 board/highbank/highbank.c | 1 -
 3 files changed, 3 deletions(-)

diff --git a/board/highbank/ahci.c b/board/highbank/ahci.c
index 9c057278ace1..899c502dfbc8 100644
--- a/board/highbank/ahci.c
+++ b/board/highbank/ahci.c
@@ -3,7 +3,6 @@
  * Copyright 2012 Calxeda, Inc.
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <asm/io.h>
 #include <linux/delay.h>
diff --git a/board/highbank/hb_sregs.c b/board/highbank/hb_sregs.c
index d9dd2c2bf67f..94052f7a3f9a 100644
--- a/board/highbank/hb_sregs.c
+++ b/board/highbank/hb_sregs.c
@@ -10,7 +10,6 @@
  * Copyright (C) 2019 Arm Ltd.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/lists.h>
 
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index 7f67d1e45308..f3df83ed6c9b 100644
--- a/board/highbank/highbank.c
+++ b/board/highbank/highbank.c
@@ -3,7 +3,6 @@
  * Copyright 2010-2011 Calxeda, Inc.
  */
 
-#include <common.h>
 #include <ahci.h>
 #include <cpu_func.h>
 #include <env.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 070/149] board: hisilicon: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (67 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 069/149] board: highbank: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-02  0:45   ` Igor Opaniuk
  2024-05-01  2:41 ` [PATCH 071/149] board: hoperun: " Tom Rini
                   ` (80 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot
  Cc: Peter Griffin, Manivannan Sadhasivam, Jorge Ramirez-Ortiz,
	Shawn Guo, Igor Opaniuk

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Peter Griffin <peter.griffin@linaro.org>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: Jorge Ramirez-Ortiz <jorge.ramirez.ortiz@gmail.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Igor Opaniuk <igor.opaniuk@gmail.com>
---
 board/hisilicon/hikey/hikey.c       | 1 -
 board/hisilicon/hikey960/hikey960.c | 1 -
 board/hisilicon/poplar/poplar.c     | 1 -
 3 files changed, 3 deletions(-)

diff --git a/board/hisilicon/hikey/hikey.c b/board/hisilicon/hikey/hikey.c
index c9a2d60ee56c..95a831efcafd 100644
--- a/board/hisilicon/hikey/hikey.c
+++ b/board/hisilicon/hikey/hikey.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 Linaro
  * Peter Griffin <peter.griffin@linaro.org>
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdt_support.h>
diff --git a/board/hisilicon/hikey960/hikey960.c b/board/hisilicon/hikey960/hikey960.c
index f41fabbad099..5029f4edb2af 100644
--- a/board/hisilicon/hikey960/hikey960.c
+++ b/board/hisilicon/hikey960/hikey960.c
@@ -4,7 +4,6 @@
  * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
diff --git a/board/hisilicon/poplar/poplar.c b/board/hisilicon/poplar/poplar.c
index b89e7e869766..c3ea080ff75a 100644
--- a/board/hisilicon/poplar/poplar.c
+++ b/board/hisilicon/poplar/poplar.c
@@ -4,7 +4,6 @@
  * Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 071/149] board: hoperun: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (68 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 070/149] board: hisilicon: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  6:29   ` Biju Das
  2024-05-01  2:41 ` [PATCH 072/149] board: imgtec: " Tom Rini
                   ` (79 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Biju Das

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Biju Das <biju.das.jz@bp.renesas.com>
---
 board/hoperun/hihope-rzg2/hihope-rzg2.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/hoperun/hihope-rzg2/hihope-rzg2.c b/board/hoperun/hihope-rzg2/hihope-rzg2.c
index 68d3d300dc40..0966e257464a 100644
--- a/board/hoperun/hihope-rzg2/hihope-rzg2.c
+++ b/board/hoperun/hihope-rzg2/hihope-rzg2.c
@@ -6,7 +6,6 @@
  * Copyright (C) 2021 Renesas Electronics Corporation
  */
 
-#include <common.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/processor.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 072/149] board: imgtec: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (69 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 071/149] board: hoperun: " Tom Rini
@ 2024-05-01  2:41 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 073/149] board: intel: " Tom Rini
                   ` (78 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:41 UTC (permalink / raw)
  To: u-boot; +Cc: Paul Burton, Ezequiel Garcia, Zubair Lutfullah Kakakhel

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Paul Burton <paul.burton@mips.com>
Cc: Ezequiel Garcia <ezequiel@collabora.com>
Cc: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
---
 board/imgtec/boston/checkboard.c | 1 -
 board/imgtec/boston/ddr.c        | 2 +-
 board/imgtec/boston/dt.c         | 1 -
 board/imgtec/ci20/ci20.c         | 1 -
 board/imgtec/malta/superio.c     | 1 -
 board/imgtec/xilfpga/xilfpga.c   | 2 +-
 6 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/board/imgtec/boston/checkboard.c b/board/imgtec/boston/checkboard.c
index c246a7b9d455..b0f7d3243c5e 100644
--- a/board/imgtec/boston/checkboard.c
+++ b/board/imgtec/boston/checkboard.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Imagination Technologies
  */
 
-#include <common.h>
 #include <init.h>
 
 #include <asm/io.h>
diff --git a/board/imgtec/boston/ddr.c b/board/imgtec/boston/ddr.c
index cecf454011cc..55356d1175de 100644
--- a/board/imgtec/boston/ddr.c
+++ b/board/imgtec/boston/ddr.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2016 Imagination Technologies
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 
diff --git a/board/imgtec/boston/dt.c b/board/imgtec/boston/dt.c
index bf772ff5dec4..874a21cec61e 100644
--- a/board/imgtec/boston/dt.c
+++ b/board/imgtec/boston/dt.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Imagination Technologies
  */
 
-#include <common.h>
 #include <fdt_support.h>
 #include <asm/global_data.h>
 
diff --git a/board/imgtec/ci20/ci20.c b/board/imgtec/ci20/ci20.c
index 89f5e7ad792c..4e268381d3c5 100644
--- a/board/imgtec/ci20/ci20.c
+++ b/board/imgtec/ci20/ci20.c
@@ -6,7 +6,6 @@
  * Author: Paul Burton <paul.burton@imgtec.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/imgtec/malta/superio.c b/board/imgtec/malta/superio.c
index aba11e25be31..edd5c203b16d 100644
--- a/board/imgtec/malta/superio.c
+++ b/board/imgtec/malta/superio.c
@@ -6,7 +6,6 @@
  * Setup code for the FDC37M817 super I/O controller
  */
 
-#include <common.h>
 #include <asm/io.h>
 
 #define SIO_CONF_PORT		0x3f0
diff --git a/board/imgtec/xilfpga/xilfpga.c b/board/imgtec/xilfpga/xilfpga.c
index 712269272114..e50ee8efe558 100644
--- a/board/imgtec/xilfpga/xilfpga.c
+++ b/board/imgtec/xilfpga/xilfpga.c
@@ -8,7 +8,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 073/149] board: intel: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (70 preceding siblings ...)
  2024-05-01  2:41 ` [PATCH 072/149] board: imgtec: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-02  7:20   ` Andy Shevchenko
  2024-05-01  2:42 ` [PATCH 074/149] board: inversepath: " Tom Rini
                   ` (77 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Bin Meng, Andy Shevchenko, Simon Glass, Aiden Park

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Aiden Park <aiden.park@intel.com>
---
 board/intel/cherryhill/cherryhill.c         | 1 -
 board/intel/cougarcanyon2/cougarcanyon2.c   | 1 -
 board/intel/crownbay/crownbay.c             | 1 -
 board/intel/edison/edison.c                 | 1 -
 board/intel/galileo/galileo.c               | 1 -
 board/intel/minnowmax/minnowmax.c           | 1 -
 board/intel/slimbootloader/slimbootloader.c | 1 -
 7 files changed, 7 deletions(-)

diff --git a/board/intel/cherryhill/cherryhill.c b/board/intel/cherryhill/cherryhill.c
index c037d5b14cd7..b4378afee152 100644
--- a/board/intel/cherryhill/cherryhill.c
+++ b/board/intel/cherryhill/cherryhill.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#include <common.h>
 #include <asm/arch/gpio.h>
 #include <asm/fsp1/fsp_support.h>
 
diff --git a/board/intel/cougarcanyon2/cougarcanyon2.c b/board/intel/cougarcanyon2/cougarcanyon2.c
index 7f61ef8b366b..e5cda068e17d 100644
--- a/board/intel/cougarcanyon2/cougarcanyon2.c
+++ b/board/intel/cougarcanyon2/cougarcanyon2.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
diff --git a/board/intel/crownbay/crownbay.c b/board/intel/crownbay/crownbay.c
index 55095deeadd7..036beb1146dc 100644
--- a/board/intel/crownbay/crownbay.c
+++ b/board/intel/crownbay/crownbay.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/ibmpc.h>
 #include <asm/pnp_def.h>
diff --git a/board/intel/edison/edison.c b/board/intel/edison/edison.c
index 11e7f74e47cc..911ffda2fc78 100644
--- a/board/intel/edison/edison.c
+++ b/board/intel/edison/edison.c
@@ -2,7 +2,6 @@
 /*
  * Copyright (c) 2017 Intel Corporation
  */
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <mmc.h>
diff --git a/board/intel/galileo/galileo.c b/board/intel/galileo/galileo.c
index 341b627a65f5..19e5d0952fb8 100644
--- a/board/intel/galileo/galileo.c
+++ b/board/intel/galileo/galileo.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/device.h>
 #include <asm/arch/quark.h>
diff --git a/board/intel/minnowmax/minnowmax.c b/board/intel/minnowmax/minnowmax.c
index b02e3f0d4e5c..cdc2e0b75d81 100644
--- a/board/intel/minnowmax/minnowmax.c
+++ b/board/intel/minnowmax/minnowmax.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015, Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/intel/slimbootloader/slimbootloader.c b/board/intel/slimbootloader/slimbootloader.c
index b20ddf0c682e..f92c0b5112f0 100644
--- a/board/intel/slimbootloader/slimbootloader.c
+++ b/board/intel/slimbootloader/slimbootloader.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 Intel Corporation <www.intel.com>
  */
 
-#include <common.h>
 #include <init.h>
 
 int board_early_init_r(void)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 074/149] board: inversepath: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (71 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 073/149] board: intel: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 075/149] board: iomega: " Tom Rini
                   ` (76 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Andrej Rosano

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Andrej Rosano <andrej@inversepath.com>
---
 board/inversepath/usbarmory/usbarmory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/inversepath/usbarmory/usbarmory.c b/board/inversepath/usbarmory/usbarmory.c
index f3a0de3967bb..fbed8abcecfb 100644
--- a/board/inversepath/usbarmory/usbarmory.c
+++ b/board/inversepath/usbarmory/usbarmory.c
@@ -7,7 +7,7 @@
  * Andrej Rosano <andrej@inversepath.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <fs.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 075/149] board: iomega: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (72 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 074/149] board: inversepath: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01 20:25   ` Tony Dinh
  2024-05-01  2:42 ` [PATCH 076/149] board: isee: " Tom Rini
                   ` (75 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Tony Dinh, Luka Perkov

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Tony Dinh <mibodhi@gmail.com>
Cc: Luka Perkov <luka@openwrt.org>
---
 board/iomega/iconnect/iconnect.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/iomega/iconnect/iconnect.c b/board/iomega/iconnect/iconnect.c
index 038716020019..00b08987e9e8 100644
--- a/board/iomega/iconnect/iconnect.c
+++ b/board/iomega/iconnect/iconnect.c
@@ -6,7 +6,6 @@
  * Luka Perkov <luka@openwrt.org>
  */
 
-#include <common.h>
 #include <init.h>
 #include <netdev.h>
 #include <asm/arch/cpu.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 076/149] board: isee: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (73 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 075/149] board: iomega: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 077/149] board: k+p: " Tom Rini
                   ` (74 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Javier Martínez Canillas, Enric Balletbo i Serra

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: "Javier Martínez Canillas" <javier@dowhile0.org>
Cc: Enric Balletbo i Serra <eballetbo@gmail.com>
---
 board/isee/igep003x/board.c    | 2 +-
 board/isee/igep003x/mux.c      | 1 -
 board/isee/igep00x0/common.c   | 1 -
 board/isee/igep00x0/igep00x0.c | 2 +-
 4 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/board/isee/igep003x/board.c b/board/isee/igep003x/board.c
index 7dbb08008927..7cd26ce3c34b 100644
--- a/board/isee/igep003x/board.c
+++ b/board/isee/igep003x/board.c
@@ -5,7 +5,7 @@
  * Copyright (C) 2013-2017, ISEE 2007 SL - http://www.isee.biz/
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
diff --git a/board/isee/igep003x/mux.c b/board/isee/igep003x/mux.c
index 550e3b3197dd..1a40c0077627 100644
--- a/board/isee/igep003x/mux.c
+++ b/board/isee/igep003x/mux.c
@@ -11,7 +11,6 @@
  * GNU General Public License for more details.
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/isee/igep00x0/common.c b/board/isee/igep00x0/common.c
index 3fdf83e845c9..2584d2e5ddfd 100644
--- a/board/isee/igep00x0/common.c
+++ b/board/isee/igep00x0/common.c
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <twl4030.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c
index 0f0a9c592fcc..8a3f290f678f 100644
--- a/board/isee/igep00x0/igep00x0.c
+++ b/board/isee/igep00x0/igep00x0.c
@@ -3,7 +3,7 @@
  * (C) Copyright 2010
  * ISEE 2007 SL, <www.iseebcn.com>
  */
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <init.h>
 #include <malloc.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 077/149] board: k+p: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (74 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 076/149] board: isee: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 078/149] board: keymile: " Tom Rini
                   ` (73 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Lukasz Majewski

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Lukasz Majewski <lukma@denx.de>
---
 board/k+p/kp_imx53/kp_id_rev.c            | 2 +-
 board/k+p/kp_imx53/kp_imx53.c             | 1 -
 board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c     | 1 -
 board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c | 1 -
 4 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/board/k+p/kp_imx53/kp_id_rev.c b/board/k+p/kp_imx53/kp_id_rev.c
index 9f93cf008ce8..cbfe94e25a28 100644
--- a/board/k+p/kp_imx53/kp_id_rev.c
+++ b/board/k+p/kp_imx53/kp_id_rev.c
@@ -9,11 +9,11 @@
  * Daniel Gericke <daniel.gericke@tqs.de>
  */
 
-#include <common.h>
 #include <env.h>
 #include <i2c.h>
 #include "kp_id_rev.h"
 #include <net.h>
+#include <vsprintf.h>
 
 static int eeprom_has_been_read;
 static struct id_eeprom eeprom;
diff --git a/board/k+p/kp_imx53/kp_imx53.c b/board/k+p/kp_imx53/kp_imx53.c
index 7c3a695cb258..efb7b49cbe08 100644
--- a/board/k+p/kp_imx53/kp_imx53.c
+++ b/board/k+p/kp_imx53/kp_imx53.c
@@ -4,7 +4,6 @@
  * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
index e6877e4c0703..e0895194300a 100644
--- a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
+++ b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Lukasz Majewski <lukma@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c
index 54902437940b..6a5e252751d4 100644
--- a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c
+++ b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2018 Lukasz Majewski <lukma@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <log.h>
 #include <asm/arch/clock.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 078/149] board: keymile: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (75 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 077/149] board: k+p: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  5:09   ` Heiko Schocher
  2024-05-03  6:36   ` Holger Brunck
  2024-05-01  2:42 ` [PATCH 079/149] board: kobol: " Tom Rini
                   ` (72 subsequent siblings)
  149 siblings, 2 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot
  Cc: Holger Brunck, Heiko Schocher, Niel Fourie,
	Aleksandar Gerasimovski, Rainer Boschung

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Holger Brunck <holger.brunck@hitachienergy.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Niel Fourie <lusus@denx.de>
Cc: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
Cc: Rainer Boschung <rainer.boschung@hitachienergy.com>
---
 board/keymile/common/common.c       | 2 +-
 board/keymile/common/ivm.c          | 3 ++-
 board/keymile/common/qrio.c         | 2 +-
 board/keymile/km83xx/km83xx.c       | 2 +-
 board/keymile/pg-wcom-ls102xa/ddr.c | 2 +-
 board/keymile/secu1/socfpga.c       | 1 -
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index 991022ac833a..9358c25dcb05 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -7,7 +7,7 @@
  * Holger Brunck, Keymile GmbH Hannover, holger.brunck@keymile.com
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <ioports.h>
 #include <command.h>
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c
index 67db0c50f47c..f01fe44303c9 100644
--- a/board/keymile/common/ivm.c
+++ b/board/keymile/common/ivm.c
@@ -4,10 +4,11 @@
  * Holger Brunck, Keymile GmbH Hannover, holger.brunck@keymile.com
  */
 
-#include <common.h>
 #include <cli_hush.h>
 #include <env.h>
 #include <i2c.h>
+#include <stdio.h>
+#include <vsprintf.h>
 #include "common.h"
 
 #define MAC_STR_SZ	20
diff --git a/board/keymile/common/qrio.c b/board/keymile/common/qrio.c
index b433f69675ab..c8299483299d 100644
--- a/board/keymile/common/qrio.c
+++ b/board/keymile/common/qrio.c
@@ -4,7 +4,7 @@
  * Valentin Longchamp <valentin.longchamp@keymile.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
 
diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c
index acd13105dd55..40718aa58a7b 100644
--- a/board/keymile/km83xx/km83xx.c
+++ b/board/keymile/km83xx/km83xx.c
@@ -13,7 +13,7 @@
  * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <event.h>
 #include <fdt_support.h>
diff --git a/board/keymile/pg-wcom-ls102xa/ddr.c b/board/keymile/pg-wcom-ls102xa/ddr.c
index 556d39d4d4e3..51938a1b4d88 100644
--- a/board/keymile/pg-wcom-ls102xa/ddr.c
+++ b/board/keymile/pg-wcom-ls102xa/ddr.c
@@ -4,7 +4,7 @@
  * Copyright 2020 Hitachi Power Grids. All rights reserved.
  */
 
-#include <common.h>
+#include <config.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <asm/io.h>
diff --git a/board/keymile/secu1/socfpga.c b/board/keymile/secu1/socfpga.c
index 6a4cb21786ac..1a626c520680 100644
--- a/board/keymile/secu1/socfpga.c
+++ b/board/keymile/secu1/socfpga.c
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2017-2020 Hitachi Power Grids
  */
-#include <common.h>
 #include <i2c.h>
 #include <asm/gpio.h>
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 079/149] board: kobol: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (76 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 078/149] board: keymile: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 080/149] board: kontron: " Tom Rini
                   ` (71 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Dennis Gilmore

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Dennis Gilmore <dgilmore@redhat.com>
---
 board/kobol/helios4/helios4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/kobol/helios4/helios4.c b/board/kobol/helios4/helios4.c
index 9c5b687b3e8b..4c8407bb6768 100644
--- a/board/kobol/helios4/helios4.c
+++ b/board/kobol/helios4/helios4.c
@@ -4,7 +4,7 @@
  *  based on board/solidrun/clearfog/clearfog.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <i2c.h>
 #include <init.h>
 #include <miiphy.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 080/149] board: kontron: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (77 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 079/149] board: kobol: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-02  7:18   ` Michael Walle
  2024-05-06  7:17   ` Frieder Schrempf
  2024-05-01  2:42 ` [PATCH 081/149] board: kosagi: " Tom Rini
                   ` (70 subsequent siblings)
  149 siblings, 2 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Heiko Thiery, Frieder Schrempf, Michael Walle

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Heiko Thiery <heiko.thiery@gmail.com>
Cc: Frieder Schrempf <frieder.schrempf@kontron.de>
Cc: Michael Walle <michael@walle.cc>
---
 board/kontron/pitx_imx8m/pitx_imx8m.c  | 1 -
 board/kontron/pitx_imx8m/spl.c         | 2 +-
 board/kontron/sl-mx8mm/lpddr4_timing.c | 1 -
 board/kontron/sl28/cmds.c              | 3 ++-
 board/kontron/sl28/common.c            | 2 +-
 board/kontron/sl28/ddr.c               | 2 +-
 board/kontron/sl28/sl28.c              | 1 -
 board/kontron/sl28/spl.c               | 2 +-
 board/kontron/sl28/spl_atf.c           | 2 +-
 9 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/board/kontron/pitx_imx8m/pitx_imx8m.c b/board/kontron/pitx_imx8m/pitx_imx8m.c
index 4548e7c1dff9..a908aee9eccf 100644
--- a/board/kontron/pitx_imx8m/pitx_imx8m.c
+++ b/board/kontron/pitx_imx8m/pitx_imx8m.c
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 
 #include "pitx_misc.h"
-#include <common.h>
 #include <efi.h>
 #include <efi_loader.h>
 #include <init.h>
diff --git a/board/kontron/pitx_imx8m/spl.c b/board/kontron/pitx_imx8m/spl.c
index a247803a4b46..475e52f62314 100644
--- a/board/kontron/pitx_imx8m/spl.c
+++ b/board/kontron/pitx_imx8m/spl.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
+#include <config.h>
 #include <errno.h>
 #include <fsl_esdhc_imx.h>
 #include <hang.h>
diff --git a/board/kontron/sl-mx8mm/lpddr4_timing.c b/board/kontron/sl-mx8mm/lpddr4_timing.c
index 74b79c7a009f..851aeef8f8c2 100644
--- a/board/kontron/sl-mx8mm/lpddr4_timing.c
+++ b/board/kontron/sl-mx8mm/lpddr4_timing.c
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/kontron/sl28/cmds.c b/board/kontron/sl28/cmds.c
index 08a22b5d01e0..7851361c48cc 100644
--- a/board/kontron/sl28/cmds.c
+++ b/board/kontron/sl28/cmds.c
@@ -5,10 +5,11 @@
  * Copyright (c) 2020 Kontron Europe GmbH
  */
 
-#include <common.h>
 #include <command.h>
 #include <i2c.h>
+#include <vsprintf.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define CPLD_I2C_ADDR 0x4a
 #define REG_UFM_CTRL 0x02
diff --git a/board/kontron/sl28/common.c b/board/kontron/sl28/common.c
index 331de29baee6..d8d0172a21b7 100644
--- a/board/kontron/sl28/common.c
+++ b/board/kontron/sl28/common.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 
diff --git a/board/kontron/sl28/ddr.c b/board/kontron/sl28/ddr.c
index 315d9f99c71d..9b881fdc265e 100644
--- a/board/kontron/sl28/ddr.c
+++ b/board/kontron/sl28/ddr.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
diff --git a/board/kontron/sl28/sl28.c b/board/kontron/sl28/sl28.c
index 4ab221c12bf6..adfec8ba2379 100644
--- a/board/kontron/sl28/sl28.c
+++ b/board/kontron/sl28/sl28.c
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <dm.h>
 #include <malloc.h>
 #include <efi.h>
diff --git a/board/kontron/sl28/spl.c b/board/kontron/sl28/spl.c
index 80acde74956d..45a4fc65120e 100644
--- a/board/kontron/sl28/spl.c
+++ b/board/kontron/sl28/spl.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <asm/spl.h>
 #include <asm/arch-fsl-layerscape/fsl_serdes.h>
diff --git a/board/kontron/sl28/spl_atf.c b/board/kontron/sl28/spl_atf.c
index a9cd6850e983..0710316a48bc 100644
--- a/board/kontron/sl28/spl_atf.c
+++ b/board/kontron/sl28/spl_atf.c
@@ -5,7 +5,7 @@
  * Copyright (c) 2020 Michael Walle <michael@walle.cc>
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <atf_common.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 081/149] board: kosagi: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (78 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 080/149] board: kontron: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 082/149] board: l+g: " Tom Rini
                   ` (69 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Marek Vasut <marex@denx.de>
---
 board/kosagi/novena/novena.c     | 1 -
 board/kosagi/novena/novena_spl.c | 2 +-
 board/kosagi/novena/video.c      | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/board/kosagi/novena/novena.c b/board/kosagi/novena/novena.c
index f009a8afd48c..3220727f2366 100644
--- a/board/kosagi/novena/novena.c
+++ b/board/kosagi/novena/novena.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2014 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <eeprom.h>
diff --git a/board/kosagi/novena/novena_spl.c b/board/kosagi/novena/novena_spl.c
index 24c0fb22268f..008418b01846 100644
--- a/board/kosagi/novena/novena_spl.c
+++ b/board/kosagi/novena/novena_spl.c
@@ -5,7 +5,7 @@
  * Copyright (C) 2014 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <init.h>
 #include <asm/io.h>
diff --git a/board/kosagi/novena/video.c b/board/kosagi/novena/video.c
index a96a877f5f21..be5a737a31dd 100644
--- a/board/kosagi/novena/video.c
+++ b/board/kosagi/novena/video.c
@@ -9,7 +9,6 @@
  * Copyright (C) 2014 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 082/149] board: l+g: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (79 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 081/149] board: kosagi: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 083/149] board: lego: " Tom Rini
                   ` (68 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Gregory CLEMENT

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 board/l+g/vinco/vinco.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/l+g/vinco/vinco.c b/board/l+g/vinco/vinco.c
index b3c176dd59a0..066d315baa22 100644
--- a/board/l+g/vinco/vinco.c
+++ b/board/l+g/vinco/vinco.c
@@ -9,7 +9,7 @@
  *		      Gregory CLEMENT <gregory.clement@free-electrons.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 083/149] board: lego: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (80 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 082/149] board: l+g: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01 15:28   ` David Lechner
  2024-05-01  2:42 ` [PATCH 084/149] board: lg: " Tom Rini
                   ` (67 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: David Lechner

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: David Lechner <david@lechnology.com>
---
 board/lego/ev3/legoev3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/lego/ev3/legoev3.c b/board/lego/ev3/legoev3.c
index 43afe593c78b..1a153668a43c 100644
--- a/board/lego/ev3/legoev3.c
+++ b/board/lego/ev3/legoev3.c
@@ -12,7 +12,7 @@
  * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 084/149] board: lg: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (81 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 083/149] board: lego: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 085/149] board: liebherr: " Tom Rini
                   ` (66 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Paul Kocialkowski

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Paul Kocialkowski <contact@paulk.fr>
---
 board/lg/sniper/sniper.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/lg/sniper/sniper.c b/board/lg/sniper/sniper.c
index 86032d7fcdf7..88d5d0881433 100644
--- a/board/lg/sniper/sniper.c
+++ b/board/lg/sniper/sniper.c
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <fastboot.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 085/149] board: liebherr: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (82 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 084/149] board: lg: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 086/149] board: logicpd: " Tom Rini
                   ` (65 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Lukasz Majewski

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Lukasz Majewski <lukma@denx.de>
---
 board/liebherr/display5/display5.c | 1 -
 board/liebherr/display5/spl.c      | 1 -
 board/liebherr/mccmon6/mccmon6.c   | 1 -
 board/liebherr/xea/spl_xea.c       | 1 -
 board/liebherr/xea/xea.c           | 1 -
 5 files changed, 5 deletions(-)

diff --git a/board/liebherr/display5/display5.c b/board/liebherr/display5/display5.c
index e3a59dbec009..a0bbd03e8d19 100644
--- a/board/liebherr/display5/display5.c
+++ b/board/liebherr/display5/display5.c
@@ -4,7 +4,6 @@
  * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdt_support.h>
 #include <init.h>
diff --git a/board/liebherr/display5/spl.c b/board/liebherr/display5/spl.c
index 97928e92215c..819d3acbe560 100644
--- a/board/liebherr/display5/spl.c
+++ b/board/liebherr/display5/spl.c
@@ -4,7 +4,6 @@
  * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <image.h>
diff --git a/board/liebherr/mccmon6/mccmon6.c b/board/liebherr/mccmon6/mccmon6.c
index 1b49526fba4f..fef915b2acaa 100644
--- a/board/liebherr/mccmon6/mccmon6.c
+++ b/board/liebherr/mccmon6/mccmon6.c
@@ -4,7 +4,6 @@
  * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <serial.h>
diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c
index 6cf8f8390e8b..88c157eca45a 100644
--- a/board/liebherr/xea/spl_xea.c
+++ b/board/liebherr/xea/spl_xea.c
@@ -12,7 +12,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <config.h>
 #include <asm/io.h>
 #include <asm/arch/iomux-mx28.h>
diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c
index 0a6fd7f1437e..9ade3563b255 100644
--- a/board/liebherr/xea/xea.c
+++ b/board/liebherr/xea/xea.c
@@ -13,7 +13,6 @@
  *
  */
 
-#include <common.h>
 #include <fdt_support.h>
 #include <init.h>
 #include <log.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 086/149] board: logicpd: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (83 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 085/149] board: liebherr: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  9:23   ` Adam Ford
  2024-05-01  2:42 ` [PATCH 087/149] board: maxbcm: " Tom Rini
                   ` (64 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Adam Ford

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Adam Ford <aford173@gmail.com>
---
 board/logicpd/am3517evm/am3517evm.c | 1 -
 board/logicpd/imx6/imx6logic.c      | 1 -
 board/logicpd/omap3som/omap3logic.c | 2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/board/logicpd/am3517evm/am3517evm.c b/board/logicpd/am3517evm/am3517evm.c
index e69a73f2af6f..e6ca31016b7c 100644
--- a/board/logicpd/am3517evm/am3517evm.c
+++ b/board/logicpd/am3517evm/am3517evm.c
@@ -10,7 +10,6 @@
  * Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/logicpd/imx6/imx6logic.c b/board/logicpd/imx6/imx6logic.c
index 0d53548dcb4b..589136fd64aa 100644
--- a/board/logicpd/imx6/imx6logic.c
+++ b/board/logicpd/imx6/imx6logic.c
@@ -8,7 +8,6 @@
  * and updates by Jagan Teki <jagan@amarulasolutions.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <miiphy.h>
diff --git a/board/logicpd/omap3som/omap3logic.c b/board/logicpd/omap3som/omap3logic.c
index 86992829caf4..a9fe61918b6a 100644
--- a/board/logicpd/omap3som/omap3logic.c
+++ b/board/logicpd/omap3som/omap3logic.c
@@ -10,7 +10,7 @@
  *	Richard Woodruff <r-woodruff2@ti.com>
  *	Syed Mohammed Khasim <khasim@ti.com>
  */
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <init.h>
 #include <net.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 087/149] board: maxbcm: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (84 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 086/149] board: logicpd: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 088/149] board: mediatek: " Tom Rini
                   ` (63 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Stefan Roese

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Roese <sr@denx.de>
---
 board/maxbcm/maxbcm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/maxbcm/maxbcm.c b/board/maxbcm/maxbcm.c
index aad3dc864295..e011520f2ec2 100644
--- a/board/maxbcm/maxbcm.c
+++ b/board/maxbcm/maxbcm.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2014 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 088/149] board: mediatek: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (85 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 087/149] board: maxbcm: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 089/149] board: menlo: " Tom Rini
                   ` (62 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot
  Cc: Sam Shih, Ryder Lee, Weijie Gao, Chunfeng Yun,
	GSS_MTK_Uboot_upstream, Fabien Parent, Mingming lee

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Sam Shih <sam.shih@mediatek.com>
Cc: Ryder Lee <ryder.lee@mediatek.com>
Cc: Weijie Gao <weijie.gao@mediatek.com>
Cc: Chunfeng Yun <chunfeng.yun@mediatek.com>
Cc: GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>
Cc: Fabien Parent <fparent@baylibre.com>
Cc: Mingming lee <mingming.lee@mediatek.com>
---
 board/mediatek/mt7622/mt7622_rfb.c     | 1 -
 board/mediatek/mt7623/mt7623_rfb.c     | 2 +-
 board/mediatek/mt7629/mt7629_rfb.c     | 2 +-
 board/mediatek/mt8183/mt8183_pumpkin.c | 1 -
 board/mediatek/mt8512/mt8512.c         | 1 -
 board/mediatek/mt8516/mt8516_pumpkin.c | 1 -
 board/mediatek/mt8518/mt8518_ap1.c     | 2 +-
 7 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/board/mediatek/mt7622/mt7622_rfb.c b/board/mediatek/mt7622/mt7622_rfb.c
index 2cc73bc35dca..e7f492a13bc3 100644
--- a/board/mediatek/mt7622/mt7622_rfb.c
+++ b/board/mediatek/mt7622/mt7622_rfb.c
@@ -4,7 +4,6 @@
  * Author: Sam Shih <sam.shih@mediatek.com>
  */
 
-#include <common.h>
 #include <config.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/mediatek/mt7623/mt7623_rfb.c b/board/mediatek/mt7623/mt7623_rfb.c
index ec10f77c51e4..c78eaa072439 100644
--- a/board/mediatek/mt7623/mt7623_rfb.c
+++ b/board/mediatek/mt7623/mt7623_rfb.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2018 MediaTek Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <mmc.h>
 #include <asm/global_data.h>
 
diff --git a/board/mediatek/mt7629/mt7629_rfb.c b/board/mediatek/mt7629/mt7629_rfb.c
index 55f7696c5107..02719181624c 100644
--- a/board/mediatek/mt7629/mt7629_rfb.c
+++ b/board/mediatek/mt7629/mt7629_rfb.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2018 MediaTek Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/mediatek/mt8183/mt8183_pumpkin.c b/board/mediatek/mt8183/mt8183_pumpkin.c
index db613ebdc4f4..1b8736966f61 100644
--- a/board/mediatek/mt8183/mt8183_pumpkin.c
+++ b/board/mediatek/mt8183/mt8183_pumpkin.c
@@ -4,7 +4,6 @@
  * Author: Fabien Parent <fparent@baylibre.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <net.h>
 
diff --git a/board/mediatek/mt8512/mt8512.c b/board/mediatek/mt8512/mt8512.c
index ac3adb801222..d2f557ffee5f 100644
--- a/board/mediatek/mt8512/mt8512.c
+++ b/board/mediatek/mt8512/mt8512.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 MediaTek Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <wdt.h>
diff --git a/board/mediatek/mt8516/mt8516_pumpkin.c b/board/mediatek/mt8516/mt8516_pumpkin.c
index 42f3863b92c3..930bfec34836 100644
--- a/board/mediatek/mt8516/mt8516_pumpkin.c
+++ b/board/mediatek/mt8516/mt8516_pumpkin.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 BayLibre SAS
  */
 
-#include <common.h>
 #include <dm.h>
 #include <net.h>
 
diff --git a/board/mediatek/mt8518/mt8518_ap1.c b/board/mediatek/mt8518/mt8518_ap1.c
index e03da63b1d92..745cfda2ddf0 100644
--- a/board/mediatek/mt8518/mt8518_ap1.c
+++ b/board/mediatek/mt8518/mt8518_ap1.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2019 MediaTek Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 089/149] board: menlo: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (86 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 088/149] board: mediatek: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 090/149] board: microchip: " Tom Rini
                   ` (61 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Olaf Mandel

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Marek Vasut <marex@denx.de>
Cc: Olaf Mandel <o.mandel@menlosystems.com>
---
 board/menlo/m53menlo/m53menlo.c | 1 -
 board/menlo/mx8menlo/mx8menlo.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/menlo/m53menlo/m53menlo.c b/board/menlo/m53menlo/m53menlo.c
index b8dffb0e4858..79351f472731 100644
--- a/board/menlo/m53menlo/m53menlo.c
+++ b/board/menlo/m53menlo/m53menlo.c
@@ -6,7 +6,6 @@
  * Copyright (C) 2014-2017 Olaf Mandel <o.mandel@menlosystems.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <malloc.h>
diff --git a/board/menlo/mx8menlo/mx8menlo.c b/board/menlo/mx8menlo/mx8menlo.c
index 18f5fd5c5ee9..f47b45c1d560 100644
--- a/board/menlo/mx8menlo/mx8menlo.c
+++ b/board/menlo/mx8menlo/mx8menlo.c
@@ -3,7 +3,6 @@
  * Copyright 2021-2022 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx8mm_pins.h>
 #include <asm/arch/sys_proto.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 090/149] board: microchip: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (87 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 089/149] board: menlo: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 091/149] board: mikrotik: " Tom Rini
                   ` (60 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Padmarao Begari, Cyril Jean, Purna Chandra Mandal

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Padmarao Begari <padmarao.begari@microchip.com>
Cc: Cyril Jean <cyril.jean@microchip.com>
Cc: Purna Chandra Mandal <purna.mandal@microchip.com>
---
 board/microchip/mpfs_icicle/mpfs_icicle.c | 1 -
 board/microchip/pic32mzda/pic32mzda.c     | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/microchip/mpfs_icicle/mpfs_icicle.c b/board/microchip/mpfs_icicle/mpfs_icicle.c
index 0f5f82924e77..7beac33cfbd3 100644
--- a/board/microchip/mpfs_icicle/mpfs_icicle.c
+++ b/board/microchip/mpfs_icicle/mpfs_icicle.c
@@ -4,7 +4,6 @@
  * Padmarao Begari <padmarao.begari@microchip.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/microchip/pic32mzda/pic32mzda.c b/board/microchip/pic32mzda/pic32mzda.c
index 3c2203d22025..848a1aee4000 100644
--- a/board/microchip/pic32mzda/pic32mzda.c
+++ b/board/microchip/pic32mzda/pic32mzda.c
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 091/149] board: mikrotik: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (88 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 090/149] board: microchip: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 092/149] board: mntre: " Tom Rini
                   ` (59 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Luka Kovacic, Luka Perkov

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Luka Kovacic <luka.kovacic@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
---
 board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c b/board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c
index 315169ba661d..ae1c586277f9 100644
--- a/board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c
+++ b/board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <init.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 092/149] board: mntre: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (89 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 091/149] board: mikrotik: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 093/149] board: msc: " Tom Rini
                   ` (58 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Lukas F. Hartmann, Patrick Wildt

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: "Lukas F. Hartmann" <lukas@mntre.com>
Cc: Patrick Wildt <patrick@blueri.se>
---
 board/mntre/imx8mq_reform2/imx8mq_reform2.c | 1 -
 board/mntre/imx8mq_reform2/spl.c            | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/mntre/imx8mq_reform2/imx8mq_reform2.c b/board/mntre/imx8mq_reform2/imx8mq_reform2.c
index be5c5060a2a0..ebc490e24b1c 100644
--- a/board/mntre/imx8mq_reform2/imx8mq_reform2.c
+++ b/board/mntre/imx8mq_reform2/imx8mq_reform2.c
@@ -4,7 +4,6 @@
  * Copyright (C) 2018, Boundary Devices <info@boundarydevices.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <malloc.h>
diff --git a/board/mntre/imx8mq_reform2/spl.c b/board/mntre/imx8mq_reform2/spl.c
index 5120c628b91a..48a783593b6e 100644
--- a/board/mntre/imx8mq_reform2/spl.c
+++ b/board/mntre/imx8mq_reform2/spl.c
@@ -5,7 +5,7 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
-#include <common.h>
+#include <config.h>
 #include <hang.h>
 #include <image.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 093/149] board: msc: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (90 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 092/149] board: mntre: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-02  8:57   ` Ian Ray
  2024-05-01  2:42 ` [PATCH 094/149] board: mscc: " Tom Rini
                   ` (57 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Martyn Welch, Ian Ray

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Martyn Welch <martyn.welch@collabora.com>
Cc: Ian Ray <ian.ray@gehealthcare.com>
---
 board/msc/sm2s_imx8mp/sm2s_imx8mp.c | 1 -
 board/msc/sm2s_imx8mp/spl.c         | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/msc/sm2s_imx8mp/sm2s_imx8mp.c b/board/msc/sm2s_imx8mp/sm2s_imx8mp.c
index 6ccbf02db06e..b1ce014bd55d 100644
--- a/board/msc/sm2s_imx8mp/sm2s_imx8mp.c
+++ b/board/msc/sm2s_imx8mp/sm2s_imx8mp.c
@@ -7,7 +7,6 @@
  * Copyright 2021 Collabora Ltd.
  */
 
-#include <common.h>
 #include <errno.h>
 #include <miiphy.h>
 #include <netdev.h>
diff --git a/board/msc/sm2s_imx8mp/spl.c b/board/msc/sm2s_imx8mp/spl.c
index ed7a1b7d3d00..b1b5561838dc 100644
--- a/board/msc/sm2s_imx8mp/spl.c
+++ b/board/msc/sm2s_imx8mp/spl.c
@@ -7,7 +7,7 @@
  * Copyright 2021 Collabora Ltd.
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <fsl_esdhc_imx.h>
 #include <hang.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 094/149] board: mscc: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (91 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 093/149] board: msc: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 095/149] board: myir: " Tom Rini
                   ` (56 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Gregory CLEMENT, Lars Povlsen, Horatiu Vultur, Simon Glass

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Gregory CLEMENT <gregory.clement@bootlin.com>
Cc: Lars Povlsen <lars.povlsen@microchip.com>
Cc: Horatiu Vultur <horatiu.vultur@microchip.com>
Cc: Simon Glass <sjg@chromium.org>
---
 board/mscc/common/spi.c      | 1 -
 board/mscc/jr2/jr2.c         | 2 +-
 board/mscc/luton/luton.c     | 2 +-
 board/mscc/ocelot/ocelot.c   | 2 +-
 board/mscc/serval/serval.c   | 2 +-
 board/mscc/servalt/servalt.c | 2 +-
 6 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/board/mscc/common/spi.c b/board/mscc/common/spi.c
index 45b9649336db..cb43ad6811e7 100644
--- a/board/mscc/common/spi.c
+++ b/board/mscc/common/spi.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2018 Microsemi Coprporation
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <spi.h>
 #include <linux/bitops.h>
diff --git a/board/mscc/jr2/jr2.c b/board/mscc/jr2/jr2.c
index 84b95be648d7..acaeb4680223 100644
--- a/board/mscc/jr2/jr2.c
+++ b/board/mscc/jr2/jr2.c
@@ -3,7 +3,7 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <image.h>
 #include <init.h>
 #include <asm/io.h>
diff --git a/board/mscc/luton/luton.c b/board/mscc/luton/luton.c
index 48170b3aa12d..f9ea26ebc5c6 100644
--- a/board/mscc/luton/luton.c
+++ b/board/mscc/luton/luton.c
@@ -3,7 +3,7 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <image.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/mscc/ocelot/ocelot.c b/board/mscc/ocelot/ocelot.c
index d69db04de664..4cec25b3976c 100644
--- a/board/mscc/ocelot/ocelot.c
+++ b/board/mscc/ocelot/ocelot.c
@@ -3,7 +3,7 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <image.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/mscc/serval/serval.c b/board/mscc/serval/serval.c
index 99d5f5be657e..951c24dd286b 100644
--- a/board/mscc/serval/serval.c
+++ b/board/mscc/serval/serval.c
@@ -3,7 +3,7 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <image.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/mscc/servalt/servalt.c b/board/mscc/servalt/servalt.c
index 49993168c237..9055b73ada27 100644
--- a/board/mscc/servalt/servalt.c
+++ b/board/mscc/servalt/servalt.c
@@ -3,7 +3,7 @@
  * Copyright (c) 2018 Microsemi Corporation
  */
 
-#include <common.h>
+#include <config.h>
 #include <image.h>
 #include <init.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 095/149] board: myir: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (92 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 094/149] board: mscc: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 096/149] board: netgear: " Tom Rini
                   ` (55 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Parthiban Nallathambi

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Parthiban Nallathambi <parthiban@linumiz.com>
---
 board/myir/mys_6ulx/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/myir/mys_6ulx/spl.c b/board/myir/mys_6ulx/spl.c
index 3cf14e2bc660..4414487eff24 100644
--- a/board/myir/mys_6ulx/spl.c
+++ b/board/myir/mys_6ulx/spl.c
@@ -4,7 +4,7 @@
  * Author: Parthiban Nallathambi <parthiban@linumiz.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <spl.h>
 #include <asm/arch/clock.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 096/149] board: netgear: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (93 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 095/149] board: myir: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 097/149] board: novtech: " Tom Rini
                   ` (54 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Álvaro Fernández Rojas

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: "Álvaro Fernández Rojas" <noltari@gmail.com>
---
 board/netgear/dgnd3700v2/dgnd3700v2.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/netgear/dgnd3700v2/dgnd3700v2.c b/board/netgear/dgnd3700v2/dgnd3700v2.c
index cfc3529c3488..9cf3a2fe60a2 100644
--- a/board/netgear/dgnd3700v2/dgnd3700v2.c
+++ b/board/netgear/dgnd3700v2/dgnd3700v2.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 097/149] board: novtech: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (94 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 096/149] board: netgear: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 098/149] board: nuvoton: " Tom Rini
                   ` (53 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Shawn Guo

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Shawn Guo <shawnguo@kernel.org>
---
 board/novtech/meerkat96/meerkat96.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/novtech/meerkat96/meerkat96.c b/board/novtech/meerkat96/meerkat96.c
index 1edebe5db9be..ca3b0698f5a8 100644
--- a/board/novtech/meerkat96/meerkat96.c
+++ b/board/novtech/meerkat96/meerkat96.c
@@ -12,7 +12,6 @@
 #include <asm/global_data.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/io.h>
-#include <common.h>
 #include <linux/sizes.h>
 
 DECLARE_GLOBAL_DATA_PTR;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 098/149] board: nuvoton: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (95 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 097/149] board: novtech: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 099/149] board: nvidia: " Tom Rini
                   ` (52 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Stanley Chu, Jim Liu

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stanley Chu <yschu@nuvoton.com>
Cc: Jim Liu <JJLIU0@nuvoton.com>
---
 board/nuvoton/arbel_evb/arbel_evb.c | 1 -
 board/nuvoton/poleg_evb/poleg_evb.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/nuvoton/arbel_evb/arbel_evb.c b/board/nuvoton/arbel_evb/arbel_evb.c
index 8fc56c183976..44e0cc9ae7cb 100644
--- a/board/nuvoton/arbel_evb/arbel_evb.c
+++ b/board/nuvoton/arbel_evb/arbel_evb.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <asm/arch/gcr.h>
diff --git a/board/nuvoton/poleg_evb/poleg_evb.c b/board/nuvoton/poleg_evb/poleg_evb.c
index 7421911a416b..093ea292ac02 100644
--- a/board/nuvoton/poleg_evb/poleg_evb.c
+++ b/board/nuvoton/poleg_evb/poleg_evb.c
@@ -4,7 +4,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <asm/io.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 099/149] board: nvidia: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (96 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 098/149] board: nuvoton: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 100/149] board: olimex: " Tom Rini
                   ` (51 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Tom Warren, Stephen Warren, Allen Martin

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Tom Warren <twarren@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Allen Martin <amartin@nvidia.com>
---
 arch/arm/include/asm/arch-tegra/gpio.h      | 1 +
 arch/arm/include/asm/arch-tegra/tegra_i2c.h | 1 +
 board/nvidia/beaver/beaver-spl.c            | 1 -
 board/nvidia/cardhu/cardhu-spl.c            | 1 -
 board/nvidia/cardhu/cardhu.c                | 1 -
 board/nvidia/dalmore/dalmore.c              | 1 -
 board/nvidia/harmony/harmony.c              | 1 -
 board/nvidia/jetson-tk1/jetson-tk1.c        | 1 -
 board/nvidia/nyan-big/nyan-big.c            | 1 -
 board/nvidia/p2371-0000/p2371-0000.c        | 1 -
 board/nvidia/p2371-2180/p2371-2180.c        | 1 -
 board/nvidia/p2571/p2571.c                  | 1 -
 board/nvidia/p2771-0000/p2771-0000.c        | 1 -
 board/nvidia/p3450-0000/p3450-0000.c        | 1 -
 board/nvidia/seaboard/seaboard.c            | 1 -
 board/nvidia/venice2/as3722_init.c          | 1 -
 board/nvidia/venice2/venice2.c              | 2 +-
 17 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/arch/arm/include/asm/arch-tegra/gpio.h b/arch/arm/include/asm/arch-tegra/gpio.h
index fe7b3a50e0d9..3c1838cf1372 100644
--- a/arch/arm/include/asm/arch-tegra/gpio.h
+++ b/arch/arm/include/asm/arch-tegra/gpio.h
@@ -6,6 +6,7 @@
 #ifndef _TEGRA_GPIO_H_
 #define _TEGRA_GPIO_H_
 
+#include <linux/types.h>
 #include <dt-bindings/gpio/tegra-gpio.h>
 
 #define TEGRA_GPIOS_PER_PORT	8
diff --git a/arch/arm/include/asm/arch-tegra/tegra_i2c.h b/arch/arm/include/asm/arch-tegra/tegra_i2c.h
index afec6bbdda33..dc8db3912219 100644
--- a/arch/arm/include/asm/arch-tegra/tegra_i2c.h
+++ b/arch/arm/include/asm/arch-tegra/tegra_i2c.h
@@ -10,6 +10,7 @@
 
 #include <asm/io.h>
 #include <asm/types.h>
+#include <asm/arch/tegra.h>
 
 struct udevice;
 
diff --git a/board/nvidia/beaver/beaver-spl.c b/board/nvidia/beaver/beaver-spl.c
index b5d0c14854dd..c6956ff9f582 100644
--- a/board/nvidia/beaver/beaver-spl.c
+++ b/board/nvidia/beaver/beaver-spl.c
@@ -7,7 +7,6 @@
  *  Svyatoslav Ryhel <clamor95@gmail.com>
  */
 
-#include <common.h>
 #include <asm/arch-tegra/tegra_i2c.h>
 #include <linux/delay.h>
 
diff --git a/board/nvidia/cardhu/cardhu-spl.c b/board/nvidia/cardhu/cardhu-spl.c
index de2fa300f1c8..80912a65a194 100644
--- a/board/nvidia/cardhu/cardhu-spl.c
+++ b/board/nvidia/cardhu/cardhu-spl.c
@@ -7,7 +7,6 @@
  *  Svyatoslav Ryhel <clamor95@gmail.com>
  */
 
-#include <common.h>
 #include <asm/arch-tegra/tegra_i2c.h>
 #include <linux/delay.h>
 
diff --git a/board/nvidia/cardhu/cardhu.c b/board/nvidia/cardhu/cardhu.c
index 6848e3400466..ab0dc61ebe54 100644
--- a/board/nvidia/cardhu/cardhu.c
+++ b/board/nvidia/cardhu/cardhu.c
@@ -4,7 +4,6 @@
  *  NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/arch/pinmux.h>
diff --git a/board/nvidia/dalmore/dalmore.c b/board/nvidia/dalmore/dalmore.c
index 72511e401e3c..c00c6343eaa0 100644
--- a/board/nvidia/dalmore/dalmore.c
+++ b/board/nvidia/dalmore/dalmore.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2010-2013, NVIDIA CORPORATION.  All rights reserved.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/arch/pinmux.h>
diff --git a/board/nvidia/harmony/harmony.c b/board/nvidia/harmony/harmony.c
index 52236792e24d..da14e09c40cc 100644
--- a/board/nvidia/harmony/harmony.c
+++ b/board/nvidia/harmony/harmony.c
@@ -4,7 +4,6 @@
  *  NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
diff --git a/board/nvidia/jetson-tk1/jetson-tk1.c b/board/nvidia/jetson-tk1/jetson-tk1.c
index 7f3cdd70fe77..da6edb42c1eb 100644
--- a/board/nvidia/jetson-tk1/jetson-tk1.c
+++ b/board/nvidia/jetson-tk1/jetson-tk1.c
@@ -4,7 +4,6 @@
  * NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <linux/printk.h>
diff --git a/board/nvidia/nyan-big/nyan-big.c b/board/nvidia/nyan-big/nyan-big.c
index 06a36f8ed387..e15f31dcfd7f 100644
--- a/board/nvidia/nyan-big/nyan-big.c
+++ b/board/nvidia/nyan-big/nyan-big.c
@@ -4,7 +4,6 @@
  * NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
diff --git a/board/nvidia/p2371-0000/p2371-0000.c b/board/nvidia/p2371-0000/p2371-0000.c
index b819b049f4b4..edf2b1adb7c6 100644
--- a/board/nvidia/p2371-0000/p2371-0000.c
+++ b/board/nvidia/p2371-0000/p2371-0000.c
@@ -4,7 +4,6 @@
  * NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <asm/arch/gpio.h>
diff --git a/board/nvidia/p2371-2180/p2371-2180.c b/board/nvidia/p2371-2180/p2371-2180.c
index 816c7bec6ae4..5f203d8ffaa8 100644
--- a/board/nvidia/p2371-2180/p2371-2180.c
+++ b/board/nvidia/p2371-2180/p2371-2180.c
@@ -4,7 +4,6 @@
  * NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <fdtdec.h>
 #include <i2c.h>
diff --git a/board/nvidia/p2571/p2571.c b/board/nvidia/p2571/p2571.c
index a4c4259eeaee..4056f986483b 100644
--- a/board/nvidia/p2571/p2571.c
+++ b/board/nvidia/p2571/p2571.c
@@ -4,7 +4,6 @@
  * NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <log.h>
 #include <asm/arch/gpio.h>
diff --git a/board/nvidia/p2771-0000/p2771-0000.c b/board/nvidia/p2771-0000/p2771-0000.c
index 5ff89c45423e..12eaa7a1e53d 100644
--- a/board/nvidia/p2771-0000/p2771-0000.c
+++ b/board/nvidia/p2771-0000/p2771-0000.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2016, NVIDIA CORPORATION
  */
 
-#include <common.h>
 #include <env.h>
 #include <fdtdec.h>
 #include <i2c.h>
diff --git a/board/nvidia/p3450-0000/p3450-0000.c b/board/nvidia/p3450-0000/p3450-0000.c
index fb1a224daa72..530c438a2e30 100644
--- a/board/nvidia/p3450-0000/p3450-0000.c
+++ b/board/nvidia/p3450-0000/p3450-0000.c
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <fdtdec.h>
 #include <i2c.h>
 #include <linux/bitops.h>
diff --git a/board/nvidia/seaboard/seaboard.c b/board/nvidia/seaboard/seaboard.c
index 829751112f1c..a646dcc96b52 100644
--- a/board/nvidia/seaboard/seaboard.c
+++ b/board/nvidia/seaboard/seaboard.c
@@ -4,7 +4,6 @@
  *  NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
 #include <asm/arch/tegra.h>
diff --git a/board/nvidia/venice2/as3722_init.c b/board/nvidia/venice2/as3722_init.c
index 395bdd99c789..b89e03703b21 100644
--- a/board/nvidia/venice2/as3722_init.c
+++ b/board/nvidia/venice2/as3722_init.c
@@ -4,7 +4,6 @@
  * NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_i2c.h>
diff --git a/board/nvidia/venice2/venice2.c b/board/nvidia/venice2/venice2.c
index d89bbe5ecce2..fa10cda4870e 100644
--- a/board/nvidia/venice2/venice2.c
+++ b/board/nvidia/venice2/venice2.c
@@ -4,7 +4,7 @@
  * NVIDIA Corporation <www.nvidia.com>
  */
 
-#include <common.h>
+#include <linux/kernel.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
 #include "pinmux-config-venice2.h"
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 100/149] board: olimex: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (97 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 099/149] board: nvidia: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 101/149] board: openpiton: " Tom Rini
                   ` (50 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Marek Vasut <marex@denx.de>
---
 board/olimex/mx23_olinuxino/mx23_olinuxino.c | 1 -
 board/olimex/mx23_olinuxino/spl_boot.c       | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/olimex/mx23_olinuxino/mx23_olinuxino.c b/board/olimex/mx23_olinuxino/mx23_olinuxino.c
index bdd5fcd76ae8..b2bb6678c23f 100644
--- a/board/olimex/mx23_olinuxino/mx23_olinuxino.c
+++ b/board/olimex/mx23_olinuxino/mx23_olinuxino.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2013 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
diff --git a/board/olimex/mx23_olinuxino/spl_boot.c b/board/olimex/mx23_olinuxino/spl_boot.c
index 248176c23cdc..eb85ce9643d8 100644
--- a/board/olimex/mx23_olinuxino/spl_boot.c
+++ b/board/olimex/mx23_olinuxino/spl_boot.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2013 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <config.h>
 #include <asm/io.h>
 #include <asm/arch/iomux-mx23.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 101/149] board: openpiton: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (98 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 100/149] board: olimex: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 102/149] board: out4: " Tom Rini
                   ` (49 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Tianrui Wei

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Tianrui Wei <tianrui-wei@outlook.com>
---
 board/openpiton/riscv64/openpiton-riscv64.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/openpiton/riscv64/openpiton-riscv64.c b/board/openpiton/riscv64/openpiton-riscv64.c
index f2282d154888..4c957e889921 100644
--- a/board/openpiton/riscv64/openpiton-riscv64.c
+++ b/board/openpiton/riscv64/openpiton-riscv64.c
@@ -8,7 +8,6 @@
  *   Pragnesh Patel <pragnesh.patel@sifive.com>
  *   Tianrui Wei <tianrui-wei@outlook.com>
  */
-#include <common.h>
 #include <init.h>
 #include <configs/openpiton-riscv64.h>
 #include <dm.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 102/149] board: out4: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (99 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 101/149] board: openpiton: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01 21:30   ` Oleh Kravchenko
  2024-05-01  2:42 ` [PATCH 103/149] board: phytec: " Tom Rini
                   ` (48 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Oleh Kravchenko

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Oleh Kravchenko <oleg@kaa.org.ua>
---
 board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c b/board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c
index edb200e9e55b..10469aecd0bb 100644
--- a/board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c
+++ b/board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c
@@ -5,7 +5,6 @@
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 #include <asm/mach-imx/boot_mode.h>
-#include <common.h>
 #include <env.h>
 
 DECLARE_GLOBAL_DATA_PTR;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 103/149] board: phytec: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (100 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 102/149] board: out4: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-03  8:47   ` Wadim Egorov
  2024-05-07  7:28   ` Teresa Remmet
  2024-05-01  2:42 ` [PATCH 104/149] board: phytium: " Tom Rini
                   ` (47 subsequent siblings)
  149 siblings, 2 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot
  Cc: Martyn Welch, Parthiban Nallathambi, Albert ARIBAUD (3ADEV),
	Niel Fourie, Teresa Remmet, Wadim Egorov, Simon Glass,
	Philipp Tomsich, Kever Yang, Yannic Moog, Daniel Schultz,
	Benjamin Hahn, Fabio Estevam

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Martyn Welch <martyn.welch@collabora.com>
Cc: Parthiban Nallathambi <parthitce@gmail.com>
Cc: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr>
Cc: Niel Fourie <lusus@denx.de>
Cc: Teresa Remmet <t.remmet@phytec.de>
Cc: Wadim Egorov <w.egorov@phytec.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Yannic Moog <y.moog@phytec.de>
Cc: Daniel Schultz <d.schultz@phytec.de>
Cc: Benjamin Hahn <B.Hahn@phytec.de>
Cc: Fabio Estevam <festevam@gmail.com>
---
 board/phytec/common/imx8m_som_detection.c    | 1 -
 board/phytec/common/phytec_som_detection.c   | 1 -
 board/phytec/pcl063/spl.c                    | 2 +-
 board/phytec/pcm052/pcm052.c                 | 1 -
 board/phytec/pcm058/pcm058.c                 | 1 -
 board/phytec/phycore_am335x_r2/board.c       | 2 +-
 board/phytec/phycore_am335x_r2/mux.c         | 1 -
 board/phytec/phycore_imx8mm/phycore-imx8mm.c | 1 -
 board/phytec/phycore_imx8mm/spl.c            | 1 -
 board/phytec/phycore_imx8mp/phycore-imx8mp.c | 1 -
 board/phytec/phycore_imx8mp/spl.c            | 1 -
 board/phytec/phycore_rk3288/phycore-rk3288.c | 1 -
 12 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/board/phytec/common/imx8m_som_detection.c b/board/phytec/common/imx8m_som_detection.c
index ee34a5b95791..bfd60ffb7773 100644
--- a/board/phytec/common/imx8m_som_detection.c
+++ b/board/phytec/common/imx8m_som_detection.c
@@ -4,7 +4,6 @@
  * Author: Teresa Remmet <t.remmet@phytec.de>
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
diff --git a/board/phytec/common/phytec_som_detection.c b/board/phytec/common/phytec_som_detection.c
index 78c173df20d4..b14bb3dbb7fa 100644
--- a/board/phytec/common/phytec_som_detection.c
+++ b/board/phytec/common/phytec_som_detection.c
@@ -4,7 +4,6 @@
  * Author: Teresa Remmet <t.remmet@phytec.de>
  */
 
-#include <common.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <i2c.h>
diff --git a/board/phytec/pcl063/spl.c b/board/phytec/pcl063/spl.c
index b6d459fdfce6..b98c46dbcbd4 100644
--- a/board/phytec/pcl063/spl.c
+++ b/board/phytec/pcl063/spl.c
@@ -6,7 +6,7 @@
  * Copyright (C) 2015-2016 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <spl.h>
 #include <asm/arch/clock.h>
diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c
index 0f7235979b04..20f2aac332da 100644
--- a/board/phytec/pcm052/pcm052.c
+++ b/board/phytec/pcm052/pcm052.c
@@ -6,7 +6,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/phytec/pcm058/pcm058.c b/board/phytec/pcm058/pcm058.c
index b37c6fe218da..ecc5b75d8d42 100644
--- a/board/phytec/pcm058/pcm058.c
+++ b/board/phytec/pcm058/pcm058.c
@@ -9,7 +9,6 @@
  * Both NAND and eMMC cannot be set because they share the
  * same pins (SD4)
  */
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <asm/arch/crm_regs.h>
diff --git a/board/phytec/phycore_am335x_r2/board.c b/board/phytec/phycore_am335x_r2/board.c
index 5700effbd3f6..2022525651dc 100644
--- a/board/phytec/phycore_am335x_r2/board.c
+++ b/board/phytec/phycore_am335x_r2/board.c
@@ -10,7 +10,7 @@
  * Copyright (C) 2019 DENX Software Engineering GmbH
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
diff --git a/board/phytec/phycore_am335x_r2/mux.c b/board/phytec/phycore_am335x_r2/mux.c
index 7091c985ba12..bb1c48da0fe5 100644
--- a/board/phytec/phycore_am335x_r2/mux.c
+++ b/board/phytec/phycore_am335x_r2/mux.c
@@ -6,7 +6,6 @@
  * Copyright (C) 2019 DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/phytec/phycore_imx8mm/phycore-imx8mm.c b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
index ef6472916903..06cffbca3a69 100644
--- a/board/phytec/phycore_imx8mm/phycore-imx8mm.c
+++ b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
@@ -4,7 +4,6 @@
  * Author: Teresa Remmet <t.remmet@phytec.de>
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/phytec/phycore_imx8mm/spl.c b/board/phytec/phycore_imx8mm/spl.c
index 690a51f7a72e..8d858590a39b 100644
--- a/board/phytec/phycore_imx8mm/spl.c
+++ b/board/phytec/phycore_imx8mm/spl.c
@@ -4,7 +4,6 @@
  * Author: Teresa Remmet <t.remmet@phytec.de>
  */
 
-#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/imx8mm_pins.h>
diff --git a/board/phytec/phycore_imx8mp/phycore-imx8mp.c b/board/phytec/phycore_imx8mp/phycore-imx8mp.c
index dbdd6bb79373..35683591433c 100644
--- a/board/phytec/phycore_imx8mp/phycore-imx8mp.c
+++ b/board/phytec/phycore_imx8mp/phycore-imx8mp.c
@@ -4,7 +4,6 @@
  * Author: Teresa Remmet <t.remmet@phytec.de>
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/phytec/phycore_imx8mp/spl.c b/board/phytec/phycore_imx8mp/spl.c
index df158024654e..352f803e4541 100644
--- a/board/phytec/phycore_imx8mp/spl.c
+++ b/board/phytec/phycore_imx8mp/spl.c
@@ -4,7 +4,6 @@
  * Author: Teresa Remmet <t.remmet@phytec.de>
  */
 
-#include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/imx8mp_pins.h>
diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c b/board/phytec/phycore_rk3288/phycore-rk3288.c
index 1ddb4a4f8085..a970634b4c33 100644
--- a/board/phytec/phycore_rk3288/phycore-rk3288.c
+++ b/board/phytec/phycore_rk3288/phycore-rk3288.c
@@ -9,7 +9,6 @@
 #include <net.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <env_internal.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 104/149] board: phytium: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (101 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 103/149] board: phytec: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 105/149] board: polyhex: " Tom Rini
                   ` (46 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: liuhao, shuyiqi

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: liuhao <liuhao@phytium.com.cn>
Cc: shuyiqi <shuyiqi@phytium.com.cn>
---
 board/phytium/durian/durian.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/phytium/durian/durian.c b/board/phytium/durian/durian.c
index 0a4048d4982f..01e210fcdd15 100644
--- a/board/phytium/durian/durian.c
+++ b/board/phytium/durian/durian.c
@@ -5,7 +5,6 @@
  * liuhao  <liuhao@phytium.com.cn>
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <event.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 105/149] board: polyhex: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (102 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 104/149] board: phytium: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 106/149] board: purism: " Tom Rini
                   ` (45 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Gilles Talis

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Gilles Talis <gilles.talis@gmail.com>
---
 board/polyhex/imx8mp_debix_model_a/imx8mp_debix_model_a.c | 1 -
 board/polyhex/imx8mp_debix_model_a/spl.c                  | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/polyhex/imx8mp_debix_model_a/imx8mp_debix_model_a.c b/board/polyhex/imx8mp_debix_model_a/imx8mp_debix_model_a.c
index 14b94c9e33ce..112770ba4931 100644
--- a/board/polyhex/imx8mp_debix_model_a/imx8mp_debix_model_a.c
+++ b/board/polyhex/imx8mp_debix_model_a/imx8mp_debix_model_a.c
@@ -11,7 +11,6 @@
 #include <asm/global_data.h>
 #include <asm/mach-imx/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
diff --git a/board/polyhex/imx8mp_debix_model_a/spl.c b/board/polyhex/imx8mp_debix_model_a/spl.c
index eb904e116b11..6cbd1815cad5 100644
--- a/board/polyhex/imx8mp_debix_model_a/spl.c
+++ b/board/polyhex/imx8mp_debix_model_a/spl.c
@@ -11,7 +11,6 @@
 #include <asm/global_data.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/sections.h>
-#include <common.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <hang.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 106/149] board: purism: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (103 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 105/149] board: polyhex: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 107/149] board: qca: " Tom Rini
                   ` (44 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Angus Ainslie, kernel

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Angus Ainslie <angus@akkea.ca>
Cc: kernel@puri.sm
---
 board/purism/librem5/librem5.c          | 1 -
 board/purism/librem5/lpddr4_timing.c    | 1 -
 board/purism/librem5/lpddr4_timing_b0.c | 1 -
 board/purism/librem5/spl.c              | 2 +-
 4 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/board/purism/librem5/librem5.c b/board/purism/librem5/librem5.c
index d0249e71f09a..a3c421572afb 100644
--- a/board/purism/librem5/librem5.c
+++ b/board/purism/librem5/librem5.c
@@ -4,7 +4,6 @@
  * Copyright 2021 Purism
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <errno.h>
 #include <asm/io.h>
diff --git a/board/purism/librem5/lpddr4_timing.c b/board/purism/librem5/lpddr4_timing.c
index 46bc7f8591cb..e9559e3d843a 100644
--- a/board/purism/librem5/lpddr4_timing.c
+++ b/board/purism/librem5/lpddr4_timing.c
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/purism/librem5/lpddr4_timing_b0.c b/board/purism/librem5/lpddr4_timing_b0.c
index ec68edaf6905..5d8f2803be67 100644
--- a/board/purism/librem5/lpddr4_timing_b0.c
+++ b/board/purism/librem5/lpddr4_timing_b0.c
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/purism/librem5/spl.c b/board/purism/librem5/spl.c
index 9aadc553302e..ed57554a2bc3 100644
--- a/board/purism/librem5/spl.c
+++ b/board/purism/librem5/spl.c
@@ -4,7 +4,7 @@
  * Copyright 2021 Purism
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <asm/io.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 107/149] board: qca: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (104 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 106/149] board: purism: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 108/149] board: qualcomm: " Tom Rini
                   ` (43 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Wills Wang, Rosy Song

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Wills Wang <wills.wang@live.com>
Cc: Rosy Song <rosysong@rosinson.com>
---
 board/qca/ap121/ap121.c | 1 -
 board/qca/ap143/ap143.c | 1 -
 board/qca/ap152/ap152.c | 1 -
 3 files changed, 3 deletions(-)

diff --git a/board/qca/ap121/ap121.c b/board/qca/ap121/ap121.c
index 60a2e19143db..6bb12602193a 100644
--- a/board/qca/ap121/ap121.c
+++ b/board/qca/ap121/ap121.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
diff --git a/board/qca/ap143/ap143.c b/board/qca/ap143/ap143.c
index ac65054136ca..b88de9c4ec85 100644
--- a/board/qca/ap143/ap143.c
+++ b/board/qca/ap143/ap143.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
diff --git a/board/qca/ap152/ap152.c b/board/qca/ap152/ap152.c
index 82458c3af421..53587288c939 100644
--- a/board/qca/ap152/ap152.c
+++ b/board/qca/ap152/ap152.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Rosy Song <rosysong@rosinson.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 108/149] board: qualcomm: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (105 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 107/149] board: qca: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  7:06   ` Sumit Garg
  2024-05-01  2:42 ` [PATCH 109/149] board: raidsonic: " Tom Rini
                   ` (42 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot
  Cc: Ramon Fried, Caleb Connolly, Neil Armstrong, Sumit Garg,
	Jorge Ramirez-Ortiz

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Caleb Connolly <caleb.connolly@linaro.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Sumit Garg <sumit.garg@linaro.org>
Cc: Jorge Ramirez-Ortiz <jorge.ramirez.ortiz@gmail.com>
---
 board/qualcomm/dragonboard410c/dragonboard410c.c | 1 -
 board/qualcomm/dragonboard820c/dragonboard820c.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c
index fbbfc0e65e24..bd2e213b3bca 100644
--- a/board/qualcomm/dragonboard410c/dragonboard410c.c
+++ b/board/qualcomm/dragonboard410c/dragonboard410c.c
@@ -6,7 +6,6 @@
  */
 
 #include <button.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/pinctrl.h>
diff --git a/board/qualcomm/dragonboard820c/dragonboard820c.c b/board/qualcomm/dragonboard820c/dragonboard820c.c
index ac7de711c588..d3333a59db01 100644
--- a/board/qualcomm/dragonboard820c/dragonboard820c.c
+++ b/board/qualcomm/dragonboard820c/dragonboard820c.c
@@ -13,7 +13,6 @@
 #include <asm/global_data.h>
 #include <linux/arm-smccc.h>
 #include <linux/psci.h>
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 109/149] board: raidsonic: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (106 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 108/149] board: qualcomm: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 110/149] board: raspberrypi: " Tom Rini
                   ` (41 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Luka Perkov

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Luka Perkov <luka@openwrt.org>
---
 board/raidsonic/ib62x0/ib62x0.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/raidsonic/ib62x0/ib62x0.c b/board/raidsonic/ib62x0/ib62x0.c
index f9bc07649e0a..8d1d549a217c 100644
--- a/board/raidsonic/ib62x0/ib62x0.c
+++ b/board/raidsonic/ib62x0/ib62x0.c
@@ -6,7 +6,6 @@
  * Simon Baatz <gmbnomis@gmail.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <miiphy.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 110/149] board: raspberrypi: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (107 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 109/149] board: raidsonic: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 111/149] board: rockchip: " Tom Rini
                   ` (40 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Matthias Brugger, Peter Robinson

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Matthias Brugger <mbrugger@suse.com>
Cc: Peter Robinson <pbrobinson@gmail.com>
---
 board/raspberrypi/rpi/rpi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 2851ebc98535..d996eb0cf695 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2012-2016 Stephen Warren
  */
 
-#include <common.h>
 #include <config.h>
 #include <dm.h>
 #include <env.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 111/149] board: rockchip: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (108 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 110/149] board: raspberrypi: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-07  7:41   ` Kever Yang
  2024-05-01  2:42 ` [PATCH 112/149] board: ronetix: " Tom Rini
                   ` (39 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot
  Cc: huang lin, Simon Glass, Philipp Tomsich, Kever Yang, Andy Yan,
	Michael Trimarchi

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: huang lin <hl@rock-chips.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Andy Yan <andy.yan@rock-chips.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
---
 arch/arm/include/asm/arch-rockchip/grf_rk3308.h | 2 ++
 board/rockchip/evb_rk3036/evb_rk3036.c          | 1 -
 board/rockchip/evb_rk3308/evb_rk3308.c          | 1 -
 board/rockchip/evb_rv1108/evb_rv1108.c          | 1 -
 board/rockchip/kylin_rk3036/kylin_rk3036.c      | 1 -
 board/rockchip/tinker_rk3288/tinker-rk3288.c    | 1 -
 6 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3308.h b/arch/arm/include/asm/arch-rockchip/grf_rk3308.h
index a995bb950d97..f4bbc2401310 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3308.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3308.h
@@ -5,6 +5,8 @@
 #ifndef _ASM_ARCH_GRF_rk3308_H
 #define _ASM_ARCH_GRF_rk3308_H
 
+#include <linux/kernel.h>
+
 struct rk3308_grf {
 	unsigned int gpio0a_iomux;
 	unsigned int reserved0;
diff --git a/board/rockchip/evb_rk3036/evb_rk3036.c b/board/rockchip/evb_rk3036/evb_rk3036.c
index 8c606463e455..a0805030ea46 100644
--- a/board/rockchip/evb_rk3036/evb_rk3036.c
+++ b/board/rockchip/evb_rk3036/evb_rk3036.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/uart.h>
diff --git a/board/rockchip/evb_rk3308/evb_rk3308.c b/board/rockchip/evb_rk3308/evb_rk3308.c
index e0c96fd70a28..c895da934a99 100644
--- a/board/rockchip/evb_rk3308/evb_rk3308.c
+++ b/board/rockchip/evb_rk3308/evb_rk3308.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2018 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <adc.h>
 #include <asm/global_data.h>
 
diff --git a/board/rockchip/evb_rv1108/evb_rv1108.c b/board/rockchip/evb_rv1108/evb_rv1108.c
index 0d7a486bed74..48b9d8f80c4b 100644
--- a/board/rockchip/evb_rv1108/evb_rv1108.c
+++ b/board/rockchip/evb_rv1108/evb_rv1108.c
@@ -4,7 +4,6 @@
  * Authors: Andy Yan <andy.yan@rock-chips.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <syscon.h>
 #include <asm/global_data.h>
diff --git a/board/rockchip/kylin_rk3036/kylin_rk3036.c b/board/rockchip/kylin_rk3036/kylin_rk3036.c
index 0ca91cdeb014..c452b131208d 100644
--- a/board/rockchip/kylin_rk3036/kylin_rk3036.c
+++ b/board/rockchip/kylin_rk3036/kylin_rk3036.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2015 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/rockchip/tinker_rk3288/tinker-rk3288.c b/board/rockchip/tinker_rk3288/tinker-rk3288.c
index e6e75981c2d1..e966e9f201ab 100644
--- a/board/rockchip/tinker_rk3288/tinker-rk3288.c
+++ b/board/rockchip/tinker_rk3288/tinker-rk3288.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2016 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <i2c_eeprom.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 112/149] board: ronetix: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (109 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 111/149] board: rockchip: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 113/149] board: samsung: " Tom Rini
                   ` (38 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Ilko Iliev

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Ilko Iliev <iliev@ronetix.com>
---
 board/ronetix/imx7-cm/imx7-cm.c         | 1 -
 board/ronetix/imx7-cm/spl.c             | 1 -
 board/ronetix/imx8mq-cm/imx8mq_cm.c     | 1 -
 board/ronetix/imx8mq-cm/lpddr4_timing.c | 1 -
 board/ronetix/imx8mq-cm/spl.c           | 2 +-
 board/ronetix/pm9261/pm9261.c           | 2 +-
 board/ronetix/pm9263/pm9263.c           | 2 +-
 board/ronetix/pm9g45/pm9g45.c           | 2 +-
 8 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/board/ronetix/imx7-cm/imx7-cm.c b/board/ronetix/imx7-cm/imx7-cm.c
index c23097f04769..a1f3f3cd7972 100644
--- a/board/ronetix/imx7-cm/imx7-cm.c
+++ b/board/ronetix/imx7-cm/imx7-cm.c
@@ -15,7 +15,6 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/io.h>
-#include <common.h>
 #include <i2c.h>
 #include <miiphy.h>
 #include <power/pmic.h>
diff --git a/board/ronetix/imx7-cm/spl.c b/board/ronetix/imx7-cm/spl.c
index b94cfd6ffc67..136de3cf3ef2 100644
--- a/board/ronetix/imx7-cm/spl.c
+++ b/board/ronetix/imx7-cm/spl.c
@@ -5,7 +5,6 @@
  * Author: Ilko Iliev <iliev@ronetix.at>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/arch/clock.h>
diff --git a/board/ronetix/imx8mq-cm/imx8mq_cm.c b/board/ronetix/imx8mq-cm/imx8mq_cm.c
index 9805a3a7da8c..fbee2c39771e 100644
--- a/board/ronetix/imx8mq-cm/imx8mq_cm.c
+++ b/board/ronetix/imx8mq-cm/imx8mq_cm.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <miiphy.h>
 #include <asm-generic/gpio.h>
 #include <asm/arch/imx8mq_pins.h>
diff --git a/board/ronetix/imx8mq-cm/lpddr4_timing.c b/board/ronetix/imx8mq-cm/lpddr4_timing.c
index 685600ee62f5..a7ad9375ce37 100644
--- a/board/ronetix/imx8mq-cm/lpddr4_timing.c
+++ b/board/ronetix/imx8mq-cm/lpddr4_timing.c
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/ronetix/imx8mq-cm/spl.c b/board/ronetix/imx8mq-cm/spl.c
index 1c675bcab25a..ee0ad20ced4f 100644
--- a/board/ronetix/imx8mq-cm/spl.c
+++ b/board/ronetix/imx8mq-cm/spl.c
@@ -4,7 +4,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <hang.h>
 #include <init.h>
 #include <asm/arch/ddr.h>
diff --git a/board/ronetix/pm9261/pm9261.c b/board/ronetix/pm9261/pm9261.c
index 07febe69dc7c..ee578749bce7 100644
--- a/board/ronetix/pm9261/pm9261.c
+++ b/board/ronetix/pm9261/pm9261.c
@@ -7,7 +7,7 @@
  * Copyright (C) 2009 Jean-Christopher PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
diff --git a/board/ronetix/pm9263/pm9263.c b/board/ronetix/pm9263/pm9263.c
index 76f62ddde912..1de1bd687016 100644
--- a/board/ronetix/pm9263/pm9263.c
+++ b/board/ronetix/pm9263/pm9263.c
@@ -7,7 +7,7 @@
  * Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <linux/sizes.h>
diff --git a/board/ronetix/pm9g45/pm9g45.c b/board/ronetix/pm9g45/pm9g45.c
index aa5c80ac6417..5d5edd9f2530 100644
--- a/board/ronetix/pm9g45/pm9g45.c
+++ b/board/ronetix/pm9g45/pm9g45.c
@@ -10,7 +10,7 @@
  * Lead Tech Design <www.leadtechdesign.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <linux/sizes.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 113/149] board: samsung: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (110 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 112/149] board: ronetix: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 114/149] board: schneider: " Tom Rini
                   ` (37 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot
  Cc: Krzysztof Kozlowski, Jaehoon Chung, Minkyu Kang, Lukasz Majewski,
	Simon Glass, Henrik Grimler, Mattijs Korpershoek, Marek Vasut,
	Caleb Connolly

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Henrik Grimler <henrik@grimler.se>
Cc: Tom Rini <trini@konsulko.com>
Cc: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Cc: Marek Vasut <marek.vasut+renesas@mailbox.org>
Cc: Caleb Connolly <caleb.connolly@linaro.org>
---
 board/samsung/arndale/arndale.c          | 2 +-
 board/samsung/arndale/arndale_spl.c      | 1 -
 board/samsung/common/board.c             | 2 +-
 board/samsung/common/exynos5-dt-types.c  | 2 +-
 board/samsung/common/exynos5-dt.c        | 2 +-
 board/samsung/common/gadget.c            | 2 +-
 board/samsung/common/misc.c              | 2 +-
 board/samsung/common/sromc.c             | 1 -
 board/samsung/goni/goni.c                | 1 -
 board/samsung/goni/onenand.c             | 2 +-
 board/samsung/odroid/odroid.c            | 2 +-
 board/samsung/origen/origen.c            | 1 -
 board/samsung/smdk5250/smdk5250_spl.c    | 1 -
 board/samsung/smdk5420/smdk5420_spl.c    | 1 -
 board/samsung/smdkc100/onenand.c         | 1 -
 board/samsung/smdkc100/smdkc100.c        | 2 +-
 board/samsung/smdkv310/smdkv310.c        | 2 +-
 board/samsung/trats/trats.c              | 1 -
 board/samsung/trats2/trats2.c            | 1 -
 board/samsung/universal_c210/onenand.c   | 2 +-
 board/samsung/universal_c210/universal.c | 1 -
 21 files changed, 11 insertions(+), 21 deletions(-)

diff --git a/board/samsung/arndale/arndale.c b/board/samsung/arndale/arndale.c
index 3ebf600e1d7c..e70b4a82687c 100644
--- a/board/samsung/arndale/arndale.c
+++ b/board/samsung/arndale/arndale.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2013 Samsung Electronics
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/samsung/arndale/arndale_spl.c b/board/samsung/arndale/arndale_spl.c
index 6ad0273e0495..c40ca7fa749c 100644
--- a/board/samsung/arndale/arndale_spl.c
+++ b/board/samsung/arndale/arndale_spl.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2012 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <asm/arch/spl.h>
 
 #define SIGNATURE	0xdeadbeef
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 5a71982775d0..eed1c2450fa6 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -4,7 +4,7 @@
  * Rajeshwari Shinde <rajeshwari.s@samsung.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <cros_ec.h>
 #include <env.h>
 #include <errno.h>
diff --git a/board/samsung/common/exynos5-dt-types.c b/board/samsung/common/exynos5-dt-types.c
index 9294d36ba358..8328bf427cce 100644
--- a/board/samsung/common/exynos5-dt-types.c
+++ b/board/samsung/common/exynos5-dt-types.c
@@ -4,7 +4,7 @@
  * Przemyslaw Marczak <p.marczak@samsung.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <adc.h>
 #include <dm.h>
 #include <errno.h>
diff --git a/board/samsung/common/exynos5-dt.c b/board/samsung/common/exynos5-dt.c
index b3e87c937513..56862bcb34da 100644
--- a/board/samsung/common/exynos5-dt.c
+++ b/board/samsung/common/exynos5-dt.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2012 Samsung Electronics
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <dwc3-uboot.h>
 #include <env.h>
diff --git a/board/samsung/common/gadget.c b/board/samsung/common/gadget.c
index 9487f9ec4e0c..c1b4342f4e22 100644
--- a/board/samsung/common/gadget.c
+++ b/board/samsung/common/gadget.c
@@ -4,7 +4,7 @@
  *  Lukasz Majewski <l.majewski@samsung.com>
  */
 
-#include <common.h>
+#include <linux/string.h>
 #include <linux/usb/ch9.h>
 
 #define EXYNOS_G_DNL_THOR_VENDOR_NUM	0x04E8
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index cc114aaaa6d3..c134a9d70e24 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -4,7 +4,7 @@
  * Przemyslaw Marczak <p.marczak@samsung.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <env.h>
 #include <libtizen.h>
diff --git a/board/samsung/common/sromc.c b/board/samsung/common/sromc.c
index 76e37dfe262a..689ac8f8c6f7 100644
--- a/board/samsung/common/sromc.c
+++ b/board/samsung/common/sromc.c
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY	UCLASS_ETH
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/arch/pinmux.h>
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index c8f5a153bb47..a1047f3fd2a2 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -5,7 +5,6 @@
  *  Kyungmin Park <kyungmin.park@samsung.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <log.h>
 #include <asm/global_data.h>
diff --git a/board/samsung/goni/onenand.c b/board/samsung/goni/onenand.c
index c67c107b16c2..6c7a03624b0a 100644
--- a/board/samsung/goni/onenand.c
+++ b/board/samsung/goni/onenand.c
@@ -4,7 +4,7 @@
  * Kyungmin Park <kyungmin.park@samsung.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
 #include <linux/mtd/samsung_onenand.h>
diff --git a/board/samsung/odroid/odroid.c b/board/samsung/odroid/odroid.c
index 99e5613ced92..84d6d919f07f 100644
--- a/board/samsung/odroid/odroid.c
+++ b/board/samsung/odroid/odroid.c
@@ -4,7 +4,7 @@
  * Przemyslaw Marczak <p.marczak@samsung.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/power.h>
diff --git a/board/samsung/origen/origen.c b/board/samsung/origen/origen.c
index ddf6a2b72fa5..c474a7e54fa3 100644
--- a/board/samsung/origen/origen.c
+++ b/board/samsung/origen/origen.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2011 Samsung Electronics
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/cpu.h>
diff --git a/board/samsung/smdk5250/smdk5250_spl.c b/board/samsung/smdk5250/smdk5250_spl.c
index b0ef34dd6aa9..1c78cb6dda4f 100644
--- a/board/samsung/smdk5250/smdk5250_spl.c
+++ b/board/samsung/smdk5250/smdk5250_spl.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2012 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/spl.h>
 #include <asm/arch/clk.h>
diff --git a/board/samsung/smdk5420/smdk5420_spl.c b/board/samsung/smdk5420/smdk5420_spl.c
index 84126f5608c7..ccf8b257ec26 100644
--- a/board/samsung/smdk5420/smdk5420_spl.c
+++ b/board/samsung/smdk5420/smdk5420_spl.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2013 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/spl.h>
 #include <asm/arch/clk.h>
diff --git a/board/samsung/smdkc100/onenand.c b/board/samsung/smdkc100/onenand.c
index 04dc04a1a4a1..86ec550aaca9 100644
--- a/board/samsung/smdkc100/onenand.c
+++ b/board/samsung/smdkc100/onenand.c
@@ -4,7 +4,6 @@
  * Kyungmin Park <kyungmin.park@samsung.com>
  */
 
-#include <common.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
diff --git a/board/samsung/smdkc100/smdkc100.c b/board/samsung/smdkc100/smdkc100.c
index 4f46911b0b4d..7d0b0fcb0ae1 100644
--- a/board/samsung/smdkc100/smdkc100.c
+++ b/board/samsung/smdkc100/smdkc100.c
@@ -5,7 +5,7 @@
  *  Kyungmin Park <kyungmin.park@samsung.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <net.h>
 #include <asm/global_data.h>
diff --git a/board/samsung/smdkv310/smdkv310.c b/board/samsung/smdkv310/smdkv310.c
index 47483a26a622..5a4874b29cdf 100644
--- a/board/samsung/smdkv310/smdkv310.c
+++ b/board/samsung/smdkv310/smdkv310.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2011 Samsung Electronics
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <log.h>
 #include <net.h>
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index 6a3e5b29b989..6efc6f3831df 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -6,7 +6,6 @@
  * Donghwa Lee <dh09.lee@samsung.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <log.h>
 #include <asm/io.h>
diff --git a/board/samsung/trats2/trats2.c b/board/samsung/trats2/trats2.c
index 81ccc124c809..612575a50941 100644
--- a/board/samsung/trats2/trats2.c
+++ b/board/samsung/trats2/trats2.c
@@ -5,7 +5,6 @@
  * Piotr Wilczek <p.wilczek@samsung.com>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/gpio.h>
 #include <asm/arch/pinmux.h>
diff --git a/board/samsung/universal_c210/onenand.c b/board/samsung/universal_c210/onenand.c
index 265a2cde4b48..ba56e86df465 100644
--- a/board/samsung/universal_c210/onenand.c
+++ b/board/samsung/universal_c210/onenand.c
@@ -4,7 +4,7 @@
  * Kyungmin Park <kyungmin.park@samsung.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
 #include <linux/mtd/samsung_onenand.h>
diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
index 2d61dff89c2c..6bed724153ed 100644
--- a/board/samsung/universal_c210/universal.c
+++ b/board/samsung/universal_c210/universal.c
@@ -5,7 +5,6 @@
  *  Kyungmin Park <kyungmin.park@samsung.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <log.h>
 #include <spi.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 114/149] board: schneider: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (111 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 113/149] board: samsung: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 115/149] board: seeed: " Tom Rini
                   ` (36 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Ralph Siemsen

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Ralph Siemsen <ralph.siemsen@linaro.org>
---
 board/schneider/rzn1-snarc/rzn1.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/schneider/rzn1-snarc/rzn1.c b/board/schneider/rzn1-snarc/rzn1.c
index 09241c3a9545..e1d5b5b0497b 100644
--- a/board/schneider/rzn1-snarc/rzn1.c
+++ b/board/schneider/rzn1-snarc/rzn1.c
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <dm.h>
 #include <ram.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 115/149] board: seeed: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (112 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 114/149] board: schneider: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 116/149] board: siemens: " Tom Rini
                   ` (35 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Stefan Roese, Navin Sankar Velliangiri

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Roese <sr@denx.de>
Cc: Navin Sankar Velliangiri <navin@linumiz.com>
---
 board/seeed/linkit-smart-7688/board.c | 1 -
 board/seeed/npi_imx6ull/spl.c         | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/seeed/linkit-smart-7688/board.c b/board/seeed/linkit-smart-7688/board.c
index bf7c69ea8389..91fa08fd9ec2 100644
--- a/board/seeed/linkit-smart-7688/board.c
+++ b/board/seeed/linkit-smart-7688/board.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
diff --git a/board/seeed/npi_imx6ull/spl.c b/board/seeed/npi_imx6ull/spl.c
index b29da2c1fc1e..2312d8fac693 100644
--- a/board/seeed/npi_imx6ull/spl.c
+++ b/board/seeed/npi_imx6ull/spl.c
@@ -4,7 +4,7 @@
  * Author: Navin Sankar Velliangiri <navin@linumiz.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <spl.h>
 #include <asm/arch/clock.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 116/149] board: siemens: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (113 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 115/149] board: seeed: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  5:09   ` Heiko Schocher
  2024-05-01  2:42 ` [PATCH 117/149] board: silinux: " Tom Rini
                   ` (34 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Anatolij Gustschin, Heiko Schocher, Le Jin, Jan Kiszka

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Le Jin <le.jin@siemens.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
---
 board/siemens/capricorn/board.c   | 1 -
 board/siemens/capricorn/spl.c     | 1 -
 board/siemens/corvus/board.c      | 2 +-
 board/siemens/iot2050/board.c     | 2 +-
 board/siemens/smartweb/smartweb.c | 2 +-
 board/siemens/taurus/taurus.c     | 2 +-
 6 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c
index b1d7e3b1c05a..53dac8bfe1be 100644
--- a/board/siemens/capricorn/board.c
+++ b/board/siemens/capricorn/board.c
@@ -5,7 +5,6 @@
  * Copyright 2019 Siemens AG
  *
  */
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <env.h>
diff --git a/board/siemens/capricorn/spl.c b/board/siemens/capricorn/spl.c
index e160c611a962..696b5ebd340b 100644
--- a/board/siemens/capricorn/spl.c
+++ b/board/siemens/capricorn/spl.c
@@ -5,7 +5,6 @@
  * Copyright 2019 Siemens AG
  *
  */
-#include <common.h>
 #include <init.h>
 #include <spl.h>
 #include <dm.h>
diff --git a/board/siemens/corvus/board.c b/board/siemens/corvus/board.c
index 569b86db00ac..7d73d1f2b361 100644
--- a/board/siemens/corvus/board.c
+++ b/board/siemens/corvus/board.c
@@ -10,7 +10,7 @@
  * Lead Tech Design <www.leadtechdesign.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/siemens/iot2050/board.c b/board/siemens/iot2050/board.c
index 0b0686e2628b..ed292c364a5f 100644
--- a/board/siemens/iot2050/board.c
+++ b/board/siemens/iot2050/board.c
@@ -8,7 +8,7 @@
  *   Jan Kiszka <jan.kiszka@siemens.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <fdt_support.h>
diff --git a/board/siemens/smartweb/smartweb.c b/board/siemens/smartweb/smartweb.c
index 15044c7d0edf..946fbc3f2299 100644
--- a/board/siemens/smartweb/smartweb.c
+++ b/board/siemens/smartweb/smartweb.c
@@ -15,7 +15,7 @@
  * DENX Software Engineering GmbH
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/siemens/taurus/taurus.c b/board/siemens/taurus/taurus.c
index ad44a7c0d28b..bda12a977088 100644
--- a/board/siemens/taurus/taurus.c
+++ b/board/siemens/taurus/taurus.c
@@ -12,7 +12,7 @@
  */
 
 #include <command.h>
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 117/149] board: silinux: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (114 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 116/149] board: siemens: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 118/149] board: sipeed: " Tom Rini
                   ` (33 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Lad Prabhakar

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 board/silinux/ek874/ek874.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/silinux/ek874/ek874.c b/board/silinux/ek874/ek874.c
index 6dc804a0c06e..a3fe6f96d091 100644
--- a/board/silinux/ek874/ek874.c
+++ b/board/silinux/ek874/ek874.c
@@ -6,8 +6,8 @@
  * Copyright (C) 2021 Renesas Electronics Corporation
  */
 
-#include <common.h>
 #include <asm/global_data.h>
+#include <asm/u-boot.h>
 #include <asm/io.h>
 
 #define RST_BASE	0xE6160000
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 118/149] board: sipeed: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (115 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 117/149] board: silinux: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  4:30   ` Sean Anderson
  2024-05-01  2:42 ` [PATCH 119/149] board: skyworth: " Tom Rini
                   ` (32 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Sean Anderson

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Sean Anderson <seanga2@gmail.com>
---
 board/sipeed/maix/maix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/sipeed/maix/maix.c b/board/sipeed/maix/maix.c
index 06653b5a8765..08077a1f9e13 100644
--- a/board/sipeed/maix/maix.c
+++ b/board/sipeed/maix/maix.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdt_support.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 119/149] board: skyworth: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (116 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 118/149] board: sipeed: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 120/149] board: socionext: " Tom Rini
                   ` (31 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Yang Xiwen

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Yang Xiwen <firbidden405@outlook.com>
---
 board/skyworth/hc2910-2aghd05/hc2910-2aghd05.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/skyworth/hc2910-2aghd05/hc2910-2aghd05.c b/board/skyworth/hc2910-2aghd05/hc2910-2aghd05.c
index abad5efdafb4..22be10d70a73 100644
--- a/board/skyworth/hc2910-2aghd05/hc2910-2aghd05.c
+++ b/board/skyworth/hc2910-2aghd05/hc2910-2aghd05.c
@@ -3,7 +3,6 @@
  * Board init file for Skyworth HC2910 2AGHD05
  */
 
-#include <common.h>
 #include <fdtdec.h>
 #include <init.h>
 #include <asm/system.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 120/149] board: socionext: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (117 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 119/149] board: skyworth: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 121/149] board: socrates: " Tom Rini
                   ` (30 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Masahisa Kojima

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Masahisa Kojima <kojima.masahisa@socionext.com>
---
 board/socionext/developerbox/developerbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/socionext/developerbox/developerbox.c b/board/socionext/developerbox/developerbox.c
index 062e4a7b79fa..556a9ed527e7 100644
--- a/board/socionext/developerbox/developerbox.c
+++ b/board/socionext/developerbox/developerbox.c
@@ -9,7 +9,7 @@
 #include <asm/armv8/mmu.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <common.h>
+#include <config.h>
 #include <efi.h>
 #include <efi_loader.h>
 #include <env_internal.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 121/149] board: socrates: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (118 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 120/149] board: socionext: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  5:11   ` Heiko Schocher
  2024-05-01  2:42 ` [PATCH 122/149] board: softing: " Tom Rini
                   ` (29 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Heiko Schocher

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Heiko Schocher <hs@denx.de>
---
 board/socrates/ddr.c      | 1 -
 board/socrates/law.c      | 2 +-
 board/socrates/nand.c     | 2 +-
 board/socrates/sdram.c    | 2 +-
 board/socrates/socrates.c | 2 +-
 board/socrates/tlb.c      | 3 ++-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/board/socrates/ddr.c b/board/socrates/ddr.c
index 3a94f7beccd3..bf4894eff671 100644
--- a/board/socrates/ddr.c
+++ b/board/socrates/ddr.c
@@ -3,7 +3,6 @@
  * Copyright 2008 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
diff --git a/board/socrates/law.c b/board/socrates/law.c
index e4427ecff1bc..446fdbcaba31 100644
--- a/board/socrates/law.c
+++ b/board/socrates/law.c
@@ -9,7 +9,7 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 
diff --git a/board/socrates/nand.c b/board/socrates/nand.c
index b1e38c511e5f..517a4a0af6ab 100644
--- a/board/socrates/nand.c
+++ b/board/socrates/nand.c
@@ -4,7 +4,7 @@
  * Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com.
  */
 
-#include <common.h>
+#include <config.h>
 
 #if defined(CFG_SYS_NAND_BASE)
 #include <nand.h>
diff --git a/board/socrates/sdram.c b/board/socrates/sdram.c
index 61402a554b78..d0415d26ce72 100644
--- a/board/socrates/sdram.c
+++ b/board/socrates/sdram.c
@@ -4,7 +4,7 @@
  * Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com.
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c
index 1d63c81a9c81..6e6e276cc741 100644
--- a/board/socrates/socrates.c
+++ b/board/socrates/socrates.c
@@ -10,7 +10,7 @@
  * (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <clock_legacy.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/socrates/tlb.c b/board/socrates/tlb.c
index 631f6c340755..0cc675781d16 100644
--- a/board/socrates/tlb.c
+++ b/board/socrates/tlb.c
@@ -9,8 +9,9 @@
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/mmu.h>
+#include <asm/ppc.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
 	/* TLB 0 - for temp stack in cache */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 122/149] board: softing: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (119 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 121/149] board: socrates: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 123/149] board: solidrun: " Tom Rini
                   ` (28 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Silvio Fricke, Marek Vasut

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Silvio Fricke <open-source@softing.de>
Cc: Marek Vasut <marex@denx.de>
---
 board/softing/vining_2000/vining_2000.c | 2 +-
 board/softing/vining_fpga/socfpga.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c
index 4483bd7f7a38..a0dbf97524bd 100644
--- a/board/softing/vining_2000/vining_2000.c
+++ b/board/softing/vining_2000/vining_2000.c
@@ -24,7 +24,7 @@
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/sizes.h>
-#include <common.h>
+#include <config.h>
 #include <fsl_esdhc_imx.h>
 #include <mmc.h>
 #include <i2c.h>
diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c
index b3f9550742ec..2483fbcf2631 100644
--- a/board/softing/vining_fpga/socfpga.c
+++ b/board/softing/vining_fpga/socfpga.c
@@ -3,7 +3,7 @@
  *  Copyright (C) 2012 Altera Corporation <www.altera.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <eeprom.h>
 #include <env.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 123/149] board: solidrun: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (120 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 122/149] board: softing: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 124/149] board: somlabs: " Tom Rini
                   ` (27 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Stefan Roese, Baruch Siach, Fabio Estevam, Josua Mayer

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Roese <sr@denx.de>
Cc: Baruch Siach <baruch@tkos.co.il>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Josua Mayer <josua@solid-run.com>
---
 board/solidrun/clearfog/clearfog.c   | 2 +-
 board/solidrun/common/tlv_data.c     | 2 +-
 board/solidrun/mx6cuboxi/mx6cuboxi.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index 6977db0a9e28..2dbd071abd9f 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -3,7 +3,7 @@
  * Copyright (C) 2015 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
diff --git a/board/solidrun/common/tlv_data.c b/board/solidrun/common/tlv_data.c
index cf5824886c37..b8086605c3ae 100644
--- a/board/solidrun/common/tlv_data.c
+++ b/board/solidrun/common/tlv_data.c
@@ -3,9 +3,9 @@
  * Copyright 2020 SolidRun
  */
 
-#include <common.h>
 #include <compiler.h>
 #include <tlv_eeprom.h>
+#include <linux/kernel.h>
 #include "tlv_data.h"
 
 #define SR_TLV_CODE_RAM_SIZE	0x81
diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c
index 7f4811d88794..3406ba8616e0 100644
--- a/board/solidrun/mx6cuboxi/mx6cuboxi.c
+++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c
@@ -15,7 +15,7 @@
  * Ported to SolidRun microSOM by Rabeeh Khoury <rabeeh@solid-run.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <image.h>
 #include <init.h>
 #include <log.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 124/149] board: somlabs: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (121 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 123/149] board: solidrun: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 125/149] board: sr1500: " Tom Rini
                   ` (26 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Arkadiusz Karas

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Arkadiusz Karas <arkadiusz.karas@somlabs.com>
---
 board/somlabs/visionsom-6ull/visionsom-6ull.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/somlabs/visionsom-6ull/visionsom-6ull.c b/board/somlabs/visionsom-6ull/visionsom-6ull.c
index 38d14f6bc268..0ecb5c3b4930 100644
--- a/board/somlabs/visionsom-6ull/visionsom-6ull.c
+++ b/board/somlabs/visionsom-6ull/visionsom-6ull.c
@@ -17,7 +17,6 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/io.h>
-#include <common.h>
 #include <env.h>
 #include <fsl_esdhc_imx.h>
 #include <i2c.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 125/149] board: sr1500: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (122 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 124/149] board: somlabs: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 126/149] board: st: " Tom Rini
                   ` (25 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Stefan Roese

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Roese <sr@denx.de>
---
 board/sr1500/socfpga.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/sr1500/socfpga.c b/board/sr1500/socfpga.c
index d9125a76bf7f..5603ef24da80 100644
--- a/board/sr1500/socfpga.c
+++ b/board/sr1500/socfpga.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/gpio.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 126/149] board: st: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (123 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 125/149] board: sr1500: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-17  6:06   ` Patrice CHOTARD
  2024-05-01  2:42 ` [PATCH 127/149] board: ste: " Tom Rini
                   ` (24 subsequent siblings)
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot
  Cc: Patrick Delaunay, Patrice Chotard, Kamil Lulko, Vikas Manocha,
	Dillon Min

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Kamil Lulko <kamil.lulko@gmail.com>
Cc: Vikas Manocha <vikas.manocha@st.com>
Cc: Dillon Min <dillon.minfei@gmail.com>
---
 board/st/common/cmd_stboard.c                        | 1 -
 board/st/common/stm32mp_dfu.c                        | 1 -
 board/st/common/stm32mp_dfu_virt.c                   | 1 -
 board/st/common/stpmic1.c                            | 1 -
 board/st/common/stusb160x.c                          | 1 -
 board/st/stih410-b2260/board.c                       | 1 -
 board/st/stm32f429-discovery/led.c                   | 1 -
 board/st/stm32f429-discovery/stm32f429-discovery.c   | 1 -
 board/st/stm32f429-evaluation/stm32f429-evaluation.c | 1 -
 board/st/stm32f469-discovery/stm32f469-discovery.c   | 1 -
 board/st/stm32f746-disco/stm32f746-disco.c           | 2 +-
 board/st/stm32h743-disco/stm32h743-disco.c           | 1 -
 board/st/stm32h743-eval/stm32h743-eval.c             | 1 -
 board/st/stm32h750-art-pi/stm32h750-art-pi.c         | 1 -
 board/st/stm32mp1/spl.c                              | 1 -
 board/st/stm32mp1/stm32mp1.c                         | 1 -
 16 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c
index c8c0bad5da16..50da063051b8 100644
--- a/board/st/common/cmd_stboard.c
+++ b/board/st/common/cmd_stboard.c
@@ -30,7 +30,6 @@
  */
 
 #ifndef CONFIG_SPL_BUILD
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <misc.h>
diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c
index 77edb86e78c1..1db8e45480e1 100644
--- a/board/st/common/stm32mp_dfu.c
+++ b/board/st/common/stm32mp_dfu.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2020, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <dfu.h>
diff --git a/board/st/common/stm32mp_dfu_virt.c b/board/st/common/stm32mp_dfu_virt.c
index f0f99605796a..4049d72bf9d5 100644
--- a/board/st/common/stm32mp_dfu_virt.c
+++ b/board/st/common/stm32mp_dfu_virt.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2023, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <dfu.h>
 #include <dm.h>
 #include <misc.h>
diff --git a/board/st/common/stpmic1.c b/board/st/common/stpmic1.c
index 969ad484864d..45c2bb5bceac 100644
--- a/board/st/common/stpmic1.c
+++ b/board/st/common/stpmic1.c
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY LOGC_BOARD
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <asm/io.h>
diff --git a/board/st/common/stusb160x.c b/board/st/common/stusb160x.c
index f0385e5e3830..e1ad8b00717a 100644
--- a/board/st/common/stusb160x.c
+++ b/board/st/common/stusb160x.c
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_I2C_GENERIC
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 
diff --git a/board/st/stih410-b2260/board.c b/board/st/stih410-b2260/board.c
index 82817571ae3d..a912712c9dd9 100644
--- a/board/st/stih410-b2260/board.c
+++ b/board/st/stih410-b2260/board.c
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/cache.h>
diff --git a/board/st/stm32f429-discovery/led.c b/board/st/stm32f429-discovery/led.c
index 8dda6a97bd1c..4b8038341b9e 100644
--- a/board/st/stm32f429-discovery/led.c
+++ b/board/st/stm32f429-discovery/led.c
@@ -4,7 +4,6 @@
  * Kamil Lulko, <kamil.lulko@gmail.com>
  */
 
-#include <common.h>
 #include <status_led.h>
 #include <asm-generic/gpio.h>
 
diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c
index 55e464cc7cf1..22d751b44d3d 100644
--- a/board/st/stm32f429-discovery/stm32f429-discovery.c
+++ b/board/st/stm32f429-discovery/stm32f429-discovery.c
@@ -10,7 +10,6 @@
  * Kamil Lulko, <kamil.lulko@gmail.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/st/stm32f429-evaluation/stm32f429-evaluation.c b/board/st/stm32f429-evaluation/stm32f429-evaluation.c
index 25472f041fef..db59ebb838e7 100644
--- a/board/st/stm32f429-evaluation/stm32f429-evaluation.c
+++ b/board/st/stm32f429-evaluation/stm32f429-evaluation.c
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/st/stm32f469-discovery/stm32f469-discovery.c b/board/st/stm32f469-discovery/stm32f469-discovery.c
index 9ed6c1e67680..134d207d95d8 100644
--- a/board/st/stm32f469-discovery/stm32f469-discovery.c
+++ b/board/st/stm32f469-discovery/stm32f469-discovery.c
@@ -4,7 +4,6 @@
  * Author(s): Patrice CHOTARD, <patrice.chotard@foss.st.com> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index 0f9666008430..6d86e4fe7aab 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -4,7 +4,7 @@
  * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/st/stm32h743-disco/stm32h743-disco.c b/board/st/stm32h743-disco/stm32h743-disco.c
index 4ca5e847212e..35ef9ff9e288 100644
--- a/board/st/stm32h743-disco/stm32h743-disco.c
+++ b/board/st/stm32h743-disco/stm32h743-disco.c
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/st/stm32h743-eval/stm32h743-eval.c b/board/st/stm32h743-eval/stm32h743-eval.c
index 4ca5e847212e..35ef9ff9e288 100644
--- a/board/st/stm32h743-eval/stm32h743-eval.c
+++ b/board/st/stm32h743-eval/stm32h743-eval.c
@@ -4,7 +4,6 @@
  * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/st/stm32h750-art-pi/stm32h750-art-pi.c b/board/st/stm32h750-art-pi/stm32h750-art-pi.c
index 0d39ce849a62..75aa4d139fb4 100644
--- a/board/st/stm32h750-art-pi/stm32h750-art-pi.c
+++ b/board/st/stm32h750-art-pi/stm32h750-art-pi.c
@@ -4,7 +4,6 @@
  * Author(s): Dillon Min <dillon.minfei@gmail.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/st/stm32mp1/spl.c b/board/st/stm32mp1/spl.c
index 8b4a529f759a..d63dffd97e87 100644
--- a/board/st/stm32mp1/spl.c
+++ b/board/st/stm32mp1/spl.c
@@ -4,7 +4,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <power/pmic.h>
 #include <power/stpmic1.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index db15d78237ea..97532a8156ff 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY LOGC_BOARD
 
-#include <common.h>
 #include <adc.h>
 #include <bootm.h>
 #include <button.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 127/149] board: ste: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (124 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 126/149] board: st: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 128/149] board: storopack: " Tom Rini
                   ` (23 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Stephan Gerhold

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stephan Gerhold <stephan@gerhold.net>
---
 board/ste/stemmy/stemmy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/ste/stemmy/stemmy.c b/board/ste/stemmy/stemmy.c
index 060d562cbc90..826c002907d6 100644
--- a/board/ste/stemmy/stemmy.c
+++ b/board/ste/stemmy/stemmy.c
@@ -2,12 +2,12 @@
 /*
  * Copyright (C) 2019 Stephan Gerhold <stephan@gerhold.net>
  */
-#include <common.h>
 #include <env.h>
 #include <fdt_support.h>
 #include <init.h>
 #include <log.h>
 #include <stdlib.h>
+#include <linux/errno.h>
 #include <asm/global_data.h>
 #include <asm/setup.h>
 #include <asm/system.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 128/149] board: storopack: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (125 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 127/149] board: ste: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 129/149] board: sysam: " Tom Rini
                   ` (22 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Fabio Estevam, Eduard Strehlau

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Fabio Estevam <festevam@denx.de>
Cc: Eduard Strehlau <eduard@lionizers.com>
---
 board/storopack/smegw01/smegw01.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/storopack/smegw01/smegw01.c b/board/storopack/smegw01/smegw01.c
index 345191b31c29..910feeda31f5 100644
--- a/board/storopack/smegw01/smegw01.c
+++ b/board/storopack/smegw01/smegw01.c
@@ -12,7 +12,6 @@
 #include <asm/mach-imx/hab.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/io.h>
-#include <common.h>
 #include <env.h>
 #include <env_internal.h>
 #include <asm/arch/crm_regs.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 129/149] board: sysam: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (126 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 128/149] board: storopack: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 130/149] board: tcl: " Tom Rini
                   ` (21 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Angelo Dureghello, Patrick Delaunay, Patrice Chotard

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Angelo Dureghello <angelo@sysam.it>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
---
 board/sysam/amcore/amcore.c   | 2 +-
 board/sysam/stmark2/stmark2.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/sysam/amcore/amcore.c b/board/sysam/amcore/amcore.c
index 086421d9265d..d5aa1f0776fd 100644
--- a/board/sysam/amcore/amcore.c
+++ b/board/sysam/amcore/amcore.c
@@ -7,7 +7,7 @@
  * This file copies memory testdram() from sandburst/common/sb_common.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/board/sysam/stmark2/stmark2.c b/board/sysam/stmark2/stmark2.c
index 475e3edfa62e..7818f2671d5a 100644
--- a/board/sysam/stmark2/stmark2.c
+++ b/board/sysam/stmark2/stmark2.c
@@ -5,7 +5,7 @@
  * (C) Copyright 2017 Angelo Dureghello <angelo@sysam.it>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <spi.h>
 #include <asm/global_data.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 130/149] board: tcl: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (127 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 129/149] board: sysam: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 131/149] board: technexion: " Tom Rini
                   ` (20 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Enric Balletbo i Serra

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 board/tcl/sl50/board.c | 2 +-
 board/tcl/sl50/mux.c   | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/tcl/sl50/board.c b/board/tcl/sl50/board.c
index 3f7d42f3eb8d..2e54ede62d6f 100644
--- a/board/tcl/sl50/board.c
+++ b/board/tcl/sl50/board.c
@@ -7,7 +7,7 @@
  * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
diff --git a/board/tcl/sl50/mux.c b/board/tcl/sl50/mux.c
index ab9088145aba..6d89c4a3998d 100644
--- a/board/tcl/sl50/mux.c
+++ b/board/tcl/sl50/mux.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 131/149] board: technexion: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (128 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 130/149] board: tcl: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:42 ` [PATCH 132/149] board: terasic: " Tom Rini
                   ` (19 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Fabio Estevam, Richard Hu, Otavio Salvador, Marek Vasut

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Richard Hu <richard.hu@technexion.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Marek Vasut <marex@denx.de>
---
 board/technexion/pico-imx6/pico-imx6.c           | 1 -
 board/technexion/pico-imx6/spl.c                 | 1 -
 board/technexion/pico-imx6ul/pico-imx6ul.c       | 1 -
 board/technexion/pico-imx6ul/spl.c               | 1 -
 board/technexion/pico-imx7d/pico-imx7d.c         | 1 -
 board/technexion/pico-imx7d/spl.c                | 2 +-
 board/technexion/pico-imx8mq/lpddr4_timing_1gb.c | 1 -
 board/technexion/pico-imx8mq/lpddr4_timing_2gb.c | 1 -
 board/technexion/pico-imx8mq/lpddr4_timing_3gb.c | 1 -
 board/technexion/pico-imx8mq/lpddr4_timing_4gb.c | 1 -
 board/technexion/pico-imx8mq/pico-imx8mq.c       | 1 -
 board/technexion/pico-imx8mq/spl.c               | 1 -
 12 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/board/technexion/pico-imx6/pico-imx6.c b/board/technexion/pico-imx6/pico-imx6.c
index 6b9c4f4373cc..03170b148c52 100644
--- a/board/technexion/pico-imx6/pico-imx6.c
+++ b/board/technexion/pico-imx6/pico-imx6.c
@@ -6,7 +6,6 @@
  * Author: Fabio Estevam <festevam@gmail.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/technexion/pico-imx6/spl.c b/board/technexion/pico-imx6/spl.c
index 3b36bb8df131..50f517742647 100644
--- a/board/technexion/pico-imx6/spl.c
+++ b/board/technexion/pico-imx6/spl.c
@@ -6,7 +6,6 @@
  *	   Fabio Estevam <festevam@gmail.com>
  */
 
-#include <common.h>
 #include <image.h>
 #include <init.h>
 #include <asm/arch/clock.h>
diff --git a/board/technexion/pico-imx6ul/pico-imx6ul.c b/board/technexion/pico-imx6ul/pico-imx6ul.c
index 682c88dee78d..10dcf8077e20 100644
--- a/board/technexion/pico-imx6ul/pico-imx6ul.c
+++ b/board/technexion/pico-imx6ul/pico-imx6ul.c
@@ -17,7 +17,6 @@
 #include <asm/gpio.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/io.h>
-#include <common.h>
 #include <miiphy.h>
 #include <linux/delay.h>
 #include <linux/sizes.h>
diff --git a/board/technexion/pico-imx6ul/spl.c b/board/technexion/pico-imx6ul/spl.c
index ff56fd88d68e..67484e62dad6 100644
--- a/board/technexion/pico-imx6ul/spl.c
+++ b/board/technexion/pico-imx6ul/spl.c
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c
index b12941ccf82d..d0f739c624a1 100644
--- a/board/technexion/pico-imx7d/pico-imx7d.c
+++ b/board/technexion/pico-imx7d/pico-imx7d.c
@@ -15,7 +15,6 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/io.h>
-#include <common.h>
 #include <miiphy.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
diff --git a/board/technexion/pico-imx7d/spl.c b/board/technexion/pico-imx7d/spl.c
index 0192eafbaa14..8f219f76c603 100644
--- a/board/technexion/pico-imx7d/spl.c
+++ b/board/technexion/pico-imx7d/spl.c
@@ -5,7 +5,7 @@
  * Author: Richard Hu <richard.hu@technexion.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/arch/clock.h>
diff --git a/board/technexion/pico-imx8mq/lpddr4_timing_1gb.c b/board/technexion/pico-imx8mq/lpddr4_timing_1gb.c
index 97b9ee27527a..cd8ba59f6454 100644
--- a/board/technexion/pico-imx8mq/lpddr4_timing_1gb.c
+++ b/board/technexion/pico-imx8mq/lpddr4_timing_1gb.c
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/technexion/pico-imx8mq/lpddr4_timing_2gb.c b/board/technexion/pico-imx8mq/lpddr4_timing_2gb.c
index 1572a50a05f8..3f66238a5044 100644
--- a/board/technexion/pico-imx8mq/lpddr4_timing_2gb.c
+++ b/board/technexion/pico-imx8mq/lpddr4_timing_2gb.c
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/technexion/pico-imx8mq/lpddr4_timing_3gb.c b/board/technexion/pico-imx8mq/lpddr4_timing_3gb.c
index 3fc60a3eeb98..2f037abc97dd 100644
--- a/board/technexion/pico-imx8mq/lpddr4_timing_3gb.c
+++ b/board/technexion/pico-imx8mq/lpddr4_timing_3gb.c
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/technexion/pico-imx8mq/lpddr4_timing_4gb.c b/board/technexion/pico-imx8mq/lpddr4_timing_4gb.c
index 93b342351628..336ac4c2f548 100644
--- a/board/technexion/pico-imx8mq/lpddr4_timing_4gb.c
+++ b/board/technexion/pico-imx8mq/lpddr4_timing_4gb.c
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <common.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/lpddr4_define.h>
 
diff --git a/board/technexion/pico-imx8mq/pico-imx8mq.c b/board/technexion/pico-imx8mq/pico-imx8mq.c
index 2be3206f78a3..1659db112fa1 100644
--- a/board/technexion/pico-imx8mq/pico-imx8mq.c
+++ b/board/technexion/pico-imx8mq/pico-imx8mq.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <malloc.h>
diff --git a/board/technexion/pico-imx8mq/spl.c b/board/technexion/pico-imx8mq/spl.c
index 1a9c7996cb2a..c9d68b402aeb 100644
--- a/board/technexion/pico-imx8mq/spl.c
+++ b/board/technexion/pico-imx8mq/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2018 NXP
  */
 
-#include <common.h>
 #include <hang.h>
 #include <init.h>
 #include <log.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 132/149] board: terasic: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (129 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 131/149] board: technexion: " Tom Rini
@ 2024-05-01  2:42 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 133/149] board: thead: " Tom Rini
                   ` (18 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:42 UTC (permalink / raw)
  To: u-boot; +Cc: Anatolij Gustschin

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Anatolij Gustschin <agust@denx.de>
---
 board/terasic/de1-soc/socfpga.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/terasic/de1-soc/socfpga.c b/board/terasic/de1-soc/socfpga.c
index 22fbee40aba9..8d17f44fd373 100644
--- a/board/terasic/de1-soc/socfpga.c
+++ b/board/terasic/de1-soc/socfpga.c
@@ -2,7 +2,6 @@
 /*
  *  Copyright (C) 2012 Altera Corporation <www.altera.com>
  */
-#include <common.h>
 #include <spl.h>
 
 void board_boot_order(u32 *spl_boot_list)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 133/149] board: thead: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (130 preceding siblings ...)
  2024-05-01  2:42 ` [PATCH 132/149] board: terasic: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 134/149] board: theadorable: " Tom Rini
                   ` (17 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Wei Fu, Yixun Lan

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Wei Fu <wefu@redhat.com>
Cc: Yixun Lan <dlan@gentoo.org>
---
 board/thead/th1520_lpi4a/board.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/thead/th1520_lpi4a/board.c b/board/thead/th1520_lpi4a/board.c
index 16c3e456b3e5..bb83e7561f4e 100644
--- a/board/thead/th1520_lpi4a/board.c
+++ b/board/thead/th1520_lpi4a/board.c
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <cpu_func.h>
 
 int board_init(void)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 134/149] board: theadorable: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (131 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 133/149] board: thead: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 135/149] board: ti: " Tom Rini
                   ` (16 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Stefan Roese

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Stefan Roese <sr@denx.de>
---
 board/theadorable/fpga.c        | 2 +-
 board/theadorable/theadorable.c | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/theadorable/fpga.c b/board/theadorable/fpga.c
index bc8379cccf6d..56d3647227bb 100644
--- a/board/theadorable/fpga.c
+++ b/board/theadorable/fpga.c
@@ -3,10 +3,10 @@
  * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <altera.h>
 #include <errno.h>
 #include <log.h>
+#include <time.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/theadorable/theadorable.c b/board/theadorable/theadorable.c
index 144f122bb206..cca5c3d33b5e 100644
--- a/board/theadorable/theadorable.c
+++ b/board/theadorable/theadorable.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2015-2019 Stefan Roese <sr@denx.de>
  */
 
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <dm.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 135/149] board: ti: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (132 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 134/149] board: theadorable: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 136/149] board: timll: " Tom Rini
                   ` (15 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot
  Cc: Andrew Davis, Derald D. Woods, Nishanth Menon,
	Neha Malcom Francis, Prasanth Babu Mantena, Simon Glass

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Tom Rini <trini@konsulko.com>
Cc: Andrew Davis <afd@ti.com>
Cc: "Derald D. Woods" <woods.technical@gmail.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Neha Malcom Francis <n-francis@ti.com>
Cc: Prasanth Babu Mantena <p-mantena@ti.com>
Cc: Simon Glass <sjg@chromium.org>
---
 board/ti/am335x/board.c        | 2 +-
 board/ti/am335x/board.h        | 2 ++
 board/ti/am335x/mux.c          | 2 +-
 board/ti/am43xx/board.c        | 2 +-
 board/ti/am43xx/board.h        | 1 +
 board/ti/am43xx/mux.c          | 1 -
 board/ti/am57xx/board.c        | 2 +-
 board/ti/common/board_detect.c | 2 +-
 board/ti/common/cape_detect.c  | 3 ++-
 board/ti/dra7xx/evm.c          | 2 +-
 board/ti/ks2_evm/board.c       | 2 +-
 board/ti/ks2_evm/board_k2e.c   | 1 -
 board/ti/ks2_evm/board_k2g.c   | 2 +-
 board/ti/ks2_evm/board_k2hk.c  | 1 -
 board/ti/ks2_evm/board_k2l.c   | 1 -
 board/ti/ks2_evm/ddr3_cfg.c    | 1 -
 board/ti/ks2_evm/ddr3_k2e.c    | 1 -
 board/ti/ks2_evm/ddr3_k2g.c    | 1 -
 board/ti/ks2_evm/ddr3_k2hk.c   | 1 -
 board/ti/ks2_evm/ddr3_k2l.c    | 1 -
 board/ti/omap3evm/evm.c        | 2 +-
 board/ti/panda/panda.c         | 1 -
 board/ti/sdp4430/cmd_bat.c     | 1 -
 board/ti/sdp4430/sdp.c         | 1 -
 include/linux/mtd/omap_gpmc.h  | 2 ++
 25 files changed, 16 insertions(+), 22 deletions(-)

diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 34f987c2b728..34f4a919656e 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -7,7 +7,7 @@
  * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
diff --git a/board/ti/am335x/board.h b/board/ti/am335x/board.h
index 1284c160d811..b0a3842423fb 100644
--- a/board/ti/am335x/board.h
+++ b/board/ti/am335x/board.h
@@ -10,6 +10,8 @@
 #ifndef _BOARD_H_
 #define _BOARD_H_
 
+#include <linux/string.h>
+
 /**
  * AM335X (EMIF_4D) EMIF REG_COS_COUNT_1, REG_COS_COUNT_2, and
  * REG_PR_OLD_COUNT values to avoid LCDC DMA FIFO underflows and Frame
diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c
index 0bad154f86ed..960de15398f8 100644
--- a/board/ti/am335x/mux.c
+++ b/board/ti/am335x/mux.c
@@ -13,7 +13,7 @@
  * GNU General Public License for more details.
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c
index fdeb63d47900..40b7fcfc3876 100644
--- a/board/ti/am43xx/board.c
+++ b/board/ti/am43xx/board.c
@@ -7,7 +7,7 @@
  * Copyright (C) 2013, Texas Instruments, Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 #include <dm/uclass.h>
 #include <env.h>
diff --git a/board/ti/am43xx/board.h b/board/ti/am43xx/board.h
index 37a169aaf758..b1025bdda1e1 100644
--- a/board/ti/am43xx/board.h
+++ b/board/ti/am43xx/board.h
@@ -11,6 +11,7 @@
 #ifndef _BOARD_H_
 #define _BOARD_H_
 
+#include <linux/string.h>
 #include <asm/arch/omap.h>
 
 #define DEV_ATTR_MAX_OFFSET    5
diff --git a/board/ti/am43xx/mux.c b/board/ti/am43xx/mux.c
index 463f1cc71784..2fcccbd1f043 100644
--- a/board/ti/am43xx/mux.c
+++ b/board/ti/am43xx/mux.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mux.h>
 #include "../common/board_detect.h"
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index b004a89bb324..48668884bdd5 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -7,7 +7,7 @@
  * Based on board/ti/dra7xx/evm.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <fastboot.h>
 #include <fdt_support.h>
diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c
index 644df3b0b6ab..ea21d48bbc01 100644
--- a/board/ti/common/board_detect.c
+++ b/board/ti/common/board_detect.c
@@ -7,9 +7,9 @@
  *	Steve Kipisz
  */
 
-#include <common.h>
 #include <log.h>
 #include <net.h>
+#include <linux/types.h>
 #include <asm/arch/hardware.h>
 #include <asm/omap_common.h>
 #include <dm/uclass.h>
diff --git a/board/ti/common/cape_detect.c b/board/ti/common/cape_detect.c
index 2e6105cfbf15..da805befabcb 100644
--- a/board/ti/common/cape_detect.c
+++ b/board/ti/common/cape_detect.c
@@ -4,10 +4,11 @@
  * Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
  */
 
-#include <common.h>
+#include <stdio.h>
 #include <malloc.h>
 #include <i2c.h>
 #include <extension_board.h>
+#include <vsprintf.h>
 
 #include "cape_detect.h"
 
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index a8a216d034a4..2b1db2541b0b 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -9,7 +9,7 @@
  * Aneesh V       <aneesh@ti.com>
  * Steve Sakoman  <steve@sakoman.com>
  */
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <fdt_support.h>
 #include <fastboot.h>
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
index 5dcda12105b9..c6735d37dda7 100644
--- a/board/ti/ks2_evm/board.c
+++ b/board/ti/ks2_evm/board.c
@@ -6,7 +6,7 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 #include "board.h"
 #include <env.h>
diff --git a/board/ti/ks2_evm/board_k2e.c b/board/ti/ks2_evm/board_k2e.c
index 39abb24e1560..4385be4221b7 100644
--- a/board/ti/ks2_evm/board_k2e.c
+++ b/board/ti/ks2_evm/board_k2e.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include <image.h>
 #include <init.h>
 #include <asm/arch/ddr3.h>
diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c
index 4fed42ec1244..d07b77d23e27 100644
--- a/board/ti/ks2_evm/board_k2g.c
+++ b/board/ti/ks2_evm/board_k2g.c
@@ -5,7 +5,7 @@
  * (C) Copyright 2015
  *     Texas Instruments Incorporated, <www.ti.com>
  */
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <hang.h>
 #include <image.h>
diff --git a/board/ti/ks2_evm/board_k2hk.c b/board/ti/ks2_evm/board_k2hk.c
index 12c4649c3c4c..2b5d2d756649 100644
--- a/board/ti/ks2_evm/board_k2hk.c
+++ b/board/ti/ks2_evm/board_k2hk.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include <image.h>
 #include <init.h>
 #include <asm/arch/clock.h>
diff --git a/board/ti/ks2_evm/board_k2l.c b/board/ti/ks2_evm/board_k2l.c
index f759ee364666..1971bc94f7d3 100644
--- a/board/ti/ks2_evm/board_k2l.c
+++ b/board/ti/ks2_evm/board_k2l.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include <image.h>
 #include <init.h>
 #include <asm/arch/ddr3.h>
diff --git a/board/ti/ks2_evm/ddr3_cfg.c b/board/ti/ks2_evm/ddr3_cfg.c
index 0ade75263f8d..fe350fee795e 100644
--- a/board/ti/ks2_evm/ddr3_cfg.c
+++ b/board/ti/ks2_evm/ddr3_cfg.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 
 #include <asm/arch/ddr3.h>
 #include "ddr3_cfg.h"
diff --git a/board/ti/ks2_evm/ddr3_k2e.c b/board/ti/ks2_evm/ddr3_k2e.c
index 95fe3a9021e2..28305326e6a1 100644
--- a/board/ti/ks2_evm/ddr3_k2e.c
+++ b/board/ti/ks2_evm/ddr3_k2e.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include "ddr3_cfg.h"
 #include <asm/arch/ddr3.h>
 
diff --git a/board/ti/ks2_evm/ddr3_k2g.c b/board/ti/ks2_evm/ddr3_k2g.c
index 3000d7245eb2..ef39e0781521 100644
--- a/board/ti/ks2_evm/ddr3_k2g.c
+++ b/board/ti/ks2_evm/ddr3_k2g.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include "ddr3_cfg.h"
 #include <asm/arch/ddr3.h>
 #include <asm/arch/hardware.h>
diff --git a/board/ti/ks2_evm/ddr3_k2hk.c b/board/ti/ks2_evm/ddr3_k2hk.c
index 198c5da0e622..05c050cee440 100644
--- a/board/ti/ks2_evm/ddr3_k2hk.c
+++ b/board/ti/ks2_evm/ddr3_k2hk.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include "ddr3_cfg.h"
 #include <asm/arch/ddr3.h>
 #include <asm/arch/hardware.h>
diff --git a/board/ti/ks2_evm/ddr3_k2l.c b/board/ti/ks2_evm/ddr3_k2l.c
index 805bf81f6bdf..aa6d45f0f8af 100644
--- a/board/ti/ks2_evm/ddr3_k2l.c
+++ b/board/ti/ks2_evm/ddr3_k2l.c
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include "ddr3_cfg.h"
 #include <asm/arch/ddr3.h>
 
diff --git a/board/ti/omap3evm/evm.c b/board/ti/omap3evm/evm.c
index a4d6a0138d9b..4eb08add2564 100644
--- a/board/ti/omap3evm/evm.c
+++ b/board/ti/omap3evm/evm.c
@@ -10,7 +10,7 @@
  *	Richard Woodruff <r-woodruff2@ti.com>
  *	Syed Mohammed Khasim <khasim@ti.com>
  */
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/ti/panda/panda.c b/board/ti/panda/panda.c
index 220931860190..e47d3a952d5c 100644
--- a/board/ti/panda/panda.c
+++ b/board/ti/panda/panda.c
@@ -4,7 +4,6 @@
  * Texas Instruments Incorporated, <www.ti.com>
  * Steve Sakoman  <steve@sakoman.com>
  */
-#include <common.h>
 #include <init.h>
 #include <log.h>
 #include <net.h>
diff --git a/board/ti/sdp4430/cmd_bat.c b/board/ti/sdp4430/cmd_bat.c
index 6c1e6ca393c6..6bf44d926550 100644
--- a/board/ti/sdp4430/cmd_bat.c
+++ b/board/ti/sdp4430/cmd_bat.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2010 Texas Instruments
  */
 
-#include <common.h>
 #include <command.h>
 
 #ifdef CONFIG_CMD_BAT
diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c
index 2c9ae794fd4b..1a71390f543b 100644
--- a/board/ti/sdp4430/sdp.c
+++ b/board/ti/sdp4430/sdp.c
@@ -5,7 +5,6 @@
  * Aneesh V       <aneesh@ti.com>
  * Steve Sakoman  <steve@sakoman.com>
  */
-#include <common.h>
 #include <init.h>
 #include <net.h>
 #include <twl6030.h>
diff --git a/include/linux/mtd/omap_gpmc.h b/include/linux/mtd/omap_gpmc.h
index f08e700a1daf..2dbf988863f9 100644
--- a/include/linux/mtd/omap_gpmc.h
+++ b/include/linux/mtd/omap_gpmc.h
@@ -8,6 +8,8 @@
 #ifndef __ASM_OMAP_GPMC_H
 #define __ASM_OMAP_GPMC_H
 
+#include <linux/types.h>
+
 /* Maximum Number of Chip Selects */
 #define GPMC_CS_NUM	8
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 136/149] board: timll: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (133 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 135/149] board: ti: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 137/149] board: toradex: " Tom Rini
                   ` (14 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Vladimir Zapolskiy, Thomas Weber

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Vladimir Zapolskiy <vz@mleia.com>
Cc: Thomas Weber <weber@corscience.de>
---
 board/timll/devkit3250/devkit3250.c     | 2 +-
 board/timll/devkit3250/devkit3250_spl.c | 1 -
 board/timll/devkit8000/devkit8000.c     | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/board/timll/devkit3250/devkit3250.c b/board/timll/devkit3250/devkit3250.c
index efef855b3d06..f0c0f03deeb8 100644
--- a/board/timll/devkit3250/devkit3250.c
+++ b/board/timll/devkit3250/devkit3250.c
@@ -5,7 +5,7 @@
  * Copyright (C) 2011-2015 Vladimir Zapolskiy <vz@mleia.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/clk.h>
diff --git a/board/timll/devkit3250/devkit3250_spl.c b/board/timll/devkit3250/devkit3250_spl.c
index 12e8ae9c39cb..07a367c3ad15 100644
--- a/board/timll/devkit3250/devkit3250_spl.c
+++ b/board/timll/devkit3250/devkit3250_spl.c
@@ -5,7 +5,6 @@
  * (C) Copyright 2015 Vladimir Zapolskiy <vz@mleia.com>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/cpu.h>
diff --git a/board/timll/devkit8000/devkit8000.c b/board/timll/devkit8000/devkit8000.c
index 06009d8ad54c..ad404f7e9c4c 100644
--- a/board/timll/devkit8000/devkit8000.c
+++ b/board/timll/devkit8000/devkit8000.c
@@ -15,7 +15,7 @@
  *	Syed Mohammed Khasim <khasim@ti.com>
  *
  */
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 137/149] board: toradex: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (134 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 136/149] board: timll: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 138/149] board: tplink: " Tom Rini
                   ` (13 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Marcel Ziswiler

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---
 board/toradex/apalis-imx8/apalis-imx8.c         | 1 -
 board/toradex/apalis-tk1/apalis-tk1.c           | 1 -
 board/toradex/apalis-tk1/as3722_init.c          | 1 -
 board/toradex/apalis_imx6/apalis_imx6.c         | 2 +-
 board/toradex/apalis_imx6/do_fuse.c             | 1 -
 board/toradex/apalis_imx6/pf0100.c              | 1 -
 board/toradex/apalis_t30/apalis_t30-spl.c       | 1 -
 board/toradex/apalis_t30/apalis_t30.c           | 1 -
 board/toradex/colibri-imx6ull/colibri-imx6ull.c | 2 +-
 board/toradex/colibri-imx8x/colibri-imx8x.c     | 1 -
 board/toradex/colibri_imx6/colibri_imx6.c       | 2 +-
 board/toradex/colibri_imx6/do_fuse.c            | 1 -
 board/toradex/colibri_imx6/pf0100.c             | 1 -
 board/toradex/colibri_imx7/colibri_imx7.c       | 1 -
 board/toradex/colibri_t20/colibri_t20.c         | 1 -
 board/toradex/colibri_t30/colibri_t30-spl.c     | 1 -
 board/toradex/colibri_t30/colibri_t30.c         | 1 -
 board/toradex/colibri_vf/colibri_vf.c           | 1 -
 board/toradex/common/tdx-cfg-block.c            | 2 +-
 board/toradex/common/tdx-common.c               | 2 +-
 board/toradex/verdin-imx8mm/spl.c               | 1 -
 board/toradex/verdin-imx8mm/verdin-imx8mm.c     | 2 +-
 board/toradex/verdin-imx8mp/spl.c               | 1 -
 board/toradex/verdin-imx8mp/verdin-imx8mp.c     | 2 +-
 24 files changed, 7 insertions(+), 24 deletions(-)

diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index 0f993e644d71..72d67d90d418 100644
--- a/board/toradex/apalis-imx8/apalis-imx8.c
+++ b/board/toradex/apalis-imx8/apalis-imx8.c
@@ -3,7 +3,6 @@
  * Copyright 2019 Toradex
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c
index ee87d9f4145f..4557ed1f1f2f 100644
--- a/board/toradex/apalis-tk1/apalis-tk1.c
+++ b/board/toradex/apalis-tk1/apalis-tk1.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2016-2018 Toradex, Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <init.h>
diff --git a/board/toradex/apalis-tk1/as3722_init.c b/board/toradex/apalis-tk1/as3722_init.c
index e9bd1028bed5..8971f7aa16a1 100644
--- a/board/toradex/apalis-tk1/as3722_init.c
+++ b/board/toradex/apalis-tk1/as3722_init.c
@@ -3,7 +3,6 @@
  * Copyright (c) 2012-2016 Toradex, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_i2c.h>
diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c
index 0da245374a0d..2dcc042ab266 100644
--- a/board/toradex/apalis_imx6/apalis_imx6.c
+++ b/board/toradex/apalis_imx6/apalis_imx6.c
@@ -6,7 +6,7 @@
  * copied from nitrogen6x
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <image.h>
diff --git a/board/toradex/apalis_imx6/do_fuse.c b/board/toradex/apalis_imx6/do_fuse.c
index 6991b1bc136e..b404b01e032e 100644
--- a/board/toradex/apalis_imx6/do_fuse.c
+++ b/board/toradex/apalis_imx6/do_fuse.c
@@ -7,7 +7,6 @@
  * Helpers for i.MX OTP fusing during module production
 */
 
-#include <common.h>
 #ifndef CONFIG_SPL_BUILD
 #include <command.h>
 #include <console.h>
diff --git a/board/toradex/apalis_imx6/pf0100.c b/board/toradex/apalis_imx6/pf0100.c
index c89052ff5daa..157aaec6fe08 100644
--- a/board/toradex/apalis_imx6/pf0100.c
+++ b/board/toradex/apalis_imx6/pf0100.c
@@ -7,7 +7,6 @@
  * Helpers for Freescale PMIC PF0100
 */
 
-#include <common.h>
 #include <command.h>
 #include <i2c.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/toradex/apalis_t30/apalis_t30-spl.c b/board/toradex/apalis_t30/apalis_t30-spl.c
index 6e544641833e..250494524952 100644
--- a/board/toradex/apalis_t30/apalis_t30-spl.c
+++ b/board/toradex/apalis_t30/apalis_t30-spl.c
@@ -7,7 +7,6 @@
  *  Svyatoslav Ryhel <clamor95@gmail.com>
  */
 
-#include <common.h>
 #include <asm/arch-tegra/tegra_i2c.h>
 #include <linux/delay.h>
 
diff --git a/board/toradex/apalis_t30/apalis_t30.c b/board/toradex/apalis_t30/apalis_t30.c
index b10beb447965..02e8f8eb1fed 100644
--- a/board/toradex/apalis_t30/apalis_t30.c
+++ b/board/toradex/apalis_t30/apalis_t30.c
@@ -4,7 +4,6 @@
  *  Marcel Ziswiler <marcel@ziswiler.com>
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/toradex/colibri-imx6ull/colibri-imx6ull.c b/board/toradex/colibri-imx6ull/colibri-imx6ull.c
index 9b9fb342c9d9..7bfe200d6e4c 100644
--- a/board/toradex/colibri-imx6ull/colibri-imx6ull.c
+++ b/board/toradex/colibri-imx6ull/colibri-imx6ull.c
@@ -2,7 +2,7 @@
 /*
  * Copyright (C) 2018-2019 Toradex AG
  */
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
diff --git a/board/toradex/colibri-imx8x/colibri-imx8x.c b/board/toradex/colibri-imx8x/colibri-imx8x.c
index 356578525951..2a71e7b92de4 100644
--- a/board/toradex/colibri-imx8x/colibri-imx8x.c
+++ b/board/toradex/colibri-imx8x/colibri-imx8x.c
@@ -3,7 +3,6 @@
  * Copyright 2019 Toradex
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c
index ce19a9c79752..34e82c2b0780 100644
--- a/board/toradex/colibri_imx6/colibri_imx6.c
+++ b/board/toradex/colibri_imx6/colibri_imx6.c
@@ -6,7 +6,7 @@
  * copied from nitrogen6x
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <env.h>
diff --git a/board/toradex/colibri_imx6/do_fuse.c b/board/toradex/colibri_imx6/do_fuse.c
index 6991b1bc136e..b404b01e032e 100644
--- a/board/toradex/colibri_imx6/do_fuse.c
+++ b/board/toradex/colibri_imx6/do_fuse.c
@@ -7,7 +7,6 @@
  * Helpers for i.MX OTP fusing during module production
 */
 
-#include <common.h>
 #ifndef CONFIG_SPL_BUILD
 #include <command.h>
 #include <console.h>
diff --git a/board/toradex/colibri_imx6/pf0100.c b/board/toradex/colibri_imx6/pf0100.c
index 8f08d8c7337c..58b7bc3bb9ae 100644
--- a/board/toradex/colibri_imx6/pf0100.c
+++ b/board/toradex/colibri_imx6/pf0100.c
@@ -7,7 +7,6 @@
  * Helpers for Freescale PMIC PF0100
 */
 
-#include <common.h>
 #include <command.h>
 #include <i2c.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c
index c37c5e0af6d9..e966ffbf7818 100644
--- a/board/toradex/colibri_imx7/colibri_imx7.c
+++ b/board/toradex/colibri_imx7/colibri_imx7.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016-2018 Toradex AG
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board/toradex/colibri_t20/colibri_t20.c
index 97e33d00f0d6..6425fa881ea6 100644
--- a/board/toradex/colibri_t20/colibri_t20.c
+++ b/board/toradex/colibri_t20/colibri_t20.c
@@ -3,7 +3,6 @@
  *  Copyright (C) 2012 Lucas Stach
  */
 
-#include <common.h>
 #include <env.h>
 #include <fdt_support.h>
 #include <init.h>
diff --git a/board/toradex/colibri_t30/colibri_t30-spl.c b/board/toradex/colibri_t30/colibri_t30-spl.c
index 6e544641833e..250494524952 100644
--- a/board/toradex/colibri_t30/colibri_t30-spl.c
+++ b/board/toradex/colibri_t30/colibri_t30-spl.c
@@ -7,7 +7,6 @@
  *  Svyatoslav Ryhel <clamor95@gmail.com>
  */
 
-#include <common.h>
 #include <asm/arch-tegra/tegra_i2c.h>
 #include <linux/delay.h>
 
diff --git a/board/toradex/colibri_t30/colibri_t30.c b/board/toradex/colibri_t30/colibri_t30.c
index 0da247de98f9..342673ac506c 100644
--- a/board/toradex/colibri_t30/colibri_t30.c
+++ b/board/toradex/colibri_t30/colibri_t30.c
@@ -4,7 +4,6 @@
  *  Stefan Agner <stefan@agner.ch>
  */
 
-#include <common.h>
 #include <env.h>
 #include <init.h>
 #include <asm/arch/gp_padctrl.h>
diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c
index 35920008805f..87f82396d63a 100644
--- a/board/toradex/colibri_vf/colibri_vf.c
+++ b/board/toradex/colibri_vf/colibri_vf.c
@@ -6,7 +6,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c
index dcf00d2b6325..2225cefec167 100644
--- a/board/toradex/common/tdx-cfg-block.c
+++ b/board/toradex/common/tdx-cfg-block.c
@@ -3,7 +3,7 @@
  * Copyright (c) 2016-2020 Toradex
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/global_data.h>
 #include "tdx-cfg-block.h"
 #include "tdx-eeprom.h"
diff --git a/board/toradex/common/tdx-common.c b/board/toradex/common/tdx-common.c
index 9f09788137d5..a6b45cdab810 100644
--- a/board/toradex/common/tdx-common.c
+++ b/board/toradex/common/tdx-common.c
@@ -4,7 +4,7 @@
  */
 
 #include <dm.h>
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <g_dnl.h>
 #include <init.h>
diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
index afa3686083a4..1020078afea2 100644
--- a/board/toradex/verdin-imx8mm/spl.c
+++ b/board/toradex/verdin-imx8mm/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2020 Toradex
  */
 
-#include <common.h>
 #include <command.h>
 #include <image.h>
 #include <init.h>
diff --git a/board/toradex/verdin-imx8mm/verdin-imx8mm.c b/board/toradex/verdin-imx8mm/verdin-imx8mm.c
index 55c02653da68..020ee6774807 100644
--- a/board/toradex/verdin-imx8mm/verdin-imx8mm.c
+++ b/board/toradex/verdin-imx8mm/verdin-imx8mm.c
@@ -3,7 +3,7 @@
  * Copyright 2020-2021 Toradex
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/toradex/verdin-imx8mp/spl.c b/board/toradex/verdin-imx8mp/spl.c
index 73729a42b458..8628112a7825 100644
--- a/board/toradex/verdin-imx8mp/spl.c
+++ b/board/toradex/verdin-imx8mp/spl.c
@@ -3,7 +3,6 @@
  * Copyright 2022 Toradex
  */
 
-#include <common.h>
 #include <hang.h>
 #include <init.h>
 #include <log.h>
diff --git a/board/toradex/verdin-imx8mp/verdin-imx8mp.c b/board/toradex/verdin-imx8mp/verdin-imx8mp.c
index e16a771e3ec1..e57ec3b68967 100644
--- a/board/toradex/verdin-imx8mp/verdin-imx8mp.c
+++ b/board/toradex/verdin-imx8mp/verdin-imx8mp.c
@@ -3,7 +3,7 @@
  * Copyright 2022 Toradex
  */
 
-#include <common.h>
+#include <config.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx8mp_pins.h>
 #include <asm/arch/sys_proto.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 138/149] board: tplink: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (135 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 137/149] board: toradex: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 139/149] board: tq: " Tom Rini
                   ` (12 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Marek Vasut <marex@denx.de>
---
 board/tplink/wdr4300/wdr4300.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/tplink/wdr4300/wdr4300.c b/board/tplink/wdr4300/wdr4300.c
index f2de039b6b47..3ae0dc4ecd73 100644
--- a/board/tplink/wdr4300/wdr4300.c
+++ b/board/tplink/wdr4300/wdr4300.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Marek Vasut <marex@denx.de>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 139/149] board: tq: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (136 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 138/149] board: tplink: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 140/149] board: traverse: " Tom Rini
                   ` (11 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Markus Niebel

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Markus Niebel <Markus.Niebel@tq-group.com>
---
 board/tq/tqma6/tqma6.c      | 1 -
 board/tq/tqma6/tqma6_mba6.c | 1 -
 board/tq/tqma6/tqma6_wru4.c | 1 -
 3 files changed, 3 deletions(-)

diff --git a/board/tq/tqma6/tqma6.c b/board/tq/tqma6/tqma6.c
index 1c2228c77ad0..92142c10ae5a 100644
--- a/board/tq/tqma6/tqma6.c
+++ b/board/tq/tqma6/tqma6.c
@@ -21,7 +21,6 @@
 #include <asm/io.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/mach-imx/spi.h>
-#include <common.h>
 #include <fsl_esdhc_imx.h>
 #include <linux/libfdt.h>
 #include <i2c.h>
diff --git a/board/tq/tqma6/tqma6_mba6.c b/board/tq/tqma6/tqma6_mba6.c
index 52851dd5b55e..877539e359e2 100644
--- a/board/tq/tqma6/tqma6_mba6.c
+++ b/board/tq/tqma6/tqma6_mba6.c
@@ -20,7 +20,6 @@
 #include <asm/gpio.h>
 #include <asm/mach-imx/mxc_i2c.h>
 
-#include <common.h>
 #include <fsl_esdhc_imx.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
diff --git a/board/tq/tqma6/tqma6_wru4.c b/board/tq/tqma6/tqma6_wru4.c
index 5d239913fc5b..21c710188e09 100644
--- a/board/tq/tqma6/tqma6_wru4.c
+++ b/board/tq/tqma6/tqma6_wru4.c
@@ -23,7 +23,6 @@
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/mach-imx/mxc_i2c.h>
 
-#include <common.h>
 #include <fsl_esdhc_imx.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 140/149] board: traverse: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (137 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 139/149] board: tq: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 141/149] board: udoo: " Tom Rini
                   ` (10 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Mathew McBride

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Mathew McBride <matt@traverse.com.au>
---
 board/traverse/common/ten64_controller.c | 1 -
 board/traverse/ten64/eth_ten64.c         | 1 -
 board/traverse/ten64/ten64.c             | 2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/board/traverse/common/ten64_controller.c b/board/traverse/common/ten64_controller.c
index d6ef8a8d0df9..63b72c4df7b9 100644
--- a/board/traverse/common/ten64_controller.c
+++ b/board/traverse/common/ten64_controller.c
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <misc.h>
 #include <i2c.h>
diff --git a/board/traverse/ten64/eth_ten64.c b/board/traverse/ten64/eth_ten64.c
index 3f96e572b75a..c5f7acecc146 100644
--- a/board/traverse/ten64/eth_ten64.c
+++ b/board/traverse/ten64/eth_ten64.c
@@ -3,7 +3,6 @@
  * Copyright 2017 NXP
  * Copyright 2019-2021 Traverse Technologies Australia
  */
-#include <common.h>
 #include <command.h>
 #include <netdev.h>
 #include <malloc.h>
diff --git a/board/traverse/ten64/ten64.c b/board/traverse/ten64/ten64.c
index 6ff5312d6d79..d41bd2e9deeb 100644
--- a/board/traverse/ten64/ten64.c
+++ b/board/traverse/ten64/ten64.c
@@ -4,7 +4,7 @@
  * Copyright 2017-2018 NXP
  * Copyright 2019-2021 Traverse Technologies
  */
-#include <common.h>
+#include <config.h>
 #include <display_options.h>
 #include <dm/uclass.h>
 #include <env.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 141/149] board: udoo: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (138 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 140/149] board: traverse: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 142/149] board: variscite: " Tom Rini
                   ` (9 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Breno Lima, Francesco Montefoschi, Fabio Estevam

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Breno Lima <breno.lima@nxp.com>
Cc: Francesco Montefoschi <francesco.montefoschi@udoo.org>
Cc: Fabio Estevam <festevam@gmail.com>
---
 board/udoo/neo/neo.c  | 1 -
 board/udoo/udoo_spl.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/udoo/neo/neo.c b/board/udoo/neo/neo.c
index d99d93b44ae5..b435b721e53c 100644
--- a/board/udoo/neo/neo.c
+++ b/board/udoo/neo/neo.c
@@ -29,7 +29,6 @@
 #include <spl.h>
 #include <linux/delay.h>
 #include <linux/sizes.h>
-#include <common.h>
 #include <i2c.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
diff --git a/board/udoo/udoo_spl.c b/board/udoo/udoo_spl.c
index 647380e1db63..6c477530055c 100644
--- a/board/udoo/udoo_spl.c
+++ b/board/udoo/udoo_spl.c
@@ -6,7 +6,6 @@
  * Based on board/wandboard/spl.c
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 142/149] board: variscite: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (139 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 141/149] board: udoo: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 143/149] board: vscom: " Tom Rini
                   ` (8 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Parthiban Nallathambi, Hugo Villeneuve

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Parthiban Nallathambi <parthitce@gmail.com>
Cc: Hugo Villeneuve <hvilleneuve@dimonoff.com>
---
 board/variscite/dart_6ul/spl.c                  | 2 +-
 board/variscite/imx8mn_var_som/imx8mn_var_som.c | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/variscite/dart_6ul/spl.c b/board/variscite/dart_6ul/spl.c
index 1dff69c82771..6d17563d32c0 100644
--- a/board/variscite/dart_6ul/spl.c
+++ b/board/variscite/dart_6ul/spl.c
@@ -4,7 +4,7 @@
  * Copyright (C) 2019 Parthiban Nallathambi <parthitce@gmail.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <spl.h>
 #include <asm/arch/clock.h>
diff --git a/board/variscite/imx8mn_var_som/imx8mn_var_som.c b/board/variscite/imx8mn_var_som/imx8mn_var_som.c
index 994fd4f70582..532d8d60a762 100644
--- a/board/variscite/imx8mn_var_som/imx8mn_var_som.c
+++ b/board/variscite/imx8mn_var_som/imx8mn_var_som.c
@@ -5,7 +5,6 @@
  * Copyright 2023 DimOnOff Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <env.h>
 #include <fdtdec.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 143/149] board: vscom: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (140 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 142/149] board: variscite: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 144/149] board: wandboard: " Tom Rini
                   ` (7 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Yegor Yefremov

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Yegor Yefremov <yegorslists@googlemail.com>
---
 board/vscom/baltos/board.c | 2 +-
 board/vscom/baltos/mux.c   | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/vscom/baltos/board.c b/board/vscom/baltos/board.c
index bc7dc5888f2d..2c91e9fac43d 100644
--- a/board/vscom/baltos/board.c
+++ b/board/vscom/baltos/board.c
@@ -7,7 +7,7 @@
  * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
  */
 
-#include <common.h>
+#include <config.h>
 #include <env.h>
 #include <errno.h>
 #include <init.h>
diff --git a/board/vscom/baltos/mux.c b/board/vscom/baltos/mux.c
index 7b99cf0e182f..77b142f08f0a 100644
--- a/board/vscom/baltos/mux.c
+++ b/board/vscom/baltos/mux.c
@@ -13,7 +13,6 @@
  * GNU General Public License for more details.
  */
 
-#include <common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 144/149] board: wandboard: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (141 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 143/149] board: vscom: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 145/149] board: warp7: " Tom Rini
                   ` (6 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Fabio Estevam

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Fabio Estevam <festevam@gmail.com>
---
 board/wandboard/spl.c       | 2 +-
 board/wandboard/wandboard.c | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/wandboard/spl.c b/board/wandboard/spl.c
index 717e02a039b7..9ce2785a4f04 100644
--- a/board/wandboard/spl.c
+++ b/board/wandboard/spl.c
@@ -5,7 +5,7 @@
  *         Richard Hu <hakahu@gmail.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index 8be62c86695d..a48ef33ffdec 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -6,7 +6,6 @@
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  */
 
-#include <common.h>
 #include <image.h>
 #include <init.h>
 #include <log.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 145/149] board: warp7: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (142 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 144/149] board: wandboard: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 146/149] board: work-microwave: " Tom Rini
                   ` (5 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Fabio Estevam

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Fabio Estevam <festevam@gmail.com>
---
 board/warp7/warp7.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index ead52d5a490c..4cd3ff0051b7 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -15,7 +15,6 @@
 #include <asm/mach-imx/hab.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/io.h>
-#include <common.h>
 #include <env.h>
 #include <asm/arch/crm_regs.h>
 #include <netdev.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 146/149] board: work-microwave: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (143 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 145/149] board: warp7: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 147/149] board: xen: " Tom Rini
                   ` (4 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Albert ARIBAUD

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Albert ARIBAUD <albert.aribaud@3adev.fr>
---
 board/work-microwave/work_92105/work_92105.c         | 2 +-
 board/work-microwave/work_92105/work_92105_display.c | 1 -
 board/work-microwave/work_92105/work_92105_spl.c     | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/board/work-microwave/work_92105/work_92105.c b/board/work-microwave/work_92105/work_92105.c
index c8e791a4da8a..9a236880e3cc 100644
--- a/board/work-microwave/work_92105/work_92105.c
+++ b/board/work-microwave/work_92105/work_92105.c
@@ -6,7 +6,7 @@
  * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
  */
 
-#include <common.h>
+#include <config.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/work-microwave/work_92105/work_92105_display.c b/board/work-microwave/work_92105/work_92105_display.c
index 64dd5d4072a6..d4ab2299895d 100644
--- a/board/work-microwave/work_92105/work_92105_display.c
+++ b/board/work-microwave/work_92105/work_92105_display.c
@@ -10,7 +10,6 @@
  * MAX518 I2C DACs and native LPC32xx GPO 15.
  */
 
-#include <common.h>
 #include <command.h>
 #include <log.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/work-microwave/work_92105/work_92105_spl.c b/board/work-microwave/work_92105/work_92105_spl.c
index d9401145f27d..3f91221ce8b1 100644
--- a/board/work-microwave/work_92105/work_92105_spl.c
+++ b/board/work-microwave/work_92105/work_92105_spl.c
@@ -6,7 +6,6 @@
  * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/cpu.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 147/149] board: xen: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (144 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 146/149] board: work-microwave: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 148/149] board: xilinx: " Tom Rini
                   ` (3 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Anastasiia Lukianenko, Oleksandr Andrushchenko

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
---
 board/xen/xenguest_arm64/xenguest_arm64.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/board/xen/xenguest_arm64/xenguest_arm64.c b/board/xen/xenguest_arm64/xenguest_arm64.c
index 1d2946f4fde8..4c3b9c9e2780 100644
--- a/board/xen/xenguest_arm64/xenguest_arm64.c
+++ b/board/xen/xenguest_arm64/xenguest_arm64.c
@@ -7,7 +7,6 @@
  * (C) 2020 EPAM Systems Inc
  */
 
-#include <common.h>
 #include <log.h>
 #include <cpu_func.h>
 #include <dm.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 148/149] board: xilinx: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (145 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 147/149] board: xen: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01  2:43 ` [PATCH 149/149] board: zyxel: " Tom Rini
                   ` (2 subsequent siblings)
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Michal Simek

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Michal Simek <michal.simek@amd.com>
---
 board/xilinx/common/board.c     | 1 -
 board/xilinx/common/cpu-info.c  | 1 -
 board/xilinx/common/fru.c       | 1 -
 board/xilinx/common/fru_ops.c   | 2 +-
 board/xilinx/versal-net/board.c | 1 -
 board/xilinx/versal-net/cmds.c  | 2 +-
 board/xilinx/versal/board.c     | 1 -
 board/xilinx/versal/cmds.c      | 2 +-
 board/xilinx/zynq/board.c       | 2 +-
 board/xilinx/zynq/bootimg.c     | 1 -
 board/xilinx/zynq/cmds.c        | 1 -
 board/xilinx/zynqmp/cmds.c      | 3 ++-
 board/xilinx/zynqmp/zynqmp.c    | 2 +-
 board/xilinx/zynqmp_r5/board.c  | 2 +-
 14 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index b47d2d23f913..30a81376ac41 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -6,7 +6,6 @@
  * Michal Simek <michal.simek@amd.com>
  */
 
-#include <common.h>
 #include <efi.h>
 #include <efi_loader.h>
 #include <env.h>
diff --git a/board/xilinx/common/cpu-info.c b/board/xilinx/common/cpu-info.c
index bfe7f5b7e385..765bb24d9376 100644
--- a/board/xilinx/common/cpu-info.c
+++ b/board/xilinx/common/cpu-info.c
@@ -4,7 +4,6 @@
  * Michal Simek <michal.simek@amd.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <soc.h>
 
diff --git a/board/xilinx/common/fru.c b/board/xilinx/common/fru.c
index 12b21317496a..8cf307e33f20 100644
--- a/board/xilinx/common/fru.c
+++ b/board/xilinx/common/fru.c
@@ -3,7 +3,6 @@
  * (C) Copyright 2019 - 2020 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <command.h>
 #include <fdtdec.h>
 #include <malloc.h>
diff --git a/board/xilinx/common/fru_ops.c b/board/xilinx/common/fru_ops.c
index 167252c240cd..610293bccf78 100644
--- a/board/xilinx/common/fru_ops.c
+++ b/board/xilinx/common/fru_ops.c
@@ -4,13 +4,13 @@
  * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <fdtdec.h>
 #include <log.h>
 #include <malloc.h>
 #include <net.h>
+#include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 
diff --git a/board/xilinx/versal-net/board.c b/board/xilinx/versal-net/board.c
index da03024e162f..88e10fa7a7fa 100644
--- a/board/xilinx/versal-net/board.c
+++ b/board/xilinx/versal-net/board.c
@@ -6,7 +6,6 @@
  * Michal Simek <michal.simek@amd.com>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <fdtdec.h>
 #include <init.h>
diff --git a/board/xilinx/versal-net/cmds.c b/board/xilinx/versal-net/cmds.c
index b18a71fe52c0..4d52084846b7 100644
--- a/board/xilinx/versal-net/cmds.c
+++ b/board/xilinx/versal-net/cmds.c
@@ -7,10 +7,10 @@
 
 #include <cpu_func.h>
 #include <command.h>
-#include <common.h>
 #include <log.h>
 #include <memalign.h>
 #include <versalpl.h>
+#include <vsprintf.h>
 #include <zynqmp_firmware.h>
 
 /**
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
index 4f6d56119db1..77ba783501eb 100644
--- a/board/xilinx/versal/board.c
+++ b/board/xilinx/versal/board.c
@@ -5,7 +5,6 @@
  */
 
 #include <command.h>
-#include <common.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <fdtdec.h>
diff --git a/board/xilinx/versal/cmds.c b/board/xilinx/versal/cmds.c
index 2a74e49aedec..c78793573e86 100644
--- a/board/xilinx/versal/cmds.c
+++ b/board/xilinx/versal/cmds.c
@@ -6,10 +6,10 @@
 
 #include <cpu_func.h>
 #include <command.h>
-#include <common.h>
 #include <log.h>
 #include <memalign.h>
 #include <versalpl.h>
+#include <vsprintf.h>
 #include <zynqmp_firmware.h>
 
 static int do_versal_load_pdi(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index 6c365910011d..b9a91110ff79 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -4,7 +4,7 @@
  * (C) Copyright 2013 - 2018 Xilinx, Inc.
  */
 
-#include <common.h>
+#include <config.h>
 #include <debug_uart.h>
 #include <dfu.h>
 #include <init.h>
diff --git a/board/xilinx/zynq/bootimg.c b/board/xilinx/zynq/bootimg.c
index 2f55078dd768..79bec3a4cfbc 100644
--- a/board/xilinx/zynq/bootimg.c
+++ b/board/xilinx/zynq/bootimg.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <part.h>
 #include <asm/global_data.h>
diff --git a/board/xilinx/zynq/cmds.c b/board/xilinx/zynq/cmds.c
index d7c7b2f22955..05ecb75406b4 100644
--- a/board/xilinx/zynq/cmds.c
+++ b/board/xilinx/zynq/cmds.c
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Xilinx, Inc.
  */
 
-#include <common.h>
 #include <command.h>
 #include <log.h>
 #include <asm/global_data.h>
diff --git a/board/xilinx/zynqmp/cmds.c b/board/xilinx/zynqmp/cmds.c
index 9524688f27d9..bf39c5472ea9 100644
--- a/board/xilinx/zynqmp/cmds.c
+++ b/board/xilinx/zynqmp/cmds.c
@@ -4,13 +4,14 @@
  * Siva Durga Prasad Paladugu <siva.durga.prasad.paladugu@amd.com>>
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <vsprintf.h>
 #include <zynqmp_firmware.h>
+#include <linux/errno.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index f370fb7347a5..c4050af2a5a5 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -4,7 +4,7 @@
  * Michal Simek <michal.simek@amd.com>
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <debug_uart.h>
diff --git a/board/xilinx/zynqmp_r5/board.c b/board/xilinx/zynqmp_r5/board.c
index 5c5a2e93863f..0c62b0013c46 100644
--- a/board/xilinx/zynqmp_r5/board.c
+++ b/board/xilinx/zynqmp_r5/board.c
@@ -3,9 +3,9 @@
  * (C) Copyright 2018 Xilinx, Inc. (Michal Simek)
  */
 
-#include <common.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <linux/errno.h>
 
 int board_init(void)
 {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* [PATCH 149/149] board: zyxel: Remove <common.h> and add needed includes
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (146 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 148/149] board: xilinx: " Tom Rini
@ 2024-05-01  2:43 ` Tom Rini
  2024-05-01 20:29   ` Tony Dinh
  2024-05-01  6:33 ` [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tony Dinh
  2024-05-07 14:02 ` Tom Rini
  149 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01  2:43 UTC (permalink / raw)
  To: u-boot; +Cc: Tony Dinh, Luka Perkov

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Tony Dinh <mibodhi@gmail.com>
Cc: Luka Perkov <luka.perkov@sartura.hr>
---
 board/zyxel/nsa310s/nsa310s.c | 1 -
 board/zyxel/nsa325/nsa325.c   | 1 -
 2 files changed, 2 deletions(-)

diff --git a/board/zyxel/nsa310s/nsa310s.c b/board/zyxel/nsa310s/nsa310s.c
index b3ea6608914a..d018b5738242 100644
--- a/board/zyxel/nsa310s/nsa310s.c
+++ b/board/zyxel/nsa310s/nsa310s.c
@@ -4,7 +4,6 @@
  * Copyright (C) 2015 Gerald Kerma <dreagle@doukki.net>
  */
 
-#include <common.h>
 #include <init.h>
 #include <netdev.h>
 #include <asm/arch/cpu.h>
diff --git a/board/zyxel/nsa325/nsa325.c b/board/zyxel/nsa325/nsa325.c
index f5f63ee5d3b0..38340b33c8bf 100644
--- a/board/zyxel/nsa325/nsa325.c
+++ b/board/zyxel/nsa325/nsa325.c
@@ -14,7 +14,6 @@
  * Marvell Semiconductor <www.marvell.com>
  */
 
-#include <common.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/mpp.h>
 #include <netdev.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* Re: [PATCH 010/149] board: Marvell: Remove <common.h> and add needed includes
  2024-05-01  2:40 ` [PATCH 010/149] board: Marvell: " Tom Rini
@ 2024-05-01  2:47   ` Chris Packham
  2024-05-01 20:20   ` Tony Dinh
  2024-05-02  6:02   ` Stefan Roese
  2 siblings, 0 replies; 197+ messages in thread
From: Chris Packham @ 2024-05-01  2:47 UTC (permalink / raw)
  To: Tom Rini, u-boot
  Cc: Stefan Roese, Tony Dinh, Jason Cooper, Siddarth Gore, Aaron Williams


On 1/05/24 14:40, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Stefan Roese <sr@denx.de>
> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Cc: Tony Dinh <mibodhi@gmail.com>
> Cc: Jason Cooper <u-boot@lakedaemon.net>
> Cc: Siddarth Gore <gores@marvell.com>
> Cc: Aaron Williams <awilliams@marvell.com>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> ---
>   arch/arm/mach-kirkwood/include/mach/mpp.h     | 2 ++
>   board/Marvell/db-88f6720/db-88f6720.c         | 1 -
>   board/Marvell/db-88f6820-amc/db-88f6820-amc.c | 2 +-
>   board/Marvell/db-88f6820-gp/db-88f6820-gp.c   | 2 +-
>   board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c   | 1 -
>   board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c   | 1 -
>   board/Marvell/dreamplug/dreamplug.c           | 1 -
>   board/Marvell/guruplug/guruplug.c             | 1 -
>   board/Marvell/mvebu_alleycat-5/board.c        | 2 +-
>   board/Marvell/mvebu_armada-37xx/board.c       | 2 +-
>   board/Marvell/mvebu_armada-8k/board.c         | 2 +-
>   board/Marvell/octeontx2/soc-utils.c           | 1 -
>   board/Marvell/openrd/openrd.c                 | 1 -
>   board/Marvell/sheevaplug/sheevaplug.c         | 1 -
>   14 files changed, 7 insertions(+), 13 deletions(-)
>
> diff --git a/arch/arm/mach-kirkwood/include/mach/mpp.h b/arch/arm/mach-kirkwood/include/mach/mpp.h
> index 4d1f58c0cbdf..e2757942590b 100644
> --- a/arch/arm/mach-kirkwood/include/mach/mpp.h
> +++ b/arch/arm/mach-kirkwood/include/mach/mpp.h
> @@ -8,6 +8,8 @@
>   #ifndef __KIRKWOOD_MPP_H
>   #define __KIRKWOOD_MPP_H
>   
> +#include <linux/types.h>
> +
>   #define MPP(_num, _sel, _in, _out, _F6180, _F6190, _F6192, _F6281) ( \
>   	/* MPP number */		((_num) & 0xff) | \
>   	/* MPP select value */		(((_sel) & 0xf) << 8) | \
> diff --git a/board/Marvell/db-88f6720/db-88f6720.c b/board/Marvell/db-88f6720/db-88f6720.c
> index 26c30647fbb0..920421366f11 100644
> --- a/board/Marvell/db-88f6720/db-88f6720.c
> +++ b/board/Marvell/db-88f6720/db-88f6720.c
> @@ -3,7 +3,6 @@
>    * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> index 122c63d11f99..0f92cc385bc8 100644
> --- a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> +++ b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <i2c.h>
>   #include <init.h>
>   #include <miiphy.h>
> diff --git a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> index 1edc1cb6515c..8f8b2720107a 100644
> --- a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> +++ b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <i2c.h>
>   #include <init.h>
>   #include <miiphy.h>
> diff --git a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> index 9e1fdecfca4d..6bca1f91a0a4 100644
> --- a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> +++ b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> @@ -3,7 +3,6 @@
>    * Copyright (C) 2014 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> index 0abdca1cd210..a7a84798a53b 100644
> --- a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> +++ b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> @@ -3,7 +3,6 @@
>    * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
>   #include <i2c.h>
>   #include <init.h>
>   #include <asm/global_data.h>
> diff --git a/board/Marvell/dreamplug/dreamplug.c b/board/Marvell/dreamplug/dreamplug.c
> index d15faa1cb7ff..381275061318 100644
> --- a/board/Marvell/dreamplug/dreamplug.c
> +++ b/board/Marvell/dreamplug/dreamplug.c
> @@ -8,7 +8,6 @@
>    * Written-by: Siddarth Gore <gores@marvell.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <netdev.h>
>   #include <asm/arch/cpu.h>
> diff --git a/board/Marvell/guruplug/guruplug.c b/board/Marvell/guruplug/guruplug.c
> index ea87ded222e6..7c3cea22b936 100644
> --- a/board/Marvell/guruplug/guruplug.c
> +++ b/board/Marvell/guruplug/guruplug.c
> @@ -5,7 +5,6 @@
>    * Written-by: Siddarth Gore <gores@marvell.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/Marvell/mvebu_alleycat-5/board.c b/board/Marvell/mvebu_alleycat-5/board.c
> index 0c4f8e03b859..c1b7cc3b613c 100644
> --- a/board/Marvell/mvebu_alleycat-5/board.c
> +++ b/board/Marvell/mvebu_alleycat-5/board.c
> @@ -1,6 +1,6 @@
>   // SPDX-License-Identifier: GPL-2.0+
>   
> -#include <common.h>
> +#include <config.h>
>   #include <asm/global_data.h>
>   
>   DECLARE_GLOBAL_DATA_PTR;
> diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c
> index 1685b12b8478..df3fb6d21645 100644
> --- a/board/Marvell/mvebu_armada-37xx/board.c
> +++ b/board/Marvell/mvebu_armada-37xx/board.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <dm.h>
>   #include <dm/device-internal.h>
>   #include <env.h>
> diff --git a/board/Marvell/mvebu_armada-8k/board.c b/board/Marvell/mvebu_armada-8k/board.c
> index a8899af6e5af..6d7042117424 100644
> --- a/board/Marvell/mvebu_armada-8k/board.c
> +++ b/board/Marvell/mvebu_armada-8k/board.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <dm.h>
>   #include <i2c.h>
>   #include <init.h>
> diff --git a/board/Marvell/octeontx2/soc-utils.c b/board/Marvell/octeontx2/soc-utils.c
> index 43a19a90717c..64eb95f3b400 100644
> --- a/board/Marvell/octeontx2/soc-utils.c
> +++ b/board/Marvell/octeontx2/soc-utils.c
> @@ -5,7 +5,6 @@
>    * https://scanmail.trustwave.com/?c=20988&d=16yx5qQPZF7h9qYYT3eDGqXkvfa5TUXAUaB6y5oezA&u=https%3a%2f%2fspdx%2eorg%2flicenses
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <malloc.h>
>   #include <errno.h>
> diff --git a/board/Marvell/openrd/openrd.c b/board/Marvell/openrd/openrd.c
> index 581e2e084d6f..dda56a582b3e 100644
> --- a/board/Marvell/openrd/openrd.c
> +++ b/board/Marvell/openrd/openrd.c
> @@ -10,7 +10,6 @@
>    * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c
> index 26ee39ef77f9..23e761d5febf 100644
> --- a/board/Marvell/sheevaplug/sheevaplug.c
> +++ b/board/Marvell/sheevaplug/sheevaplug.c
> @@ -6,7 +6,6 @@
>    * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <netdev.h>
>   #include <asm/global_data.h>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 014/149] board: alliedtelesis: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 014/149] board: alliedtelesis: " Tom Rini
@ 2024-05-01  2:47   ` Chris Packham
  0 siblings, 0 replies; 197+ messages in thread
From: Chris Packham @ 2024-05-01  2:47 UTC (permalink / raw)
  To: Tom Rini, u-boot


On 1/05/24 14:41, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>

Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

> ---
>   board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c     | 1 -
>   board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c | 1 -
>   board/alliedtelesis/common/gpio_hog.c           | 1 -
>   board/alliedtelesis/x240/x240.c                 | 2 +-
>   board/alliedtelesis/x530/x530.c                 | 2 +-
>   5 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c b/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
> index e0a7f3fa89f0..5e6d6c6234fb 100644
> --- a/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
> +++ b/board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
> @@ -4,7 +4,6 @@
>    * Allied Telesis <http://scanmail.trustwave.com/?c=20988&d=2ayx5kNiqyP-Zhu-6cGRswhIuvU8IKOw7TN5W7swfg&u=http%3a%2f%2fwww%2ealliedtelesis%2ecom>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <net.h>
>   #include <asm/global_data.h>
> diff --git a/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c b/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
> index 52b8eba92fc1..f30821c17963 100644
> --- a/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
> +++ b/board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
> @@ -4,7 +4,6 @@
>    * Allied Telesis <http://scanmail.trustwave.com/?c=20988&d=2ayx5kNiqyP-Zhu-6cGRswhIuvU8IKOw7TN5W7swfg&u=http%3a%2f%2fwww%2ealliedtelesis%2ecom>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/alliedtelesis/common/gpio_hog.c b/board/alliedtelesis/common/gpio_hog.c
> index 4aecf7e2cef7..7da70fb4f7d6 100644
> --- a/board/alliedtelesis/common/gpio_hog.c
> +++ b/board/alliedtelesis/common/gpio_hog.c
> @@ -3,7 +3,6 @@
>    * Copyright (C) 2018 Allied Telesis Labs
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <asm/global_data.h>
>   #include <asm/gpio.h>
> diff --git a/board/alliedtelesis/x240/x240.c b/board/alliedtelesis/x240/x240.c
> index 0c4f8e03b859..c1b7cc3b613c 100644
> --- a/board/alliedtelesis/x240/x240.c
> +++ b/board/alliedtelesis/x240/x240.c
> @@ -1,6 +1,6 @@
>   // SPDX-License-Identifier: GPL-2.0+
>   
> -#include <common.h>
> +#include <config.h>
>   #include <asm/global_data.h>
>   
>   DECLARE_GLOBAL_DATA_PTR;
> diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c
> index 80ad62c2c665..65e6d48db0a6 100644
> --- a/board/alliedtelesis/x530/x530.c
> +++ b/board/alliedtelesis/x530/x530.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2017 Allied Telesis Labs
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <command.h>
>   #include <dm.h>
>   #include <env.h>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 029/149] board: broadcom: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 029/149] board: broadcom: " Tom Rini
@ 2024-05-01  3:42   ` William Zhang
  0 siblings, 0 replies; 197+ messages in thread
From: William Zhang @ 2024-05-01  3:42 UTC (permalink / raw)
  To: Tom Rini, u-boot
  Cc: Anand Gore, Kursad Oney, Joel Peshkin, Philippe Reynes,
	Linus Walleij, Rayagonda Kokatanur, Thomas Fitzsimmons

[-- Attachment #1: Type: text/plain, Size: 2423 bytes --]

Hi Tom,

On 04/30/2024 07:41 PM, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Anand Gore <anand.gore@broadcom.com>
> Cc: William Zhang <william.zhang@broadcom.com>
> Cc: Kursad Oney <kursad.oney@broadcom.com>
> Cc: Joel Peshkin <joel.peshkin@broadcom.com>
> Cc: Philippe Reynes <philippe.reynes@softathome.com>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
> Cc: Thomas Fitzsimmons <fitzsim@fitzsim.org>
> ---
>   board/broadcom/bcmbca/board.c  | 1 -
>   board/broadcom/bcmns/ns.c      | 1 -
>   board/broadcom/bcmns3/ns3.c    | 2 +-
>   board/broadcom/bcmstb/bcmstb.c | 1 -
>   4 files changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/board/broadcom/bcmbca/board.c b/board/broadcom/bcmbca/board.c
> index bcecb4d78392..a6ced92565f9 100644
> --- a/board/broadcom/bcmbca/board.c
> +++ b/board/broadcom/bcmbca/board.c
> @@ -3,7 +3,6 @@
>    * (C) Copyright 2022 Broadcom Ltd.
>    */
>   
> -#include <common.h>
>   #include <fdtdec.h>
>   
>   int board_init(void)
> diff --git a/board/broadcom/bcmns/ns.c b/board/broadcom/bcmns/ns.c
> index 1249e45af036..45cc62936cec 100644
> --- a/board/broadcom/bcmns/ns.c
> +++ b/board/broadcom/bcmns/ns.c
> @@ -4,7 +4,6 @@
>    * Copyright (C) 2023 Linus Walleij <linus.walleij@linaro.org>
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <init.h>
>   #include <log.h>
> diff --git a/board/broadcom/bcmns3/ns3.c b/board/broadcom/bcmns3/ns3.c
> index 7ae6742c4be8..bb2f1e4f62ad 100644
> --- a/board/broadcom/bcmns3/ns3.c
> +++ b/board/broadcom/bcmns3/ns3.c
> @@ -4,8 +4,8 @@
>    *
>    */
>   
> -#include <common.h>
>   #include <fdt_support.h>
> +#include <linux/errno.h>
>   #include <asm/io.h>
>   #include <asm/gic-v3.h>
>   #include <asm/global_data.h>
> diff --git a/board/broadcom/bcmstb/bcmstb.c b/board/broadcom/bcmstb/bcmstb.c
> index aead6f099e81..bc05aecc446d 100644
> --- a/board/broadcom/bcmstb/bcmstb.c
> +++ b/board/broadcom/bcmstb/bcmstb.c
> @@ -12,7 +12,6 @@
>   #include <time.h>
>   #include <asm/global_data.h>
>   #include <linux/types.h>
> -#include <common.h>
>   #include <env.h>
>   #include <asm/io.h>
>   #include <asm/bootm.h>
> 

For board/broadcom/bcmbca/board.c

Reviewed-by: William Zhang <william.zhang@broadcom.com>



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 118/149] board: sipeed: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 118/149] board: sipeed: " Tom Rini
@ 2024-05-01  4:30   ` Sean Anderson
  0 siblings, 0 replies; 197+ messages in thread
From: Sean Anderson @ 2024-05-01  4:30 UTC (permalink / raw)
  To: Tom Rini, u-boot

On 4/30/24 22:42, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Sean Anderson <seanga2@gmail.com>
> ---
>   board/sipeed/maix/maix.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/sipeed/maix/maix.c b/board/sipeed/maix/maix.c
> index 06653b5a8765..08077a1f9e13 100644
> --- a/board/sipeed/maix/maix.c
> +++ b/board/sipeed/maix/maix.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <clk.h>
>   #include <dm.h>
>   #include <fdt_support.h>

Reviewed-by: Sean Anderson <seanga2@gmail.com>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 017/149] board: aristainetos: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 017/149] board: aristainetos: " Tom Rini
@ 2024-05-01  5:05   ` Heiko Schocher
  0 siblings, 0 replies; 197+ messages in thread
From: Heiko Schocher @ 2024-05-01  5:05 UTC (permalink / raw)
  To: Tom Rini, u-boot

Hello Tom,

On 01.05.24 04:41, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Heiko Schocher <hs@denx.de>
> ---
>   board/aristainetos/aristainetos.c | 1 -
>   1 file changed, 1 deletion(-)

Thanks!

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs@denx.de

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 027/149] board: bosch: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 027/149] board: bosch: " Tom Rini
@ 2024-05-01  5:08   ` Heiko Schocher
  0 siblings, 0 replies; 197+ messages in thread
From: Heiko Schocher @ 2024-05-01  5:08 UTC (permalink / raw)
  To: Tom Rini
  Cc: Matthias Winker, Philip Oberfichtner, Sjoerd Simons,
	Govindaraji Sivanantham, Hiremath Gireesh, u-boot

Hello Tom,

On 01.05.24 04:41, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Matthias Winker <matthias.winker@de.bosch.com>
> Cc: Philip Oberfichtner <pro@denx.de>
> Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
> Cc: Govindaraji Sivanantham <Govindaraji.Sivanantham@in.bosch.com>
> Cc: Hiremath Gireesh <Gireesh.Hiremath@in.bosch.com>
> Cc: Heiko Schocher <hs@denx.de>
> ---
>   board/bosch/acc/acc.c        | 2 +-
>   board/bosch/guardian/board.c | 2 +-
>   board/bosch/guardian/mux.c   | 1 -
>   board/bosch/shc/board.c      | 2 +-
>   board/bosch/shc/mux.c        | 1 -
>   5 files changed, 3 insertions(+), 5 deletions(-)

Thanks!

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs@denx.de

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 078/149] board: keymile: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 078/149] board: keymile: " Tom Rini
@ 2024-05-01  5:09   ` Heiko Schocher
  2024-05-03  6:36   ` Holger Brunck
  1 sibling, 0 replies; 197+ messages in thread
From: Heiko Schocher @ 2024-05-01  5:09 UTC (permalink / raw)
  To: Tom Rini
  Cc: Holger Brunck, Niel Fourie, Aleksandar Gerasimovski,
	Rainer Boschung, u-boot

Hello Tom,

On 01.05.24 04:42, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Holger Brunck <holger.brunck@hitachienergy.com>
> Cc: Heiko Schocher <hs@denx.de>
> Cc: Niel Fourie <lusus@denx.de>
> Cc: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
> Cc: Rainer Boschung <rainer.boschung@hitachienergy.com>
> ---
>   board/keymile/common/common.c       | 2 +-
>   board/keymile/common/ivm.c          | 3 ++-
>   board/keymile/common/qrio.c         | 2 +-
>   board/keymile/km83xx/km83xx.c       | 2 +-
>   board/keymile/pg-wcom-ls102xa/ddr.c | 2 +-
>   board/keymile/secu1/socfpga.c       | 1 -
>   6 files changed, 6 insertions(+), 6 deletions(-)

Thanks!

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs@denx.de

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 116/149] board: siemens: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 116/149] board: siemens: " Tom Rini
@ 2024-05-01  5:09   ` Heiko Schocher
  0 siblings, 0 replies; 197+ messages in thread
From: Heiko Schocher @ 2024-05-01  5:09 UTC (permalink / raw)
  To: Tom Rini; +Cc: Anatolij Gustschin, Le Jin, Jan Kiszka, u-boot

Hello Tom,

On 01.05.24 04:42, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Anatolij Gustschin <agust@denx.de>
> Cc: Heiko Schocher <hs@denx.de>
> Cc: Le Jin <le.jin@siemens.com>
> Cc: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>   board/siemens/capricorn/board.c   | 1 -
>   board/siemens/capricorn/spl.c     | 1 -
>   board/siemens/corvus/board.c      | 2 +-
>   board/siemens/iot2050/board.c     | 2 +-
>   board/siemens/smartweb/smartweb.c | 2 +-
>   board/siemens/taurus/taurus.c     | 2 +-
>   6 files changed, 4 insertions(+), 6 deletions(-)

Thanks!

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko

-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs@denx.de

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 121/149] board: socrates: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 121/149] board: socrates: " Tom Rini
@ 2024-05-01  5:11   ` Heiko Schocher
  0 siblings, 0 replies; 197+ messages in thread
From: Heiko Schocher @ 2024-05-01  5:11 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

Hello Tom,

On 01.05.24 04:42, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Heiko Schocher <hs@denx.de>
> ---
>   board/socrates/ddr.c      | 1 -
>   board/socrates/law.c      | 2 +-
>   board/socrates/nand.c     | 2 +-
>   board/socrates/sdram.c    | 2 +-
>   board/socrates/socrates.c | 2 +-
>   board/socrates/tlb.c      | 3 ++-
>   6 files changed, 6 insertions(+), 6 deletions(-)

Thanks!

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs@denx.de

^ permalink raw reply	[flat|nested] 197+ messages in thread

* RE: [PATCH 071/149] board: hoperun: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 071/149] board: hoperun: " Tom Rini
@ 2024-05-01  6:29   ` Biju Das
  0 siblings, 0 replies; 197+ messages in thread
From: Biju Das @ 2024-05-01  6:29 UTC (permalink / raw)
  To: Tom Rini, u-boot

Hi Tom,

> Subject: [PATCH 071/149] board: hoperun: Remove <common.h> and add needed includes
> 
> Remove <common.h> from this board vendor directory and when needed add missing include files
> directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>

> ---
> Cc: Biju Das <biju.das.jz@bp.renesas.com>
> ---
>  board/hoperun/hihope-rzg2/hihope-rzg2.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/board/hoperun/hihope-rzg2/hihope-rzg2.c b/board/hoperun/hihope-rzg2/hihope-rzg2.c
> index 68d3d300dc40..0966e257464a 100644
> --- a/board/hoperun/hihope-rzg2/hihope-rzg2.c
> +++ b/board/hoperun/hihope-rzg2/hihope-rzg2.c
> @@ -6,7 +6,6 @@
>   * Copyright (C) 2021 Renesas Electronics Corporation
>   */
> 
> -#include <common.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
>  #include <asm/processor.h>
> --
> 2.34.1


^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h>
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (147 preceding siblings ...)
  2024-05-01  2:43 ` [PATCH 149/149] board: zyxel: " Tom Rini
@ 2024-05-01  6:33 ` Tony Dinh
  2024-05-01 13:49   ` Tom Rini
  2024-05-07 14:02 ` Tom Rini
  149 siblings, 1 reply; 197+ messages in thread
From: Tony Dinh @ 2024-05-01  6:33 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

Hi Tom,

This patch does not apply cleanly on the master branch. Perhaps this
patch series has a dependency on another previous patch? Please see
below at arch/arm/lib/bdinfo.c.

On Tue, Apr 30, 2024 at 7:50 PM Tom Rini <trini@konsulko.com> wrote:
>
> This follows the example of RISC-V where <asm/global_data.h> includes
> <asm/u-boot.h> directly as "gd" includes a reference to bd_info already
> and so the first must include the second anyhow. We then remove
> <asm/u-boot.h> from all of the places which include references to "gd"
> an so have <asm/global_data.h> already.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>  api/api_platform-arm.c                         | 1 -
>  api/api_platform-mips.c                        | 1 -
>  api/api_platform-powerpc.c                     | 1 -
>  arch/arc/include/asm/global_data.h             | 2 ++
>  arch/arm/include/asm/global_data.h             | 1 +
>  arch/arm/lib/bdinfo.c                          | 1 -
>  arch/arm/lib/cache-cp15.c                      | 1 -
>  arch/arm/mach-davinci/cpu.c                    | 1 -
>  arch/arm/mach-davinci/misc.c                   | 1 -
>  arch/arm/mach-davinci/spl.c                    | 1 -
>  arch/arm/mach-imx/ele_ahab.c                   | 1 -
>  arch/arm/mach-imx/mx5/mx53_dram.c              | 1 -
>  arch/arm/mach-mediatek/mt7622/init.c           | 1 -
>  arch/arm/mach-mediatek/mt7981/init.c           | 1 -
>  arch/arm/mach-mediatek/mt7986/init.c           | 1 -
>  arch/arm/mach-mediatek/mt7988/init.c           | 1 -
>  arch/arm/mach-mvebu/armada8k/dram.c            | 1 -
>  arch/arm/mach-mvebu/dram.c                     | 1 -
>  arch/arm/mach-omap2/omap-cache.c               | 1 -
>  arch/arm/mach-omap2/omap3/emif4.c              | 1 -
>  arch/arm/mach-omap2/omap3/sdrc.c               | 1 -
>  arch/arm/mach-owl/soc.c                        | 1 -
>  arch/arm/mach-renesas/memmap-gen3.c            | 1 -
>  arch/arm/mach-renesas/memmap-rzg2l.c           | 1 -
>  arch/arm/mach-socfpga/clock_manager.c          | 1 -
>  arch/arm/mach-socfpga/clock_manager_agilex5.c  | 1 -
>  arch/arm/mach-socfpga/spl_a10.c                | 1 -
>  arch/arm/mach-socfpga/spl_agilex.c             | 1 -
>  arch/arm/mach-socfpga/spl_gen5.c               | 1 -
>  arch/arm/mach-socfpga/spl_n5x.c                | 1 -
>  arch/arm/mach-socfpga/spl_s10.c                | 1 -
>  arch/arm/mach-uniphier/dram_init.c             | 1 -
>  arch/arm/mach-versal-net/clk.c                 | 1 -
>  arch/arm/mach-versal-net/cpu.c                 | 1 -
>  arch/arm/mach-versal/clk.c                     | 1 -
>  arch/arm/mach-versal/cpu.c                     | 1 -
>  arch/arm/mach-zynqmp/clk.c                     | 1 -
>  arch/arm/mach-zynqmp/cpu.c                     | 1 -
>  arch/m68k/include/asm/global_data.h            | 2 ++
>  arch/m68k/lib/bdinfo.c                         | 1 -
>  arch/microblaze/cpu/spl.c                      | 1 -
>  arch/microblaze/include/asm/global_data.h      | 1 +
>  arch/mips/include/asm/global_data.h            | 1 +
>  arch/mips/lib/traps.c                          | 1 -
>  arch/nios2/include/asm/global_data.h           | 1 +
>  arch/powerpc/cpu/mpc83xx/interrupts.c          | 1 -
>  arch/powerpc/cpu/mpc83xx/pcie.c                | 1 -
>  arch/powerpc/cpu/mpc83xx/spd_sdram.c           | 1 -
>  arch/powerpc/cpu/mpc83xx/speed.c               | 1 -
>  arch/powerpc/cpu/mpc85xx/b4860_ids.c           | 1 +
>  arch/powerpc/cpu/mpc85xx/cmd_errata.c          | 1 -
>  arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c | 1 -
>  arch/powerpc/cpu/mpc85xx/p2041_ids.c           | 3 ++-
>  arch/powerpc/cpu/mpc85xx/p2041_serdes.c        | 1 -
>  arch/powerpc/cpu/mpc85xx/p3041_ids.c           | 1 +
>  arch/powerpc/cpu/mpc85xx/p4080_ids.c           | 1 +
>  arch/powerpc/cpu/mpc85xx/p5040_ids.c           | 1 +
>  arch/powerpc/cpu/mpc85xx/speed.c               | 1 -
>  arch/powerpc/cpu/mpc85xx/spl_minimal.c         | 1 -
>  arch/powerpc/cpu/mpc85xx/t1024_ids.c           | 3 ++-
>  arch/powerpc/cpu/mpc85xx/t1024_serdes.c        | 1 -
>  arch/powerpc/cpu/mpc85xx/t1040_ids.c           | 3 ++-
>  arch/powerpc/cpu/mpc85xx/t1040_serdes.c        | 3 ++-
>  arch/powerpc/cpu/mpc85xx/t2080_ids.c           | 3 ++-
>  arch/powerpc/cpu/mpc85xx/t2080_serdes.c        | 3 ++-
>  arch/powerpc/cpu/mpc85xx/t4240_ids.c           | 3 ++-
>  arch/powerpc/cpu/mpc85xx/t4240_serdes.c        | 1 -
>  arch/powerpc/cpu/mpc8xxx/fsl_lbc.c             | 1 -
>  arch/powerpc/cpu/mpc8xxx/fsl_pamu.c            | 4 +++-
>  arch/powerpc/cpu/mpc8xxx/law.c                 | 1 -
>  arch/powerpc/cpu/mpc8xxx/pamu_table.c          | 1 -
>  arch/powerpc/cpu/mpc8xxx/srio.c                | 3 ++-
>  arch/powerpc/include/asm/fsl_liodn.h           | 4 +++-
>  arch/powerpc/include/asm/fsl_portals.h         | 2 ++
>  arch/powerpc/include/asm/global_data.h         | 2 ++
>  arch/powerpc/lib/bdinfo.c                      | 1 -
>  arch/riscv/lib/boot.c                          | 3 ++-
>  arch/sandbox/include/asm/global_data.h         | 1 +
>  arch/sh/include/asm/global_data.h              | 2 ++
>  arch/x86/cpu/coreboot/sdram.c                  | 1 -
>  arch/x86/cpu/efi/payload.c                     | 1 -
>  arch/x86/cpu/efi/sdram.c                       | 1 -
>  arch/x86/cpu/ivybridge/sdram_nop.c             | 1 -
>  arch/x86/cpu/qemu/dram.c                       | 1 -
>  arch/x86/cpu/quark/dram.c                      | 1 -
>  arch/x86/cpu/tangier/sdram.c                   | 1 -
>  arch/x86/include/asm/global_data.h             | 1 +
>  arch/xtensa/include/asm/global_data.h          | 2 ++
>  board/keymile/kmcent2/tlb.c                    | 2 +-
>  board/phytium/pe2201/pe2201.c                  | 1 -
>  board/phytium/pomelo/pomelo.c                  | 1 -
>  board/renesas/falcon/falcon.c                  | 1 -
>  board/renesas/grpeach/grpeach.c                | 1 -
>  common/init/handoff.c                          | 1 -
>  common/spl/spl.c                               | 1 -
>  common/spl/spl_ext.c                           | 1 -
>  common/spl/spl_fat.c                           | 1 -
>  common/spl/spl_mmc.c                           | 1 -
>  common/spl/spl_sata.c                          | 1 -
>  common/spl/spl_usb.c                           | 1 -
>  common/spl/spl_ymodem.c                        | 1 -
>  drivers/clk/altera/clk-agilex5.c               | 1 -
>  include/dm/of.h                                | 1 -
>  include/fsl_errata.h                           | 2 +-
>  104 files changed, 48 insertions(+), 88 deletions(-)
>
> diff --git a/api/api_platform-arm.c b/api/api_platform-arm.c
> index 6cfd9e6cc20c..9afba66c2442 100644
> --- a/api/api_platform-arm.c
> +++ b/api/api_platform-arm.c
> @@ -12,7 +12,6 @@
>  #include <linux/types.h>
>  #include <api_public.h>
>
> -#include <asm/u-boot.h>
>  #include <asm/global_data.h>
>
>  #include "api_private.h"
> diff --git a/api/api_platform-mips.c b/api/api_platform-mips.c
> index e1509663af54..262b35a27779 100644
> --- a/api/api_platform-mips.c
> +++ b/api/api_platform-mips.c
> @@ -9,7 +9,6 @@
>  #include <linux/types.h>
>  #include <api_public.h>
>
> -#include <asm/u-boot.h>
>  #include <asm/global_data.h>
>
>  #include "api_private.h"
> diff --git a/api/api_platform-powerpc.c b/api/api_platform-powerpc.c
> index 847a4a3015b0..3a04a9f691c5 100644
> --- a/api/api_platform-powerpc.c
> +++ b/api/api_platform-powerpc.c
> @@ -12,7 +12,6 @@
>  #include <linux/types.h>
>  #include <api_public.h>
>
> -#include <asm/u-boot.h>
>  #include <asm/global_data.h>
>
>  #include "api_private.h"
> diff --git a/arch/arc/include/asm/global_data.h b/arch/arc/include/asm/global_data.h
> index e35a26f1eb14..fd9b7fb5f8db 100644
> --- a/arch/arc/include/asm/global_data.h
> +++ b/arch/arc/include/asm/global_data.h
> @@ -6,6 +6,8 @@
>  #ifndef        __ASM_ARC_GLOBAL_DATA_H
>  #define __ASM_ARC_GLOBAL_DATA_H
>
> +#include <asm/u-boot.h>
> +
>  #ifndef __ASSEMBLY__
>  /* Architecture-specific global data */
>  struct arch_global_data {
> diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
> index 452bcd1b8fd9..45401d5e3c8a 100644
> --- a/arch/arm/include/asm/global_data.h
> +++ b/arch/arm/include/asm/global_data.h
> @@ -12,6 +12,7 @@
>  #include <config.h>
>
>  #include <linux/types.h>
> +#include <asm/u-boot.h>
>
>  /* Architecture-specific global data */
>  struct arch_global_data {
> diff --git a/arch/arm/lib/bdinfo.c b/arch/arm/lib/bdinfo.c
> index 40255ace4051..7c49462c8eb4 100644
> --- a/arch/arm/lib/bdinfo.c
> +++ b/arch/arm/lib/bdinfo.c
> @@ -9,7 +9,6 @@
>  #include <config.h>
>  #include <init.h>
>  #include <asm/global_data.h>
> -#include <asm/u-boot.h>
>  #include <asm/mach-types.h>
>
>  DECLARE_GLOBAL_DATA_PTR;

Applying the patch spits out error right here, since currently on
master branch, arch/arm/lib/bdinfo.c include statements are:

#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/mach-types.h>

All the best,
Tony

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 108/149] board: qualcomm: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 108/149] board: qualcomm: " Tom Rini
@ 2024-05-01  7:06   ` Sumit Garg
  0 siblings, 0 replies; 197+ messages in thread
From: Sumit Garg @ 2024-05-01  7:06 UTC (permalink / raw)
  To: Tom Rini
  Cc: u-boot, Ramon Fried, Caleb Connolly, Neil Armstrong, Jorge Ramirez-Ortiz

On Wed, 1 May 2024 at 08:15, Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Ramon Fried <rfried.dev@gmail.com>
> Cc: Caleb Connolly <caleb.connolly@linaro.org>
> Cc: Neil Armstrong <neil.armstrong@linaro.org>
> Cc: Sumit Garg <sumit.garg@linaro.org>
> Cc: Jorge Ramirez-Ortiz <jorge.ramirez.ortiz@gmail.com>
> ---
>  board/qualcomm/dragonboard410c/dragonboard410c.c | 1 -
>  board/qualcomm/dragonboard820c/dragonboard820c.c | 1 -
>  2 files changed, 2 deletions(-)
>

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>

-Sumit

> diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c
> index fbbfc0e65e24..bd2e213b3bca 100644
> --- a/board/qualcomm/dragonboard410c/dragonboard410c.c
> +++ b/board/qualcomm/dragonboard410c/dragonboard410c.c
> @@ -6,7 +6,6 @@
>   */
>
>  #include <button.h>
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <dm.h>
>  #include <dm/pinctrl.h>
> diff --git a/board/qualcomm/dragonboard820c/dragonboard820c.c b/board/qualcomm/dragonboard820c/dragonboard820c.c
> index ac7de711c588..d3333a59db01 100644
> --- a/board/qualcomm/dragonboard820c/dragonboard820c.c
> +++ b/board/qualcomm/dragonboard820c/dragonboard820c.c
> @@ -13,7 +13,6 @@
>  #include <asm/global_data.h>
>  #include <linux/arm-smccc.h>
>  #include <linux/psci.h>
> -#include <common.h>
>  #include <dm.h>
>  #include <asm/io.h>
>  #include <linux/bitops.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 023/149] board: beacon: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 023/149] board: beacon: " Tom Rini
@ 2024-05-01  9:22   ` Adam Ford
  0 siblings, 0 replies; 197+ messages in thread
From: Adam Ford @ 2024-05-01  9:22 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

On Tue, Apr 30, 2024 at 9:43 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by:  Adam Ford <aford173@gmail.com>

> ---
> Cc: Adam Ford <aford173@gmail.com>
> ---
>  board/beacon/beacon-rzg2m/beacon-rzg2m.c | 1 -
>  board/beacon/imx8mm/lpddr4_timing.c      | 1 -
>  board/beacon/imx8mm/spl.c                | 1 -
>  board/beacon/imx8mn/spl.c                | 1 -
>  board/beacon/imx8mp/imx8mp_beacon.c      | 1 -
>  board/beacon/imx8mp/spl.c                | 1 -
>  6 files changed, 6 deletions(-)
>
> diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
> index 99fe1edfb330..099053235ded 100644
> --- a/board/beacon/beacon-rzg2m/beacon-rzg2m.c
> +++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
> @@ -3,7 +3,6 @@
>   * Copyright 2020 Compass Electronics Group, LLC
>   */
>
> -#include <common.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
>
> diff --git a/board/beacon/imx8mm/lpddr4_timing.c b/board/beacon/imx8mm/lpddr4_timing.c
> index 8e48b9d81b77..c1498dd5eaf4 100644
> --- a/board/beacon/imx8mm/lpddr4_timing.c
> +++ b/board/beacon/imx8mm/lpddr4_timing.c
> @@ -4,7 +4,6 @@
>   */
>
>  #include <linux/kernel.h>
> -#include <common.h>
>  #include <asm/arch/ddr.h>
>  #include <asm/arch/lpddr4_define.h>
>
> diff --git a/board/beacon/imx8mm/spl.c b/board/beacon/imx8mm/spl.c
> index 1632238bf5dd..12013aa5a4da 100644
> --- a/board/beacon/imx8mm/spl.c
> +++ b/board/beacon/imx8mm/spl.c
> @@ -1,6 +1,5 @@
>  // SPDX-License-Identifier: GPL-2.0+
>
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <hang.h>
>  #include <init.h>
> diff --git a/board/beacon/imx8mn/spl.c b/board/beacon/imx8mn/spl.c
> index b4d46f11f98d..f03841e5a01d 100644
> --- a/board/beacon/imx8mn/spl.c
> +++ b/board/beacon/imx8mn/spl.c
> @@ -3,7 +3,6 @@
>   * Copyright 2020 Compass Electronics Group, LLC
>   */
>
> -#include <common.h>
>  #include <hang.h>
>  #include <image.h>
>  #include <init.h>
> diff --git a/board/beacon/imx8mp/imx8mp_beacon.c b/board/beacon/imx8mp/imx8mp_beacon.c
> index 8963a51fbba0..dd74e7c0f755 100644
> --- a/board/beacon/imx8mp/imx8mp_beacon.c
> +++ b/board/beacon/imx8mp/imx8mp_beacon.c
> @@ -1,7 +1,6 @@
>  // SPDX-License-Identifier: GPL-2.0+
>  /* Copyright 2023 Logic PD, Inc dba Beacon EmbeddedWorks */
>
> -#include <common.h>
>  #include <init.h>
>  #include <miiphy.h>
>  #include <asm/arch/sys_proto.h>
> diff --git a/board/beacon/imx8mp/spl.c b/board/beacon/imx8mp/spl.c
> index 591e8ca9ab5b..30d577f7e0e3 100644
> --- a/board/beacon/imx8mp/spl.c
> +++ b/board/beacon/imx8mp/spl.c
> @@ -4,7 +4,6 @@
>   *
>   */
>
> -#include <common.h>
>  #include <hang.h>
>  #include <init.h>
>  #include <log.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 048/149] board: davinci: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 048/149] board: davinci: " Tom Rini
@ 2024-05-01  9:23   ` Adam Ford
  0 siblings, 0 replies; 197+ messages in thread
From: Adam Ford @ 2024-05-01  9:23 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

On Tue, Apr 30, 2024 at 9:44 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by:  Adam Ford <aford173@gmail.com>

> ---
> Cc: Adam Ford <aford173@gmail.com>
> ---
>  board/davinci/da8xxevm/da850evm.c      | 2 +-
>  board/davinci/da8xxevm/omapl138_lcdk.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
> index 05053a87a5a9..0011c8285237 100644
> --- a/board/davinci/da8xxevm/da850evm.c
> +++ b/board/davinci/da8xxevm/da850evm.c
> @@ -8,7 +8,7 @@
>   * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
>   */
>
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <env.h>
>  #include <i2c.h>
> diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c
> index 9738e2bd9c77..607e05ad9ae4 100644
> --- a/board/davinci/da8xxevm/omapl138_lcdk.c
> +++ b/board/davinci/da8xxevm/omapl138_lcdk.c
> @@ -8,7 +8,7 @@
>   * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
>   */
>
> -#include <common.h>
> +#include <config.h>
>  #include <env.h>
>  #include <i2c.h>
>  #include <init.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 086/149] board: logicpd: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 086/149] board: logicpd: " Tom Rini
@ 2024-05-01  9:23   ` Adam Ford
  0 siblings, 0 replies; 197+ messages in thread
From: Adam Ford @ 2024-05-01  9:23 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

On Tue, Apr 30, 2024 at 9:44 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by:  Adam Ford <aford173@gmail.com>

> ---
> Cc: Adam Ford <aford173@gmail.com>
> ---
>  board/logicpd/am3517evm/am3517evm.c | 1 -
>  board/logicpd/imx6/imx6logic.c      | 1 -
>  board/logicpd/omap3som/omap3logic.c | 2 +-
>  3 files changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/board/logicpd/am3517evm/am3517evm.c b/board/logicpd/am3517evm/am3517evm.c
> index e69a73f2af6f..e6ca31016b7c 100644
> --- a/board/logicpd/am3517evm/am3517evm.c
> +++ b/board/logicpd/am3517evm/am3517evm.c
> @@ -10,7 +10,6 @@
>   * Texas Instruments Incorporated - https://www.ti.com/
>   */
>
> -#include <common.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <net.h>
> diff --git a/board/logicpd/imx6/imx6logic.c b/board/logicpd/imx6/imx6logic.c
> index 0d53548dcb4b..589136fd64aa 100644
> --- a/board/logicpd/imx6/imx6logic.c
> +++ b/board/logicpd/imx6/imx6logic.c
> @@ -8,7 +8,6 @@
>   * and updates by Jagan Teki <jagan@amarulasolutions.com>
>   */
>
> -#include <common.h>
>  #include <env.h>
>  #include <init.h>
>  #include <miiphy.h>
> diff --git a/board/logicpd/omap3som/omap3logic.c b/board/logicpd/omap3som/omap3logic.c
> index 86992829caf4..a9fe61918b6a 100644
> --- a/board/logicpd/omap3som/omap3logic.c
> +++ b/board/logicpd/omap3som/omap3logic.c
> @@ -10,7 +10,7 @@
>   *     Richard Woodruff <r-woodruff2@ti.com>
>   *     Syed Mohammed Khasim <khasim@ti.com>
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <net.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* RE: [PATCH 061/149] board: freescale: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 061/149] board: freescale: " Tom Rini
@ 2024-05-01 11:26   ` Peng Fan
  2024-05-01 12:02   ` Jason Liu
  1 sibling, 0 replies; 197+ messages in thread
From: Peng Fan @ 2024-05-01 11:26 UTC (permalink / raw)
  To: Tom Rini, u-boot
  Cc: Stefano Babic, Fabio Estevam, dl-uboot-imx, Giulio Benetti,
	Jesse Taube, Pramod Kumar, Alison Wang, Andy Tang, Mingkai Hu,
	Ashish Kumar, Priyanka Jain, Wasim Khan, Meenakshi Aggarwal,
	Angelo Dureghello, Tsi-Chung Liew, Sinan Akman, Otavio Salvador,
	Jason Liu, Eric Nelson, Adrian Alonso, Qiang Zhao, Shengzhou Liu

> Subject: [PATCH 061/149] board: freescale: Remove <common.h> and add
> needed includes
> 
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by: Peng Fan <peng.fan@nxp.com>
> ---
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
> Cc: Jesse Taube <Mr.Bossman075@gmail.com>
> Cc: Pramod Kumar <pramod.kumar_1@nxp.com>
> Cc: Alison Wang <alison.wang@nxp.com>
> Cc: Tang Yuantian <andy.tang@nxp.com>
> Cc: Mingkai Hu <mingkai.hu@nxp.com>
> Cc: Ashish Kumar <Ashish.Kumar@nxp.com>
> Cc: Priyanka Jain <priyanka.jain@nxp.com>
> Cc: Wasim Khan <wasim.khan@nxp.com>
> Cc: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
> Cc: Angelo Dureghello <angelo@kernel-space.org>
> Cc: TsiChung Liew <Tsi-Chung.Liew@nxp.com>
> Cc: Sinan Akman <sinan@writeme.com>
> Cc: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Jason Liu <jason.hui.liu@nxp.com>
> Cc: Eric Nelson <eric@nelint.com>
> Cc: Adrian Alonso <adrian.alonso@nxp.com>
> Cc: Qiang Zhao <qiang.zhao@nxp.com>
> Cc: Shengzhou Liu <Shengzhou.Liu@nxp.com>
> ---
>  arch/arm/include/asm/arch-imx8m/ddr.h             | 2 +-
>  arch/arm/include/asm/mach-imx/gpio.h              | 2 ++
>  board/freescale/common/cadmus.c                   | 3 ++-
>  board/freescale/common/cds_pci_ft.c               | 1 -
>  board/freescale/common/cds_via.c                  | 1 -
>  board/freescale/common/cmd_esbc_validate.c        | 2 +-
>  board/freescale/common/emc2305.c                  | 1 -
>  board/freescale/common/fman.c                     | 1 -
>  board/freescale/common/fsl_chain_of_trust.c       | 2 +-
>  board/freescale/common/fsl_validate.c             | 2 +-
>  board/freescale/common/i2c_common.c               | 2 +-
>  board/freescale/common/i2c_mux.c                  | 3 ++-
>  board/freescale/common/ics307_clk.c               | 2 +-
>  board/freescale/common/ls102xa_stream_id.c        | 2 +-
>  board/freescale/common/mc34vr500.c                | 1 -
>  board/freescale/common/mmc.c                      | 2 +-
>  board/freescale/common/ngpixis.c                  | 1 -
>  board/freescale/common/ns_access.c                | 2 +-
>  board/freescale/common/p_corenet/law.c            | 2 +-
>  board/freescale/common/p_corenet/tlb.c            | 3 ++-
>  board/freescale/common/pfuze.c                    | 1 -
>  board/freescale/common/qixis.c                    | 2 +-
>  board/freescale/common/sdhc_boot.c                | 1 -
>  board/freescale/common/sys_eeprom.c               | 1 -
>  board/freescale/common/vid.c                      | 3 ++-
>  board/freescale/imx8mm_evk/imx8mm_evk.c           | 1 -
>  board/freescale/imx8mm_evk/spl.c                  | 1 -
>  board/freescale/imx8mn_evk/imx8mn_evk.c           | 1 -
>  board/freescale/imx8mn_evk/spl.c                  | 1 -
>  board/freescale/imx8mp_evk/spl.c                  | 1 -
>  board/freescale/imx8mq_evk/imx8mq_evk.c           | 1 -
>  board/freescale/imx8mq_evk/lpddr4_timing.c        | 1 -
>  board/freescale/imx8mq_evk/lpddr4_timing_b0.c     | 1 -
>  board/freescale/imx8mq_evk/spl.c                  | 2 +-
>  board/freescale/imx8qm_mek/imx8qm_mek.c           | 1 -
>  board/freescale/imx8qm_mek/spl.c                  | 1 -
>  board/freescale/imx8qxp_mek/imx8qxp_mek.c         | 1 -
>  board/freescale/imx8qxp_mek/spl.c                 | 1 -
>  board/freescale/imx8ulp_evk/imx8ulp_evk.c         | 1 -
>  board/freescale/imx8ulp_evk/spl.c                 | 1 -
>  board/freescale/imx93_evk/imx93_evk.c             | 1 -
>  board/freescale/imx93_evk/spl.c                   | 1 -
>  board/freescale/imxrt1020-evk/imxrt1020-evk.c     | 1 -
>  board/freescale/imxrt1050-evk/imxrt1050-evk.c     | 1 -
>  board/freescale/imxrt1170-evk/imxrt1170-evk.c     | 1 -
>  board/freescale/ls1012afrdm/eth.c                 | 1 -
>  board/freescale/ls1012afrdm/ls1012afrdm.c         | 2 +-
>  board/freescale/ls1012aqds/eth.c                  | 2 +-
>  board/freescale/ls1012aqds/ls1012aqds.c           | 2 +-
>  board/freescale/ls1012ardb/eth.c                  | 2 +-
>  board/freescale/ls1012ardb/ls1012ardb.c           | 2 +-
>  board/freescale/ls1021aiot/ls1021aiot.c           | 2 +-
>  board/freescale/ls1021aqds/ddr.c                  | 2 +-
>  board/freescale/ls1028a/ddr.c                     | 1 -
>  board/freescale/ls1028a/ls1028a.c                 | 2 +-
>  board/freescale/ls1043aqds/ddr.c                  | 1 -
>  board/freescale/ls1043aqds/eth.c                  | 2 +-
>  board/freescale/ls1043aqds/ls1043aqds.c           | 2 +-
>  board/freescale/ls1043ardb/cpld.c                 | 2 +-
>  board/freescale/ls1043ardb/ddr.c                  | 1 -
>  board/freescale/ls1043ardb/eth.c                  | 2 +-
>  board/freescale/ls1046afrwy/ddr.c                 | 1 -
>  board/freescale/ls1046afrwy/eth.c                 | 2 +-
>  board/freescale/ls1046afrwy/ls1046afrwy.c         | 2 +-
>  board/freescale/ls1046aqds/ddr.c                  | 1 -
>  board/freescale/ls1046aqds/eth.c                  | 2 +-
>  board/freescale/ls1046aqds/ls1046aqds.c           | 2 +-
>  board/freescale/ls1046ardb/cpld.c                 | 2 +-
>  board/freescale/ls1046ardb/ddr.c                  | 1 -
>  board/freescale/ls1046ardb/eth.c                  | 2 +-
>  board/freescale/ls1046ardb/ls1046ardb.c           | 2 +-
>  board/freescale/ls1088a/ddr.c                     | 1 -
>  board/freescale/ls1088a/ls1088a.c                 | 2 +-
>  board/freescale/ls2080aqds/ddr.c                  | 1 -
>  board/freescale/ls2080aqds/ls2080aqds.c           | 2 +-
>  board/freescale/ls2080ardb/ddr.c                  | 1 -
>  board/freescale/ls2080ardb/ls2080ardb.c           | 2 +-
>  board/freescale/lx2160a/ddr.c                     | 1 -
>  board/freescale/lx2160a/eth_lx2160ardb.c          | 1 -
>  board/freescale/lx2160a/lx2160a.c                 | 2 +-
>  board/freescale/m5208evbe/m5208evbe.c             | 1 -
>  board/freescale/m5235evb/m5235evb.c               | 1 -
>  board/freescale/m5249evb/m5249evb.c               | 2 +-
>  board/freescale/m5253demo/flash.c                 | 3 ++-
>  board/freescale/m5253demo/m5253demo.c             | 2 +-
>  board/freescale/m5272c3/m5272c3.c                 | 2 +-
>  board/freescale/m5275evb/m5275evb.c               | 2 +-
>  board/freescale/m5282evb/m5282evb.c               | 2 +-
>  board/freescale/m53017evb/m53017evb.c             | 1 -
>  board/freescale/m5329evb/m5329evb.c               | 1 -
>  board/freescale/m5329evb/nand.c                   | 1 -
>  board/freescale/m5373evb/m5373evb.c               | 1 -
>  board/freescale/m5373evb/nand.c                   | 1 -
>  board/freescale/mpc837xerdb/mpc837xerdb.c         | 2 +-
>  board/freescale/mpc8548cds/ddr.c                  | 1 -
>  board/freescale/mpc8548cds/law.c                  | 2 +-
>  board/freescale/mpc8548cds/mpc8548cds.c           | 2 +-
>  board/freescale/mpc8548cds/tlb.c                  | 3 ++-
>  board/freescale/mx23evk/mx23evk.c                 | 1 -
>  board/freescale/mx23evk/spl_boot.c                | 1 -
>  board/freescale/mx28evk/iomux.c                   | 1 -
>  board/freescale/mx28evk/mx28evk.c                 | 1 -
>  board/freescale/mx51evk/mx51evk.c                 | 2 +-
>  board/freescale/mx53loco/mx53loco.c               | 2 +-
>  board/freescale/mx6memcal/mx6memcal.c             | 1 -
>  board/freescale/mx6memcal/spl.c                   | 1 -
>  board/freescale/mx6sabreauto/mx6sabreauto.c       | 1 -
>  board/freescale/mx6slevk/mx6slevk.c               | 1 -
>  board/freescale/mx6sllevk/mx6sllevk.c             | 1 -
>  board/freescale/mx6sxsabreauto/mx6sxsabreauto.c   | 2 +-
>  board/freescale/mx6sxsabresd/mx6sxsabresd.c       | 1 -
>  board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +-
>  board/freescale/mx6ullevk/mx6ullevk.c             | 2 +-
>  board/freescale/mx7dsabresd/mx7dsabresd.c         | 1 -
>  board/freescale/mx7ulp_evk/mx7ulp_evk.c           | 1 -
>  board/freescale/p1010rdb/ddr.c                    | 1 -
>  board/freescale/p1010rdb/law.c                    | 2 +-
>  board/freescale/p1010rdb/p1010rdb.c               | 2 +-
>  board/freescale/p1010rdb/spl.c                    | 2 +-
>  board/freescale/p1010rdb/spl_minimal.c            | 2 +-
>  board/freescale/p1010rdb/tlb.c                    | 3 ++-
>  board/freescale/p1_p2_rdb_pc/ddr.c                | 5 +++--
>  board/freescale/p1_p2_rdb_pc/law.c                | 2 +-
>  board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c       | 2 +-
>  board/freescale/p1_p2_rdb_pc/spl.c                | 2 +-
>  board/freescale/p1_p2_rdb_pc/spl_minimal.c        | 2 +-
>  board/freescale/p1_p2_rdb_pc/tlb.c                | 3 ++-
>  board/freescale/p2041rdb/cpld.c                   | 1 -
>  board/freescale/p2041rdb/ddr.c                    | 1 -
>  board/freescale/p2041rdb/eth.c                    | 2 +-
>  board/freescale/p2041rdb/p2041rdb.c               | 2 +-
>  board/freescale/t102xrdb/cpld.c                   | 2 +-
>  board/freescale/t102xrdb/ddr.c                    | 2 +-
>  board/freescale/t102xrdb/eth_t102xrdb.c           | 2 +-
>  board/freescale/t102xrdb/law.c                    | 2 +-
>  board/freescale/t102xrdb/spl.c                    | 2 +-
>  board/freescale/t102xrdb/t102xrdb.c               | 2 +-
>  board/freescale/t102xrdb/tlb.c                    | 3 ++-
>  board/freescale/t104xrdb/cpld.c                   | 2 +-
>  board/freescale/t104xrdb/ddr.c                    | 2 +-
>  board/freescale/t104xrdb/eth.c                    | 2 +-
>  board/freescale/t104xrdb/law.c                    | 2 +-
>  board/freescale/t104xrdb/spl.c                    | 2 +-
>  board/freescale/t104xrdb/t104xrdb.c               | 2 +-
>  board/freescale/t104xrdb/tlb.c                    | 3 ++-
>  board/freescale/t208xqds/ddr.c                    | 1 -
>  board/freescale/t208xqds/eth_t208xqds.c           | 2 +-
>  board/freescale/t208xqds/law.c                    | 2 +-
>  board/freescale/t208xqds/spl.c                    | 2 +-
>  board/freescale/t208xqds/t208xqds.c               | 2 +-
>  board/freescale/t208xqds/tlb.c                    | 3 ++-
>  board/freescale/t208xrdb/cpld.c                   | 3 ++-
>  board/freescale/t208xrdb/ddr.c                    | 1 -
>  board/freescale/t208xrdb/eth_t208xrdb.c           | 1 -
>  board/freescale/t208xrdb/law.c                    | 2 +-
>  board/freescale/t208xrdb/spl.c                    | 2 +-
>  board/freescale/t208xrdb/t208xrdb.c               | 2 +-
>  board/freescale/t208xrdb/tlb.c                    | 3 ++-
>  board/freescale/t4rdb/cpld.c                      | 2 +-
>  board/freescale/t4rdb/ddr.c                       | 1 -
>  board/freescale/t4rdb/eth.c                       | 2 +-
>  board/freescale/t4rdb/law.c                       | 2 +-
>  board/freescale/t4rdb/spl.c                       | 2 +-
>  board/freescale/t4rdb/t4240rdb.c                  | 2 +-
>  board/freescale/t4rdb/tlb.c                       | 3 ++-
>  board/freescale/vf610twr/vf610twr.c               | 1 -
>  166 files changed, 115 insertions(+), 166 deletions(-)
> 
> diff --git a/arch/arm/include/asm/arch-imx8m/ddr.h
> b/arch/arm/include/asm/arch-imx8m/ddr.h
> index c14855d177ec..1f81d91977c8 100644
> --- a/arch/arm/include/asm/arch-imx8m/ddr.h
> +++ b/arch/arm/include/asm/arch-imx8m/ddr.h
> @@ -8,7 +8,7 @@
> 
>  #include <asm/io.h>
>  #include <asm/types.h>
> -#include <asm/arch/ddr.h>
> +#include <asm/arch/imx-regs.h>
> 
>  #define DDRC_DDR_SS_GPR0		0x3d000000
>  #define DDRC_IPS_BASE_ADDR_0		0x3f400000
> diff --git a/arch/arm/include/asm/mach-imx/gpio.h
> b/arch/arm/include/asm/mach-imx/gpio.h
> index 1b7c9cd52499..25763526f5f6 100644
> --- a/arch/arm/include/asm/mach-imx/gpio.h
> +++ b/arch/arm/include/asm/mach-imx/gpio.h
> @@ -9,6 +9,8 @@
>  #define __ASM_ARCH_IMX_GPIO_H
> 
>  #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
> +#include <linux/types.h>
> +
>  /* GPIO registers */
>  struct gpio_regs {
>  	u32 gpio_dr;	/* data */
> diff --git a/board/freescale/common/cadmus.c
> b/board/freescale/common/cadmus.c
> index e7e07fff86c3..6f66ed6851d4 100644
> --- a/board/freescale/common/cadmus.c
> +++ b/board/freescale/common/cadmus.c
> @@ -4,8 +4,9 @@
>   */
> 
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
> +#include <linux/types.h>
> 
>  /*
>   * CADMUS Board System Registers
> diff --git a/board/freescale/common/cds_pci_ft.c
> b/board/freescale/common/cds_pci_ft.c
> index dc2d62850d19..56b01e3f51f0 100644
> --- a/board/freescale/common/cds_pci_ft.c
> +++ b/board/freescale/common/cds_pci_ft.c
> @@ -3,7 +3,6 @@
>   * Copyright 2004 Freescale Semiconductor.
>   */
> 
> -#include <common.h>
>  #include <linux/libfdt.h>
>  #include <fdt_support.h>
>  #include "cadmus.h"
> diff --git a/board/freescale/common/cds_via.c
> b/board/freescale/common/cds_via.c
> index 6184472b1658..6fc3a21780f6 100644
> --- a/board/freescale/common/cds_via.c
> +++ b/board/freescale/common/cds_via.c
> @@ -3,7 +3,6 @@
>   * Copyright 2006 Freescale Semiconductor.
>   */
> 
> -#include <common.h>
>  #include <pci.h>
> 
>  /* Config the VIA chip */
> diff --git a/board/freescale/common/cmd_esbc_validate.c
> b/board/freescale/common/cmd_esbc_validate.c
> index 6c096266b484..d4192e5ab521 100644
> --- a/board/freescale/common/cmd_esbc_validate.c
> +++ b/board/freescale/common/cmd_esbc_validate.c
> @@ -3,10 +3,10 @@
>   * Copyright 2015 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <env.h>
>  #include <fsl_validate.h>
> +#include <vsprintf.h>
> 
>  int do_esbc_halt(struct cmd_tbl *cmdtp, int flag, int argc,
>  		 char *const argv[])
> diff --git a/board/freescale/common/emc2305.c
> b/board/freescale/common/emc2305.c
> index 9a75c5a09dd1..50252bb5007f 100644
> --- a/board/freescale/common/emc2305.c
> +++ b/board/freescale/common/emc2305.c
> @@ -4,7 +4,6 @@
>   *
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <i2c.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/common/fman.c
> b/board/freescale/common/fman.c
> index 358303108d8d..650ecc7b4402 100644
> --- a/board/freescale/common/fman.c
> +++ b/board/freescale/common/fman.c
> @@ -3,7 +3,6 @@
>   * Copyright 2011-2015 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <linux/libfdt.h>
>  #include <linux/libfdt_env.h>
>  #include <fdt_support.h>
> diff --git a/board/freescale/common/fsl_chain_of_trust.c
> b/board/freescale/common/fsl_chain_of_trust.c
> index 87ed814d6a2a..27a33924c84d 100644
> --- a/board/freescale/common/fsl_chain_of_trust.c
> +++ b/board/freescale/common/fsl_chain_of_trust.c
> @@ -4,7 +4,7 @@
>   * Copyright 2022 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <env.h>
>  #include <init.h>
> diff --git a/board/freescale/common/fsl_validate.c
> b/board/freescale/common/fsl_validate.c
> index bfe6357b0d60..e03434dcdfed 100644
> --- a/board/freescale/common/fsl_validate.c
> +++ b/board/freescale/common/fsl_validate.c
> @@ -4,7 +4,7 @@
>   * Copyright 2021-2022 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <fsl_validate.h>
>  #include <fsl_secboot_err.h>
> diff --git a/board/freescale/common/i2c_common.c
> b/board/freescale/common/i2c_common.c
> index 119ed3c6171b..20705ecc8e46 100644
> --- a/board/freescale/common/i2c_common.c
> +++ b/board/freescale/common/i2c_common.c
> @@ -5,7 +5,7 @@
>   * Copyright 2021 Microsoft Corporation
>   */
> 
> -#include <common.h>
> +#include <stdio.h>
>  #include <i2c.h>
>  #include "i2c_common.h"
> 
> diff --git a/board/freescale/common/i2c_mux.c
> b/board/freescale/common/i2c_mux.c
> index d40b34f10397..89151ccaf060 100644
> --- a/board/freescale/common/i2c_mux.c
> +++ b/board/freescale/common/i2c_mux.c
> @@ -5,8 +5,9 @@
>   * Copyright 2021 Microsoft Corporation
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <i2c.h>
> +#include <stdio.h>
>  #include "i2c_common.h"
>  #include "i2c_mux.h"
> 
> diff --git a/board/freescale/common/ics307_clk.c
> b/board/freescale/common/ics307_clk.c
> index 5f95571d24cc..af30faa0c5fe 100644
> --- a/board/freescale/common/ics307_clk.c
> +++ b/board/freescale/common/ics307_clk.c
> @@ -3,7 +3,7 @@
>   * Copyright 2010-2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <log.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/common/ls102xa_stream_id.c
> b/board/freescale/common/ls102xa_stream_id.c
> index f754cf42fd38..bf76274c43ca 100644
> --- a/board/freescale/common/ls102xa_stream_id.c
> +++ b/board/freescale/common/ls102xa_stream_id.c
> @@ -3,7 +3,7 @@
>   * Copyright 2014 Freescale Semiconductor
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/io.h>
>  #include <asm/arch/ls102xa_stream_id.h>
> 
> diff --git a/board/freescale/common/mc34vr500.c
> b/board/freescale/common/mc34vr500.c
> index d6b4c65a3c08..cf14b29a3ec1 100644
> --- a/board/freescale/common/mc34vr500.c
> +++ b/board/freescale/common/mc34vr500.c
> @@ -4,7 +4,6 @@
>   * Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
>   */
> 
> -#include <common.h>
>  #include <errno.h>
>  #include <i2c.h>
>  #include <log.h>
> diff --git a/board/freescale/common/mmc.c
> b/board/freescale/common/mmc.c
> index 8cd5079f962d..00e4f3675fe4 100644
> --- a/board/freescale/common/mmc.c
> +++ b/board/freescale/common/mmc.c
> @@ -4,8 +4,8 @@
>   * Copyright 2018-2022 NXP
>   */
> 
> -#include <common.h>
>  #include <command.h>
> +#include <vsprintf.h>
>  #include <asm/arch/sys_proto.h>
>  #include <linux/errno.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/common/ngpixis.c
> b/board/freescale/common/ngpixis.c
> index 7be1ccee6383..74c345807e64 100644
> --- a/board/freescale/common/ngpixis.c
> +++ b/board/freescale/common/ngpixis.c
> @@ -29,7 +29,6 @@
>   *    boot from the alternate bank.
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <asm/io.h>
> 
> diff --git a/board/freescale/common/ns_access.c
> b/board/freescale/common/ns_access.c
> index a95d15c1ef39..c46e87f4ccee 100644
> --- a/board/freescale/common/ns_access.c
> +++ b/board/freescale/common/ns_access.c
> @@ -3,7 +3,7 @@
>   * Copyright 2014 Freescale Semiconductor
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <log.h>
>  #include <asm/cache.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/common/p_corenet/law.c
> b/board/freescale/common/p_corenet/law.c
> index 1a1e9343d23b..83818d6d8479 100644
> --- a/board/freescale/common/p_corenet/law.c
> +++ b/board/freescale/common/p_corenet/law.c
> @@ -6,7 +6,7 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/common/p_corenet/tlb.c
> b/board/freescale/common/p_corenet/tlb.c
> index 1a2d9cbfc0ce..cebdedfa4a7a 100644
> --- a/board/freescale/common/p_corenet/tlb.c
> +++ b/board/freescale/common/p_corenet/tlb.c
> @@ -6,8 +6,9 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/common/pfuze.c
> b/board/freescale/common/pfuze.c
> index a9288820b2eb..0d7a94fd232f 100644
> --- a/board/freescale/common/pfuze.c
> +++ b/board/freescale/common/pfuze.c
> @@ -3,7 +3,6 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <errno.h>
>  #include <power/pmic.h>
>  #include <power/pfuze100_pmic.h>
> diff --git a/board/freescale/common/qixis.c
> b/board/freescale/common/qixis.c
> index da2c1de078b7..6400ac052454 100644
> --- a/board/freescale/common/qixis.c
> +++ b/board/freescale/common/qixis.c
> @@ -7,7 +7,7 @@
>   * This file provides support for the QIXIS of some Freescale reference boards.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <asm/io.h>
>  #include <linux/compiler.h>
> diff --git a/board/freescale/common/sdhc_boot.c
> b/board/freescale/common/sdhc_boot.c
> index a1c7a94a90e3..5ee730cefd04 100644
> --- a/board/freescale/common/sdhc_boot.c
> +++ b/board/freescale/common/sdhc_boot.c
> @@ -3,7 +3,6 @@
>   * Copyright 2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <mmc.h>
>  #include <malloc.h>
> 
> diff --git a/board/freescale/common/sys_eeprom.c
> b/board/freescale/common/sys_eeprom.c
> index 64139d4659f2..ec3c9e37222a 100644
> --- a/board/freescale/common/sys_eeprom.c
> +++ b/board/freescale/common/sys_eeprom.c
> @@ -6,7 +6,6 @@
>   * Timur Tabi (timur@freescale.com)
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <env.h>
>  #include <i2c.h>
> diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c
> index fc5d400cfe18..84cb43fad56a 100644
> --- a/board/freescale/common/vid.c
> +++ b/board/freescale/common/vid.c
> @@ -5,12 +5,13 @@
>   * Copyright 2020 Stephen Carlson <stcarlso@linux.microsoft.com>
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <env.h>
>  #include <i2c.h>
>  #include <irq_func.h>
>  #include <log.h>
> +#include <vsprintf.h>
>  #include <asm/io.h>
>  #ifdef CONFIG_FSL_LSCH2
>  #include <asm/arch/immap_lsch2.h>
> diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c
> b/board/freescale/imx8mm_evk/imx8mm_evk.c
> index e0975fcda705..4c4436af3b1d 100644
> --- a/board/freescale/imx8mm_evk/imx8mm_evk.c
> +++ b/board/freescale/imx8mm_evk/imx8mm_evk.c
> @@ -3,7 +3,6 @@
>   * Copyright 2018 NXP
>   */
> 
> -#include <common.h>
>  #include <env.h>
>  #include <init.h>
>  #include <miiphy.h>
> diff --git a/board/freescale/imx8mm_evk/spl.c
> b/board/freescale/imx8mm_evk/spl.c
> index 35437811d9df..cd251d274ff6 100644
> --- a/board/freescale/imx8mm_evk/spl.c
> +++ b/board/freescale/imx8mm_evk/spl.c
> @@ -3,7 +3,6 @@
>   * Copyright 2019, 2021 NXP
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <cpu_func.h>
>  #include <hang.h>
> diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c
> b/board/freescale/imx8mn_evk/imx8mn_evk.c
> index e35d505aea97..6b6fb0a7dd21 100644
> --- a/board/freescale/imx8mn_evk/imx8mn_evk.c
> +++ b/board/freescale/imx8mn_evk/imx8mn_evk.c
> @@ -3,7 +3,6 @@
>   * Copyright 2019 NXP
>   */
> 
> -#include <common.h>
>  #include <env.h>
>  #include <init.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/imx8mn_evk/spl.c
> b/board/freescale/imx8mn_evk/spl.c
> index dd54fa9b6085..231b9289eead 100644
> --- a/board/freescale/imx8mn_evk/spl.c
> +++ b/board/freescale/imx8mn_evk/spl.c
> @@ -4,7 +4,6 @@
>   *
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <cpu_func.h>
>  #include <hang.h>
> diff --git a/board/freescale/imx8mp_evk/spl.c
> b/board/freescale/imx8mp_evk/spl.c
> index 9dd2cbc799c3..12da1b2abfbb 100644
> --- a/board/freescale/imx8mp_evk/spl.c
> +++ b/board/freescale/imx8mp_evk/spl.c
> @@ -4,7 +4,6 @@
>   *
>   */
> 
> -#include <common.h>
>  #include <hang.h>
>  #include <init.h>
>  #include <log.h>
> diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c
> b/board/freescale/imx8mq_evk/imx8mq_evk.c
> index e577e4d9ccaa..ab920a4539cd 100644
> --- a/board/freescale/imx8mq_evk/imx8mq_evk.c
> +++ b/board/freescale/imx8mq_evk/imx8mq_evk.c
> @@ -3,7 +3,6 @@
>   * Copyright 2018 NXP
>   */
> 
> -#include <common.h>
>  #include <env.h>
>  #include <init.h>
>  #include <malloc.h>
> diff --git a/board/freescale/imx8mq_evk/lpddr4_timing.c
> b/board/freescale/imx8mq_evk/lpddr4_timing.c
> index 46bc7f8591cb..e9559e3d843a 100644
> --- a/board/freescale/imx8mq_evk/lpddr4_timing.c
> +++ b/board/freescale/imx8mq_evk/lpddr4_timing.c
> @@ -4,7 +4,6 @@
>   */
> 
>  #include <linux/kernel.h>
> -#include <common.h>
>  #include <asm/arch/ddr.h>
>  #include <asm/arch/lpddr4_define.h>
> 
> diff --git a/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
> b/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
> index ec68edaf6905..5d8f2803be67 100644
> --- a/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
> +++ b/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
> @@ -4,7 +4,6 @@
>   */
> 
>  #include <linux/kernel.h>
> -#include <common.h>
>  #include <asm/arch/ddr.h>
>  #include <asm/arch/lpddr4_define.h>
> 
> diff --git a/board/freescale/imx8mq_evk/spl.c
> b/board/freescale/imx8mq_evk/spl.c
> index 818cdd615eb9..a346305c8633 100644
> --- a/board/freescale/imx8mq_evk/spl.c
> +++ b/board/freescale/imx8mq_evk/spl.c
> @@ -4,7 +4,7 @@
>   *
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <hang.h>
>  #include <image.h>
>  #include <init.h>
> diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c
> b/board/freescale/imx8qm_mek/imx8qm_mek.c
> index 2b209c8886f2..72527f774ca9 100644
> --- a/board/freescale/imx8qm_mek/imx8qm_mek.c
> +++ b/board/freescale/imx8qm_mek/imx8qm_mek.c
> @@ -3,7 +3,6 @@
>   * Copyright 2018 NXP
>   */
> 
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <env.h>
>  #include <errno.h>
> diff --git a/board/freescale/imx8qm_mek/spl.c
> b/board/freescale/imx8qm_mek/spl.c
> index 17fd437116d3..ad7868333091 100644
> --- a/board/freescale/imx8qm_mek/spl.c
> +++ b/board/freescale/imx8qm_mek/spl.c
> @@ -4,7 +4,6 @@
>   *
>   */
> 
> -#include <common.h>
>  #include <dm.h>
>  #include <image.h>
>  #include <init.h>
> diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
> b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
> index 833bee55462d..adb9556a021c 100644
> --- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
> +++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
> @@ -3,7 +3,6 @@
>   * Copyright 2018 NXP
>   */
> 
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <env.h>
>  #include <errno.h>
> diff --git a/board/freescale/imx8qxp_mek/spl.c
> b/board/freescale/imx8qxp_mek/spl.c
> index 462c43ceebc7..05e3c0a2ff26 100644
> --- a/board/freescale/imx8qxp_mek/spl.c
> +++ b/board/freescale/imx8qxp_mek/spl.c
> @@ -4,7 +4,6 @@
>   *
>   */
> 
> -#include <common.h>
>  #include <dm.h>
>  #include <image.h>
>  #include <init.h>
> diff --git a/board/freescale/imx8ulp_evk/imx8ulp_evk.c
> b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
> index dd04d5925a00..0af610672637 100644
> --- a/board/freescale/imx8ulp_evk/imx8ulp_evk.c
> +++ b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
> @@ -3,7 +3,6 @@
>   * Copyright 2020 NXP
>   */
> 
> -#include <common.h>
>  #include <miiphy.h>
>  #include <netdev.h>
>  #include <asm/arch/imx8ulp-pins.h>
> diff --git a/board/freescale/imx8ulp_evk/spl.c
> b/board/freescale/imx8ulp_evk/spl.c
> index c49b5be47620..d123b21b7225 100644
> --- a/board/freescale/imx8ulp_evk/spl.c
> +++ b/board/freescale/imx8ulp_evk/spl.c
> @@ -3,7 +3,6 @@
>   * Copyright 2021 NXP
>   */
> 
> -#include <common.h>
>  #include <init.h>
>  #include <spl.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/imx93_evk/imx93_evk.c
> b/board/freescale/imx93_evk/imx93_evk.c
> index c54dc9d05c5c..341831a7d30d 100644
> --- a/board/freescale/imx93_evk/imx93_evk.c
> +++ b/board/freescale/imx93_evk/imx93_evk.c
> @@ -3,7 +3,6 @@
>   * Copyright 2022 NXP
>   */
> 
> -#include <common.h>
>  #include <env.h>
>  #include <init.h>
>  #include <miiphy.h>
> diff --git a/board/freescale/imx93_evk/spl.c
> b/board/freescale/imx93_evk/spl.c
> index 6d5e110b2776..e5807134bb23 100644
> --- a/board/freescale/imx93_evk/spl.c
> +++ b/board/freescale/imx93_evk/spl.c
> @@ -3,7 +3,6 @@
>   * Copyright 2022 NXP
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <cpu_func.h>
>  #include <hang.h>
> diff --git a/board/freescale/imxrt1020-evk/imxrt1020-evk.c
> b/board/freescale/imxrt1020-evk/imxrt1020-evk.c
> index 785da604b964..42a0a67ae933 100644
> --- a/board/freescale/imxrt1020-evk/imxrt1020-evk.c
> +++ b/board/freescale/imxrt1020-evk/imxrt1020-evk.c
> @@ -4,7 +4,6 @@
>   * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
>   */
> 
> -#include <common.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <log.h>
> diff --git a/board/freescale/imxrt1050-evk/imxrt1050-evk.c
> b/board/freescale/imxrt1050-evk/imxrt1050-evk.c
> index 4cc3defc8828..46a644908e9d 100644
> --- a/board/freescale/imxrt1050-evk/imxrt1050-evk.c
> +++ b/board/freescale/imxrt1050-evk/imxrt1050-evk.c
> @@ -4,7 +4,6 @@
>   * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
>   */
> 
> -#include <common.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <log.h>
> diff --git a/board/freescale/imxrt1170-evk/imxrt1170-evk.c
> b/board/freescale/imxrt1170-evk/imxrt1170-evk.c
> index 4b82ee5e9ce4..e10b8830ec6a 100644
> --- a/board/freescale/imxrt1170-evk/imxrt1170-evk.c
> +++ b/board/freescale/imxrt1170-evk/imxrt1170-evk.c
> @@ -4,7 +4,6 @@
>   * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
>   */
> 
> -#include <common.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <log.h>
> diff --git a/board/freescale/ls1012afrdm/eth.c
> b/board/freescale/ls1012afrdm/eth.c
> index d2df9351eacc..c431e5e611bb 100644
> --- a/board/freescale/ls1012afrdm/eth.c
> +++ b/board/freescale/ls1012afrdm/eth.c
> @@ -4,7 +4,6 @@
>   * Copyright 2017 NXP
>   */
> 
> -#include <common.h>
>  #include <dm.h>
>  #include <net.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c
> b/board/freescale/ls1012afrdm/ls1012afrdm.c
> index 271072bf7a1c..dae2cf097bc0 100644
> --- a/board/freescale/ls1012afrdm/ls1012afrdm.c
> +++ b/board/freescale/ls1012afrdm/ls1012afrdm.c
> @@ -3,7 +3,7 @@
>   * Copyright 2017-2018, 2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <fdt_support.h>
>  #include <i2c.h>
>  #include <asm/cache.h>
> diff --git a/board/freescale/ls1012aqds/eth.c
> b/board/freescale/ls1012aqds/eth.c
> index 38267acedde1..d5e87c5393b8 100644
> --- a/board/freescale/ls1012aqds/eth.c
> +++ b/board/freescale/ls1012aqds/eth.c
> @@ -4,7 +4,7 @@
>   * Copyright 2017 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <asm/io.h>
>  #include <netdev.h>
> diff --git a/board/freescale/ls1012aqds/ls1012aqds.c
> b/board/freescale/ls1012aqds/ls1012aqds.c
> index a5ea8d634edc..7d56eb0117d4 100644
> --- a/board/freescale/ls1012aqds/ls1012aqds.c
> +++ b/board/freescale/ls1012aqds/ls1012aqds.c
> @@ -4,7 +4,7 @@
>   * Copyright 2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <i2c.h>
>  #include <fdt_support.h>
>  #include <asm/cache.h>
> diff --git a/board/freescale/ls1012ardb/eth.c
> b/board/freescale/ls1012ardb/eth.c
> index 5c661274987c..71cb2988a56d 100644
> --- a/board/freescale/ls1012ardb/eth.c
> +++ b/board/freescale/ls1012ardb/eth.c
> @@ -4,7 +4,7 @@
>   * Copyright 2017 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <net.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/ls1012ardb/ls1012ardb.c
> b/board/freescale/ls1012ardb/ls1012ardb.c
> index 18f92089caef..7f8001b4981f 100644
> --- a/board/freescale/ls1012ardb/ls1012ardb.c
> +++ b/board/freescale/ls1012ardb/ls1012ardb.c
> @@ -4,7 +4,7 @@
>   * Copyright 2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <fdt_support.h>
>  #include <hang.h>
> diff --git a/board/freescale/ls1021aiot/ls1021aiot.c
> b/board/freescale/ls1021aiot/ls1021aiot.c
> index d6f22bd6a2a3..7abc41269330 100644
> --- a/board/freescale/ls1021aiot/ls1021aiot.c
> +++ b/board/freescale/ls1021aiot/ls1021aiot.c
> @@ -4,7 +4,7 @@
>   * Copyright 2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <fdt_support.h>
>  #include <init.h>
> diff --git a/board/freescale/ls1021aqds/ddr.c
> b/board/freescale/ls1021aqds/ddr.c
> index 4e70acc5a0cc..5b0f23688f0b 100644
> --- a/board/freescale/ls1021aqds/ddr.c
> +++ b/board/freescale/ls1021aqds/ddr.c
> @@ -3,7 +3,7 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <init.h>
> diff --git a/board/freescale/ls1028a/ddr.c b/board/freescale/ls1028a/ddr.c
> index 3e976da6b305..c406f2436d1a 100644
> --- a/board/freescale/ls1028a/ddr.c
> +++ b/board/freescale/ls1028a/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2019 NXP
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/ls1028a/ls1028a.c
> b/board/freescale/ls1028a/ls1028a.c
> index 7f181ab3dfb7..e01b5a8c2eb0 100644
> --- a/board/freescale/ls1028a/ls1028a.c
> +++ b/board/freescale/ls1028a/ls1028a.c
> @@ -3,7 +3,7 @@
>   * Copyright 2019-2022 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <display_options.h>
>  #include <init.h>
>  #include <malloc.h>
> diff --git a/board/freescale/ls1043aqds/ddr.c
> b/board/freescale/ls1043aqds/ddr.c
> index 23947bdb84c9..2a9717df616c 100644
> --- a/board/freescale/ls1043aqds/ddr.c
> +++ b/board/freescale/ls1043aqds/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2015 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #ifdef CONFIG_FSL_DEEP_SLEEP
> diff --git a/board/freescale/ls1043aqds/eth.c
> b/board/freescale/ls1043aqds/eth.c
> index cd1f83e3d068..5a8ca27b3278 100644
> --- a/board/freescale/ls1043aqds/eth.c
> +++ b/board/freescale/ls1043aqds/eth.c
> @@ -4,7 +4,7 @@
>   * Copyright 2019 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <log.h>
>  #include <net.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/ls1043aqds/ls1043aqds.c
> b/board/freescale/ls1043aqds/ls1043aqds.c
> index b87da41e4083..fdf011efc5bd 100644
> --- a/board/freescale/ls1043aqds/ls1043aqds.c
> +++ b/board/freescale/ls1043aqds/ls1043aqds.c
> @@ -4,7 +4,7 @@
>   * Copyright 2019-2020 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <i2c.h>
>  #include <fdt_support.h>
> diff --git a/board/freescale/ls1043ardb/cpld.c
> b/board/freescale/ls1043ardb/cpld.c
> index 9db3aa586059..bda2f3ac3a69 100644
> --- a/board/freescale/ls1043ardb/cpld.c
> +++ b/board/freescale/ls1043ardb/cpld.c
> @@ -5,7 +5,7 @@
>   * Freescale LS1043ARDB board-specific CPLD controlling supports.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <asm/io.h>
>  #include "cpld.h"
> diff --git a/board/freescale/ls1043ardb/ddr.c
> b/board/freescale/ls1043ardb/ddr.c
> index 4d2fce384121..187925e981a5 100644
> --- a/board/freescale/ls1043ardb/ddr.c
> +++ b/board/freescale/ls1043ardb/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2015 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/ls1043ardb/eth.c
> b/board/freescale/ls1043ardb/eth.c
> index cc95214c4e3f..cacc49c0584d 100644
> --- a/board/freescale/ls1043ardb/eth.c
> +++ b/board/freescale/ls1043ardb/eth.c
> @@ -2,7 +2,7 @@
>  /*
>   * Copyright 2015 Freescale Semiconductor, Inc.
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <net.h>
>  #include <asm/io.h>
>  #include <netdev.h>
> diff --git a/board/freescale/ls1046afrwy/ddr.c
> b/board/freescale/ls1046afrwy/ddr.c
> index 256397b52b65..b08caee1d97d 100644
> --- a/board/freescale/ls1046afrwy/ddr.c
> +++ b/board/freescale/ls1046afrwy/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2019 NXP
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <asm/global_data.h>
> 
> diff --git a/board/freescale/ls1046afrwy/eth.c
> b/board/freescale/ls1046afrwy/eth.c
> index d1a2bfe18855..8efc7f68424c 100644
> --- a/board/freescale/ls1046afrwy/eth.c
> +++ b/board/freescale/ls1046afrwy/eth.c
> @@ -2,7 +2,7 @@
>  /*
>   * Copyright 2019 NXP
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <fdt_support.h>
>  #include <net.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/ls1046afrwy/ls1046afrwy.c
> b/board/freescale/ls1046afrwy/ls1046afrwy.c
> index 899c22a367e6..8889c24f1f0c 100644
> --- a/board/freescale/ls1046afrwy/ls1046afrwy.c
> +++ b/board/freescale/ls1046afrwy/ls1046afrwy.c
> @@ -3,7 +3,7 @@
>   * Copyright 2019, 2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <i2c.h>
>  #include <fdt_support.h>
>  #include <init.h>
> diff --git a/board/freescale/ls1046aqds/ddr.c
> b/board/freescale/ls1046aqds/ddr.c
> index 9a96de271786..ac1b60497216 100644
> --- a/board/freescale/ls1046aqds/ddr.c
> +++ b/board/freescale/ls1046aqds/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2016 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #ifdef CONFIG_FSL_DEEP_SLEEP
> diff --git a/board/freescale/ls1046aqds/eth.c
> b/board/freescale/ls1046aqds/eth.c
> index bbf8b8c2bee5..cd3500c2e960 100644
> --- a/board/freescale/ls1046aqds/eth.c
> +++ b/board/freescale/ls1046aqds/eth.c
> @@ -4,7 +4,7 @@
>   * Copyright 2018-2020 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <log.h>
>  #include <net.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/ls1046aqds/ls1046aqds.c
> b/board/freescale/ls1046aqds/ls1046aqds.c
> index 2faac54a0e23..a83b21706519 100644
> --- a/board/freescale/ls1046aqds/ls1046aqds.c
> +++ b/board/freescale/ls1046aqds/ls1046aqds.c
> @@ -4,7 +4,7 @@
>   * Copyright 2019-2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <i2c.h>
>  #include <fdt_support.h>
> diff --git a/board/freescale/ls1046ardb/cpld.c
> b/board/freescale/ls1046ardb/cpld.c
> index ee19d4ff8aab..7f8ca2e857fd 100644
> --- a/board/freescale/ls1046ardb/cpld.c
> +++ b/board/freescale/ls1046ardb/cpld.c
> @@ -5,7 +5,7 @@
>   * Freescale LS1046ARDB board-specific CPLD controlling supports.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <asm/io.h>
>  #include "cpld.h"
> diff --git a/board/freescale/ls1046ardb/ddr.c
> b/board/freescale/ls1046ardb/ddr.c
> index befb556bd30b..68353022e7dd 100644
> --- a/board/freescale/ls1046ardb/ddr.c
> +++ b/board/freescale/ls1046ardb/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2016 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/ls1046ardb/eth.c
> b/board/freescale/ls1046ardb/eth.c
> index bbc22a3cdf4a..fee8e0e21d44 100644
> --- a/board/freescale/ls1046ardb/eth.c
> +++ b/board/freescale/ls1046ardb/eth.c
> @@ -2,7 +2,7 @@
>  /*
>   * Copyright 2016 Freescale Semiconductor, Inc.
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <fdt_support.h>
>  #include <net.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/ls1046ardb/ls1046ardb.c
> b/board/freescale/ls1046ardb/ls1046ardb.c
> index 26e69db55f74..0492f0a8c0ae 100644
> --- a/board/freescale/ls1046ardb/ls1046ardb.c
> +++ b/board/freescale/ls1046ardb/ls1046ardb.c
> @@ -4,7 +4,7 @@
>   * Copyright 2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <i2c.h>
>  #include <fdt_support.h>
>  #include <init.h>
> diff --git a/board/freescale/ls1088a/ddr.c b/board/freescale/ls1088a/ddr.c
> index 9e0941cc9d6e..d2e239c4d615 100644
> --- a/board/freescale/ls1088a/ddr.c
> +++ b/board/freescale/ls1088a/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2017 NXP
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <log.h>
> diff --git a/board/freescale/ls1088a/ls1088a.c
> b/board/freescale/ls1088a/ls1088a.c
> index 98a91c48adb0..58951f2bb2aa 100644
> --- a/board/freescale/ls1088a/ls1088a.c
> +++ b/board/freescale/ls1088a/ls1088a.c
> @@ -2,7 +2,7 @@
>  /*
>   * Copyright 2017-2022 NXP
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <display_options.h>
>  #include <env.h>
> diff --git a/board/freescale/ls2080aqds/ddr.c
> b/board/freescale/ls2080aqds/ddr.c
> index 2767d058cc96..2986ffb7a820 100644
> --- a/board/freescale/ls2080aqds/ddr.c
> +++ b/board/freescale/ls2080aqds/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2015 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <log.h>
> diff --git a/board/freescale/ls2080aqds/ls2080aqds.c
> b/board/freescale/ls2080aqds/ls2080aqds.c
> index 5c94c83121b5..4c8d0706688f 100644
> --- a/board/freescale/ls2080aqds/ls2080aqds.c
> +++ b/board/freescale/ls2080aqds/ls2080aqds.c
> @@ -3,7 +3,7 @@
>   * Copyright 2015 Freescale Semiconductor
>   * Copyright 2021 NXP
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <display_options.h>
>  #include <env.h>
> diff --git a/board/freescale/ls2080ardb/ddr.c
> b/board/freescale/ls2080ardb/ddr.c
> index 07fa84733324..ec34b42e619a 100644
> --- a/board/freescale/ls2080ardb/ddr.c
> +++ b/board/freescale/ls2080ardb/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2015 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <log.h>
> diff --git a/board/freescale/ls2080ardb/ls2080ardb.c
> b/board/freescale/ls2080ardb/ls2080ardb.c
> index 5c30de83d841..6f824f57c478 100644
> --- a/board/freescale/ls2080ardb/ls2080ardb.c
> +++ b/board/freescale/ls2080ardb/ls2080ardb.c
> @@ -3,7 +3,7 @@
>   * Copyright 2015 Freescale Semiconductor
>   * Copyright 2017, 2021 NXP
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <display_options.h>
>  #include <env.h>
> diff --git a/board/freescale/lx2160a/ddr.c b/board/freescale/lx2160a/ddr.c
> index 7ab7a9e6ca83..637e43a22bee 100644
> --- a/board/freescale/lx2160a/ddr.c
> +++ b/board/freescale/lx2160a/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2018 NXP
>   */
> 
> -#include <common.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/lx2160a/eth_lx2160ardb.c
> b/board/freescale/lx2160a/eth_lx2160ardb.c
> index c5dfefe1f342..90e7c9100e12 100644
> --- a/board/freescale/lx2160a/eth_lx2160ardb.c
> +++ b/board/freescale/lx2160a/eth_lx2160ardb.c
> @@ -4,7 +4,6 @@
>   *
>   */
> 
> -#include <common.h>
>  #include <netdev.h>
>  #include <exports.h>
>  #include <fsl-mc/fsl_mc.h>
> diff --git a/board/freescale/lx2160a/lx2160a.c
> b/board/freescale/lx2160a/lx2160a.c
> index b3187a14214a..3aa984dab8e7 100644
> --- a/board/freescale/lx2160a/lx2160a.c
> +++ b/board/freescale/lx2160a/lx2160a.c
> @@ -3,7 +3,7 @@
>   * Copyright 2018-2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <display_options.h>
>  #include <dm.h>
> diff --git a/board/freescale/m5208evbe/m5208evbe.c
> b/board/freescale/m5208evbe/m5208evbe.c
> index 6125c9e13aa3..b202b8094d92 100644
> --- a/board/freescale/m5208evbe/m5208evbe.c
> +++ b/board/freescale/m5208evbe/m5208evbe.c
> @@ -8,7 +8,6 @@
>   */
> 
>  #include <config.h>
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/immap.h>
> diff --git a/board/freescale/m5235evb/m5235evb.c
> b/board/freescale/m5235evb/m5235evb.c
> index 44161a0b0a1c..65cde56fb2d7 100644
> --- a/board/freescale/m5235evb/m5235evb.c
> +++ b/board/freescale/m5235evb/m5235evb.c
> @@ -8,7 +8,6 @@
>   */
> 
>  #include <config.h>
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/immap.h>
> diff --git a/board/freescale/m5249evb/m5249evb.c
> b/board/freescale/m5249evb/m5249evb.c
> index d67db24d5883..717dc087e02b 100644
> --- a/board/freescale/m5249evb/m5249evb.c
> +++ b/board/freescale/m5249evb/m5249evb.c
> @@ -4,7 +4,7 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <init.h>
>  #include <malloc.h>
> diff --git a/board/freescale/m5253demo/flash.c
> b/board/freescale/m5253demo/flash.c
> index eeb9cfd31259..334518a4bc9d 100644
> --- a/board/freescale/m5253demo/flash.c
> +++ b/board/freescale/m5253demo/flash.c
> @@ -7,10 +7,11 @@
>   * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <flash.h>
>  #include <init.h>
>  #include <irq_func.h>
> +#include <time.h>
> 
>  #include <asm/immap.h>
> 
> diff --git a/board/freescale/m5253demo/m5253demo.c
> b/board/freescale/m5253demo/m5253demo.c
> index c1cff52fb3db..d0b01f81745f 100644
> --- a/board/freescale/m5253demo/m5253demo.c
> +++ b/board/freescale/m5253demo/m5253demo.c
> @@ -7,7 +7,7 @@
>   * Hayden Fraser (Hayden.Fraser@freescale.com)
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <init.h>
>  #include <net.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/m5272c3/m5272c3.c
> b/board/freescale/m5272c3/m5272c3.c
> index 3c20a23385c5..d1286badc61c 100644
> --- a/board/freescale/m5272c3/m5272c3.c
> +++ b/board/freescale/m5272c3/m5272c3.c
> @@ -6,7 +6,7 @@
>   * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/immap.h>
> diff --git a/board/freescale/m5275evb/m5275evb.c
> b/board/freescale/m5275evb/m5275evb.c
> index 00fa35ca5f71..e1d94fc9a3e2 100644
> --- a/board/freescale/m5275evb/m5275evb.c
> +++ b/board/freescale/m5275evb/m5275evb.c
> @@ -8,7 +8,7 @@
>   * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/immap.h>
> diff --git a/board/freescale/m5282evb/m5282evb.c
> b/board/freescale/m5282evb/m5282evb.c
> index 53e0f202101c..81da6e2abd46 100644
> --- a/board/freescale/m5282evb/m5282evb.c
> +++ b/board/freescale/m5282evb/m5282evb.c
> @@ -4,7 +4,7 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/immap.h>
> diff --git a/board/freescale/m53017evb/m53017evb.c
> b/board/freescale/m53017evb/m53017evb.c
> index 76ebc0ab8dcd..196d56dc17d3 100644
> --- a/board/freescale/m53017evb/m53017evb.c
> +++ b/board/freescale/m53017evb/m53017evb.c
> @@ -8,7 +8,6 @@
>   */
> 
>  #include <config.h>
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/immap.h>
> diff --git a/board/freescale/m5329evb/m5329evb.c
> b/board/freescale/m5329evb/m5329evb.c
> index b278dbfb4852..26d5f3bf58ce 100644
> --- a/board/freescale/m5329evb/m5329evb.c
> +++ b/board/freescale/m5329evb/m5329evb.c
> @@ -8,7 +8,6 @@
>   */
> 
>  #include <config.h>
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/immap.h>
> diff --git a/board/freescale/m5329evb/nand.c
> b/board/freescale/m5329evb/nand.c
> index d921eef8b675..a250d61ef368 100644
> --- a/board/freescale/m5329evb/nand.c
> +++ b/board/freescale/m5329evb/nand.c
> @@ -8,7 +8,6 @@
>   */
> 
>  #include <config.h>
> -#include <common.h>
>  #include <asm/io.h>
>  #include <asm/immap.h>
> 
> diff --git a/board/freescale/m5373evb/m5373evb.c
> b/board/freescale/m5373evb/m5373evb.c
> index 0e9eec316c2f..d6fdf41bab47 100644
> --- a/board/freescale/m5373evb/m5373evb.c
> +++ b/board/freescale/m5373evb/m5373evb.c
> @@ -8,7 +8,6 @@
>   */
> 
>  #include <config.h>
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/immap.h>
> diff --git a/board/freescale/m5373evb/nand.c
> b/board/freescale/m5373evb/nand.c
> index 6d825a66e33f..e7c08d22e6bb 100644
> --- a/board/freescale/m5373evb/nand.c
> +++ b/board/freescale/m5373evb/nand.c
> @@ -8,7 +8,6 @@
>   */
> 
>  #include <config.h>
> -#include <common.h>
>  #include <asm/io.h>
>  #include <asm/immap.h>
> 
> diff --git a/board/freescale/mpc837xerdb/mpc837xerdb.c
> b/board/freescale/mpc837xerdb/mpc837xerdb.c
> index 97884a397964..55299745a3cb 100644
> --- a/board/freescale/mpc837xerdb/mpc837xerdb.c
> +++ b/board/freescale/mpc837xerdb/mpc837xerdb.c
> @@ -5,7 +5,7 @@
>   * Joe D'Abbraccio <joe.d'abbraccio@freescale.com>
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <env.h>
>  #include <hwconfig.h>
>  #include <i2c.h>
> diff --git a/board/freescale/mpc8548cds/ddr.c
> b/board/freescale/mpc8548cds/ddr.c
> index b6c1847b141b..14202cd5a788 100644
> --- a/board/freescale/mpc8548cds/ddr.c
> +++ b/board/freescale/mpc8548cds/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2008 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> 
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
> diff --git a/board/freescale/mpc8548cds/law.c
> b/board/freescale/mpc8548cds/law.c
> index 7b6ef5b11c92..2334870fda08 100644
> --- a/board/freescale/mpc8548cds/law.c
> +++ b/board/freescale/mpc8548cds/law.c
> @@ -6,7 +6,7 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/mpc8548cds/mpc8548cds.c
> b/board/freescale/mpc8548cds/mpc8548cds.c
> index ec6e3a2d0ab5..7810010fd042 100644
> --- a/board/freescale/mpc8548cds/mpc8548cds.c
> +++ b/board/freescale/mpc8548cds/mpc8548cds.c
> @@ -5,7 +5,7 @@
>   * (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <display_options.h>
>  #include <init.h>
>  #include <net.h>
> diff --git a/board/freescale/mpc8548cds/tlb.c
> b/board/freescale/mpc8548cds/tlb.c
> index 994a32dd92ad..0b2afa8054d8 100644
> --- a/board/freescale/mpc8548cds/tlb.c
> +++ b/board/freescale/mpc8548cds/tlb.c
> @@ -6,8 +6,9 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/mx23evk/mx23evk.c
> b/board/freescale/mx23evk/mx23evk.c
> index df4fb3912558..fbc8fbdbf593 100644
> --- a/board/freescale/mx23evk/mx23evk.c
> +++ b/board/freescale/mx23evk/mx23evk.c
> @@ -11,7 +11,6 @@
>   * on behalf of DENX Software Engineering GmbH
>   */
> 
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/gpio.h>
> diff --git a/board/freescale/mx23evk/spl_boot.c
> b/board/freescale/mx23evk/spl_boot.c
> index 14e9b4a8634f..a4c39a352219 100644
> --- a/board/freescale/mx23evk/spl_boot.c
> +++ b/board/freescale/mx23evk/spl_boot.c
> @@ -6,7 +6,6 @@
>   * on behalf of DENX Software Engineering GmbH
>   */
> 
> -#include <common.h>
>  #include <config.h>
>  #include <asm/io.h>
>  #include <asm/arch/iomux-mx23.h>
> diff --git a/board/freescale/mx28evk/iomux.c
> b/board/freescale/mx28evk/iomux.c
> index cc0c85885446..b84b045bd1f5 100644
> --- a/board/freescale/mx28evk/iomux.c
> +++ b/board/freescale/mx28evk/iomux.c
> @@ -6,7 +6,6 @@
>   * on behalf of DENX Software Engineering GmbH
>   */
> 
> -#include <common.h>
>  #include <config.h>
>  #include <asm/io.h>
>  #include <asm/arch/iomux-mx28.h>
> diff --git a/board/freescale/mx28evk/mx28evk.c
> b/board/freescale/mx28evk/mx28evk.c
> index 88c3bf36089c..ada572912dad 100644
> --- a/board/freescale/mx28evk/mx28evk.c
> +++ b/board/freescale/mx28evk/mx28evk.c
> @@ -11,7 +11,6 @@
>   * on behalf of DENX Software Engineering GmbH
>   */
> 
> -#include <common.h>
>  #include <init.h>
>  #include <net.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/mx51evk/mx51evk.c
> b/board/freescale/mx51evk/mx51evk.c
> index 95edb3599443..694568423026 100644
> --- a/board/freescale/mx51evk/mx51evk.c
> +++ b/board/freescale/mx51evk/mx51evk.c
> @@ -3,7 +3,7 @@
>   * (C) Copyright 2009 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/mx53loco/mx53loco.c
> b/board/freescale/mx53loco/mx53loco.c
> index d418cd8f4c0d..2d8f5da9906f 100644
> --- a/board/freescale/mx53loco/mx53loco.c
> +++ b/board/freescale/mx53loco/mx53loco.c
> @@ -4,7 +4,7 @@
>   * Jason Liu <r64343@freescale.com>
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <init.h>
>  #include <log.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/mx6memcal/mx6memcal.c
> b/board/freescale/mx6memcal/mx6memcal.c
> index 0dfd7dec9efb..17095c34e926 100644
> --- a/board/freescale/mx6memcal/mx6memcal.c
> +++ b/board/freescale/mx6memcal/mx6memcal.c
> @@ -7,7 +7,6 @@
>   * Author: Eric Nelson <eric@nelint.com>
>   */
> 
> -#include <common.h>
>  #include <init.h>
>  #include <asm/arch/sys_proto.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/mx6memcal/spl.c
> b/board/freescale/mx6memcal/spl.c
> index 61d0ca3408f0..bc9c4259f07b 100644
> --- a/board/freescale/mx6memcal/spl.c
> +++ b/board/freescale/mx6memcal/spl.c
> @@ -4,7 +4,6 @@
>   * Author: Eric Nelson <eric@nelint.com>
>   */
> 
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <init.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c
> b/board/freescale/mx6sabreauto/mx6sabreauto.c
> index 77e92006131a..e782543c0fae 100644
> --- a/board/freescale/mx6sabreauto/mx6sabreauto.c
> +++ b/board/freescale/mx6sabreauto/mx6sabreauto.c
> @@ -5,7 +5,6 @@
>   * Author: Fabio Estevam <fabio.estevam@freescale.com>
>   */
> 
> -#include <common.h>
>  #include <image.h>
>  #include <init.h>
>  #include <net.h>
> diff --git a/board/freescale/mx6slevk/mx6slevk.c
> b/board/freescale/mx6slevk/mx6slevk.c
> index e9ac57118b01..d37d8a4136f6 100644
> --- a/board/freescale/mx6slevk/mx6slevk.c
> +++ b/board/freescale/mx6slevk/mx6slevk.c
> @@ -21,7 +21,6 @@
>  #include <asm/io.h>
>  #include <asm/sections.h>
>  #include <linux/sizes.h>
> -#include <common.h>
>  #include <fsl_esdhc_imx.h>
>  #include <i2c.h>
>  #include <mmc.h>
> diff --git a/board/freescale/mx6sllevk/mx6sllevk.c
> b/board/freescale/mx6sllevk/mx6sllevk.c
> index 10a00095affb..7114444fc3e6 100644
> --- a/board/freescale/mx6sllevk/mx6sllevk.c
> +++ b/board/freescale/mx6sllevk/mx6sllevk.c
> @@ -15,7 +15,6 @@
>  #include <asm/mach-imx/iomux-v3.h>
>  #include <asm/mach-imx/boot_mode.h>
>  #include <asm/io.h>
> -#include <common.h>
>  #include <linux/sizes.h>
>  #include <mmc.h>
>  #include <power/pmic.h>
> diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
> b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
> index 84cc51e9cac7..6176f7382389 100644
> --- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
> +++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
> @@ -20,7 +20,7 @@
>  #include <asm/io.h>
>  #include <linux/delay.h>
>  #include <linux/sizes.h>
> -#include <common.h>
> +#include <config.h>
>  #include <fsl_esdhc_imx.h>
>  #include <miiphy.h>
>  #include <netdev.h>
> diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c
> b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
> index e7958df40243..e3353feec688 100644
> --- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c
> +++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
> @@ -21,7 +21,6 @@
>  #include <env.h>
>  #include <linux/delay.h>
>  #include <linux/sizes.h>
> -#include <common.h>
>  #include <fsl_esdhc_imx.h>
>  #include <mmc.h>
>  #include <i2c.h>
> diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> index 534b16cec7ae..6b0665a1067f 100644
> --- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> +++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> @@ -19,7 +19,7 @@
>  #include <asm/mach-imx/mxc_i2c.h>
>  #include <asm/io.h>
>  #include <asm/sections.h>
> -#include <common.h>
> +#include <config.h>
>  #include <env.h>
>  #include <fsl_esdhc_imx.h>
>  #include <i2c.h>
> diff --git a/board/freescale/mx6ullevk/mx6ullevk.c
> b/board/freescale/mx6ullevk/mx6ullevk.c
> index de45f8b1d24b..189eddefea3f 100644
> --- a/board/freescale/mx6ullevk/mx6ullevk.c
> +++ b/board/freescale/mx6ullevk/mx6ullevk.c
> @@ -15,7 +15,7 @@
>  #include <asm/mach-imx/iomux-v3.h>
>  #include <asm/mach-imx/boot_mode.h>
>  #include <asm/io.h>
> -#include <common.h>
> +#include <config.h>
>  #include <env.h>
>  #include <fsl_esdhc_imx.h>
>  #include <linux/sizes.h>
> diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c
> b/board/freescale/mx7dsabresd/mx7dsabresd.c
> index 4fe23b51cd1b..3db167c0dad3 100644
> --- a/board/freescale/mx7dsabresd/mx7dsabresd.c
> +++ b/board/freescale/mx7dsabresd/mx7dsabresd.c
> @@ -15,7 +15,6 @@
>  #include <asm/io.h>
>  #include <linux/delay.h>
>  #include <linux/sizes.h>
> -#include <common.h>
>  #include <fsl_esdhc_imx.h>
>  #include <mmc.h>
>  #include <miiphy.h>
> diff --git a/board/freescale/mx7ulp_evk/mx7ulp_evk.c
> b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
> index 01e32136532d..af68e57854e2 100644
> --- a/board/freescale/mx7ulp_evk/mx7ulp_evk.c
> +++ b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
> @@ -3,7 +3,6 @@
>   * Copyright (C) 2016 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <fdt_support.h>
>  #include <init.h>
>  #include <asm/global_data.h>
> diff --git a/board/freescale/p1010rdb/ddr.c
> b/board/freescale/p1010rdb/ddr.c
> index b423ec8e218a..43a0936bc9af 100644
> --- a/board/freescale/p1010rdb/ddr.c
> +++ b/board/freescale/p1010rdb/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2010-2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <vsprintf.h>
>  #include <asm/global_data.h>
>  #include <asm/mmu.h>
> diff --git a/board/freescale/p1010rdb/law.c
> b/board/freescale/p1010rdb/law.c
> index 13fc2fa2e38c..a7d80f285211 100644
> --- a/board/freescale/p1010rdb/law.c
> +++ b/board/freescale/p1010rdb/law.c
> @@ -3,7 +3,7 @@
>   * Copyright 2010-2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/p1010rdb/p1010rdb.c
> b/board/freescale/p1010rdb/p1010rdb.c
> index d32274b24812..ab0031440ae8 100644
> --- a/board/freescale/p1010rdb/p1010rdb.c
> +++ b/board/freescale/p1010rdb/p1010rdb.c
> @@ -4,7 +4,7 @@
>   * Copyright 2020 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <image.h>
>  #include <init.h>
> diff --git a/board/freescale/p1010rdb/spl.c b/board/freescale/p1010rdb/spl.c
> index e450f626e0ad..fc26cef2cc8e 100644
> --- a/board/freescale/p1010rdb/spl.c
> +++ b/board/freescale/p1010rdb/spl.c
> @@ -2,7 +2,7 @@
>  /* Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <console.h>
>  #include <env.h>
> diff --git a/board/freescale/p1010rdb/spl_minimal.c
> b/board/freescale/p1010rdb/spl_minimal.c
> index 8f0dec4c0ab7..8cd79c6fb5f6 100644
> --- a/board/freescale/p1010rdb/spl_minimal.c
> +++ b/board/freescale/p1010rdb/spl_minimal.c
> @@ -2,7 +2,7 @@
>  /*
>   * Copyright 2011 Freescale Semiconductor, Inc.
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <init.h>
>  #include <mpc85xx.h>
> diff --git a/board/freescale/p1010rdb/tlb.c b/board/freescale/p1010rdb/tlb.c
> index 265cde81a3c2..44acebaa2bbd 100644
> --- a/board/freescale/p1010rdb/tlb.c
> +++ b/board/freescale/p1010rdb/tlb.c
> @@ -3,8 +3,9 @@
>   * Copyright 2010-2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/p1_p2_rdb_pc/ddr.c
> b/board/freescale/p1_p2_rdb_pc/ddr.c
> index 5f16779abaad..8622a5a610a5 100644
> --- a/board/freescale/p1_p2_rdb_pc/ddr.c
> +++ b/board/freescale/p1_p2_rdb_pc/ddr.c
> @@ -3,11 +3,12 @@
>   * Copyright 2010-2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <vsprintf.h>
> +#include <linux/string.h>
>  #include <asm/mmu.h>
>  #include <asm/immap_85xx.h>
> -#include <asm/processor.h>
> +#include <asm/ppc.h>
>  #include <fsl_ddr_sdram.h>
>  #include <fsl_ddr_dimm_params.h>
>  #include <asm/io.h>
> diff --git a/board/freescale/p1_p2_rdb_pc/law.c
> b/board/freescale/p1_p2_rdb_pc/law.c
> index 6085984eab43..49594070b836 100644
> --- a/board/freescale/p1_p2_rdb_pc/law.c
> +++ b/board/freescale/p1_p2_rdb_pc/law.c
> @@ -3,7 +3,7 @@
>   * Copyright 2010-2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
> b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
> index 602b7f0156ba..399ff7207229 100644
> --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
> +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
> @@ -4,7 +4,7 @@
>   * Copyright 2020 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <env.h>
>  #include <hang.h>
> diff --git a/board/freescale/p1_p2_rdb_pc/spl.c
> b/board/freescale/p1_p2_rdb_pc/spl.c
> index 6c3f82849e3a..b07f481fbf9d 100644
> --- a/board/freescale/p1_p2_rdb_pc/spl.c
> +++ b/board/freescale/p1_p2_rdb_pc/spl.c
> @@ -3,7 +3,7 @@
>   * Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <console.h>
>  #include <env.h>
> diff --git a/board/freescale/p1_p2_rdb_pc/spl_minimal.c
> b/board/freescale/p1_p2_rdb_pc/spl_minimal.c
> index f9e0b5b25ab7..511bcf5506b4 100644
> --- a/board/freescale/p1_p2_rdb_pc/spl_minimal.c
> +++ b/board/freescale/p1_p2_rdb_pc/spl_minimal.c
> @@ -3,7 +3,7 @@
>   * Copyright 2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <init.h>
>  #include <ns16550.h>
> diff --git a/board/freescale/p1_p2_rdb_pc/tlb.c
> b/board/freescale/p1_p2_rdb_pc/tlb.c
> index 94773969e9d8..ae0b7adbe544 100644
> --- a/board/freescale/p1_p2_rdb_pc/tlb.c
> +++ b/board/freescale/p1_p2_rdb_pc/tlb.c
> @@ -3,8 +3,9 @@
>   * Copyright 2010-2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/p2041rdb/cpld.c
> b/board/freescale/p2041rdb/cpld.c
> index a1908b8a5712..915a8b994d5c 100644
> --- a/board/freescale/p2041rdb/cpld.c
> +++ b/board/freescale/p2041rdb/cpld.c
> @@ -11,7 +11,6 @@
>   * CPLD_BASE - The virtual address of the base of the CPLD register map
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <asm/io.h>
> 
> diff --git a/board/freescale/p2041rdb/ddr.c
> b/board/freescale/p2041rdb/ddr.c
> index 910058cefe16..b8b765a85ef5 100644
> --- a/board/freescale/p2041rdb/ddr.c
> +++ b/board/freescale/p2041rdb/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2011 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <i2c.h>
>  #include <hwconfig.h>
>  #include <init.h>
> diff --git a/board/freescale/p2041rdb/eth.c b/board/freescale/p2041rdb/eth.c
> index c0d05539c5c0..658508667776 100644
> --- a/board/freescale/p2041rdb/eth.c
> +++ b/board/freescale/p2041rdb/eth.c
> @@ -12,7 +12,7 @@
>   * and serdes protocol selection.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <net.h>
>  #include <netdev.h>
>  #include <asm/fsl_serdes.h>
> diff --git a/board/freescale/p2041rdb/p2041rdb.c
> b/board/freescale/p2041rdb/p2041rdb.c
> index 575259b19c03..d5b71f784303 100644
> --- a/board/freescale/p2041rdb/p2041rdb.c
> +++ b/board/freescale/p2041rdb/p2041rdb.c
> @@ -3,7 +3,7 @@
>   * Copyright 2011,2012 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <command.h>
>  #include <env.h>
> diff --git a/board/freescale/t102xrdb/cpld.c
> b/board/freescale/t102xrdb/cpld.c
> index 17a6226cafc7..cc933ccd5440 100644
> --- a/board/freescale/t102xrdb/cpld.c
> +++ b/board/freescale/t102xrdb/cpld.c
> @@ -7,7 +7,7 @@
>   * The following macros need to be defined:
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <asm/io.h>
>  #include "cpld.h"
> diff --git a/board/freescale/t102xrdb/ddr.c b/board/freescale/t102xrdb/ddr.c
> index 1b4173989925..f8d504fb3c73 100644
> --- a/board/freescale/t102xrdb/ddr.c
> +++ b/board/freescale/t102xrdb/ddr.c
> @@ -3,7 +3,7 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <i2c.h>
>  #include <hwconfig.h>
>  #include <init.h>
> diff --git a/board/freescale/t102xrdb/eth_t102xrdb.c
> b/board/freescale/t102xrdb/eth_t102xrdb.c
> index ad78f72f98c8..7185a0abd520 100644
> --- a/board/freescale/t102xrdb/eth_t102xrdb.c
> +++ b/board/freescale/t102xrdb/eth_t102xrdb.c
> @@ -5,7 +5,7 @@
>   * Shengzhou Liu <Shengzhou.Liu@freescale.com>
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <fdt_support.h>
>  #include <net.h>
> diff --git a/board/freescale/t102xrdb/law.c b/board/freescale/t102xrdb/law.c
> index d636bef325f0..81caa961897a 100644
> --- a/board/freescale/t102xrdb/law.c
> +++ b/board/freescale/t102xrdb/law.c
> @@ -3,7 +3,7 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t102xrdb/spl.c b/board/freescale/t102xrdb/spl.c
> index 9faf259af74d..de6cdda194e7 100644
> --- a/board/freescale/t102xrdb/spl.c
> +++ b/board/freescale/t102xrdb/spl.c
> @@ -2,7 +2,7 @@
>  /* Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <console.h>
>  #include <env_internal.h>
> diff --git a/board/freescale/t102xrdb/t102xrdb.c
> b/board/freescale/t102xrdb/t102xrdb.c
> index 73f9d3ac72e7..0a29e27b42cd 100644
> --- a/board/freescale/t102xrdb/t102xrdb.c
> +++ b/board/freescale/t102xrdb/t102xrdb.c
> @@ -4,7 +4,7 @@
>   * Copyright 2020-2023 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <env.h>
>  #include <fdt_support.h>
> diff --git a/board/freescale/t102xrdb/tlb.c b/board/freescale/t102xrdb/tlb.c
> index 2519a9e4dbee..008bd6e72b7b 100644
> --- a/board/freescale/t102xrdb/tlb.c
> +++ b/board/freescale/t102xrdb/tlb.c
> @@ -3,8 +3,9 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/t104xrdb/cpld.c
> b/board/freescale/t104xrdb/cpld.c
> index 9ac57bbd8300..c2d526ae15ac 100644
> --- a/board/freescale/t104xrdb/cpld.c
> +++ b/board/freescale/t104xrdb/cpld.c
> @@ -10,7 +10,7 @@
>   * CFG_SYS_CPLD_BASE-The virtual address of the base of the CPLD register
> map
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <asm/io.h>
> 
> diff --git a/board/freescale/t104xrdb/ddr.c b/board/freescale/t104xrdb/ddr.c
> index 02ddb6614158..bab684860dad 100644
> --- a/board/freescale/t104xrdb/ddr.c
> +++ b/board/freescale/t104xrdb/ddr.c
> @@ -4,7 +4,7 @@
>   * Copyright 2021 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <i2c.h>
>  #include <hwconfig.h>
>  #include <init.h>
> diff --git a/board/freescale/t104xrdb/eth.c b/board/freescale/t104xrdb/eth.c
> index 5eca9386f6eb..d5c084e319d4 100644
> --- a/board/freescale/t104xrdb/eth.c
> +++ b/board/freescale/t104xrdb/eth.c
> @@ -3,7 +3,7 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <net.h>
>  #include <netdev.h>
>  #include <asm/fsl_serdes.h>
> diff --git a/board/freescale/t104xrdb/law.c b/board/freescale/t104xrdb/law.c
> index a0d6eb5b2707..d34641c23970 100644
> --- a/board/freescale/t104xrdb/law.c
> +++ b/board/freescale/t104xrdb/law.c
> @@ -3,7 +3,7 @@
>   * Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t104xrdb/spl.c b/board/freescale/t104xrdb/spl.c
> index dd8283f3c60a..e02a1f95d4cb 100644
> --- a/board/freescale/t104xrdb/spl.c
> +++ b/board/freescale/t104xrdb/spl.c
> @@ -2,7 +2,7 @@
>  /* Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <console.h>
>  #include <env_internal.h>
> diff --git a/board/freescale/t104xrdb/t104xrdb.c
> b/board/freescale/t104xrdb/t104xrdb.c
> index b30804927167..ef4dfef4965c 100644
> --- a/board/freescale/t104xrdb/t104xrdb.c
> +++ b/board/freescale/t104xrdb/t104xrdb.c
> @@ -4,7 +4,7 @@
>   * Copyright 2023 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <env.h>
>  #include <fdt_support.h>
> diff --git a/board/freescale/t104xrdb/tlb.c b/board/freescale/t104xrdb/tlb.c
> index 10be580b8136..24bc83f756bd 100644
> --- a/board/freescale/t104xrdb/tlb.c
> +++ b/board/freescale/t104xrdb/tlb.c
> @@ -3,8 +3,9 @@
>   * Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/t208xqds/ddr.c b/board/freescale/t208xqds/ddr.c
> index 56471b3988b9..9076fbba10af 100644
> --- a/board/freescale/t208xqds/ddr.c
> +++ b/board/freescale/t208xqds/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <i2c.h>
>  #include <hwconfig.h>
>  #include <init.h>
> diff --git a/board/freescale/t208xqds/eth_t208xqds.c
> b/board/freescale/t208xqds/eth_t208xqds.c
> index 569b193eab78..9f299227e295 100644
> --- a/board/freescale/t208xqds/eth_t208xqds.c
> +++ b/board/freescale/t208xqds/eth_t208xqds.c
> @@ -6,7 +6,7 @@
>   * Shengzhou Liu <Shengzhou.Liu@freescale.com>
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <fdt_support.h>
>  #include <log.h>
> diff --git a/board/freescale/t208xqds/law.c b/board/freescale/t208xqds/law.c
> index 3cdd4937684e..287f4650e058 100644
> --- a/board/freescale/t208xqds/law.c
> +++ b/board/freescale/t208xqds/law.c
> @@ -6,7 +6,7 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t208xqds/spl.c b/board/freescale/t208xqds/spl.c
> index 8866be54a661..44ad4e68d9f6 100644
> --- a/board/freescale/t208xqds/spl.c
> +++ b/board/freescale/t208xqds/spl.c
> @@ -2,7 +2,7 @@
>  /* Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <console.h>
>  #include <env_internal.h>
> diff --git a/board/freescale/t208xqds/t208xqds.c
> b/board/freescale/t208xqds/t208xqds.c
> index 8be55e52e5f6..5e71da0e163f 100644
> --- a/board/freescale/t208xqds/t208xqds.c
> +++ b/board/freescale/t208xqds/t208xqds.c
> @@ -4,7 +4,7 @@
>   * Copyright 2020 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <command.h>
>  #include <env.h>
> diff --git a/board/freescale/t208xqds/tlb.c b/board/freescale/t208xqds/tlb.c
> index 3d220afc16e6..f99d51c8cd76 100644
> --- a/board/freescale/t208xqds/tlb.c
> +++ b/board/freescale/t208xqds/tlb.c
> @@ -6,8 +6,9 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/t208xrdb/cpld.c
> b/board/freescale/t208xrdb/cpld.c
> index 933fa0decc31..d2226af62786 100644
> --- a/board/freescale/t208xrdb/cpld.c
> +++ b/board/freescale/t208xrdb/cpld.c
> @@ -5,8 +5,9 @@
>   * Freescale T2080RDB board-specific CPLD controlling supports.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
> +#include <asm/io.h>
>  #include "cpld.h"
> 
>  u8 cpld_read(unsigned int reg)
> diff --git a/board/freescale/t208xrdb/ddr.c b/board/freescale/t208xrdb/ddr.c
> index 1fbab36e1a20..fe98f62668a7 100644
> --- a/board/freescale/t208xrdb/ddr.c
> +++ b/board/freescale/t208xrdb/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <i2c.h>
>  #include <hwconfig.h>
>  #include <init.h>
> diff --git a/board/freescale/t208xrdb/eth_t208xrdb.c
> b/board/freescale/t208xrdb/eth_t208xrdb.c
> index e4592eac1530..5223eccb2804 100644
> --- a/board/freescale/t208xrdb/eth_t208xrdb.c
> +++ b/board/freescale/t208xrdb/eth_t208xrdb.c
> @@ -6,7 +6,6 @@
>   * Shengzhou Liu <Shengzhou.Liu@freescale.com>
>   */
> 
> -#include <common.h>
>  #include <command.h>
>  #include <fdt_support.h>
>  #include <net.h>
> diff --git a/board/freescale/t208xrdb/law.c b/board/freescale/t208xrdb/law.c
> index 53a13694506f..e1f570a89358 100644
> --- a/board/freescale/t208xrdb/law.c
> +++ b/board/freescale/t208xrdb/law.c
> @@ -6,7 +6,7 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t208xrdb/spl.c b/board/freescale/t208xrdb/spl.c
> index 130cb8847c0f..df3b9c6fe405 100644
> --- a/board/freescale/t208xrdb/spl.c
> +++ b/board/freescale/t208xrdb/spl.c
> @@ -2,7 +2,7 @@
>  /* Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <console.h>
>  #include <env_internal.h>
> diff --git a/board/freescale/t208xrdb/t208xrdb.c
> b/board/freescale/t208xrdb/t208xrdb.c
> index e33e5d082d80..d93edf007ad9 100644
> --- a/board/freescale/t208xrdb/t208xrdb.c
> +++ b/board/freescale/t208xrdb/t208xrdb.c
> @@ -4,7 +4,7 @@
>   * Copyright 2021-2023 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <env.h>
>  #include <fdt_support.h>
> diff --git a/board/freescale/t208xrdb/tlb.c b/board/freescale/t208xrdb/tlb.c
> index 688a208c621f..df5831541f38 100644
> --- a/board/freescale/t208xrdb/tlb.c
> +++ b/board/freescale/t208xrdb/tlb.c
> @@ -6,8 +6,9 @@
>   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/t4rdb/cpld.c b/board/freescale/t4rdb/cpld.c
> index 8b1012086ec7..cd14d5895f50 100644
> --- a/board/freescale/t4rdb/cpld.c
> +++ b/board/freescale/t4rdb/cpld.c
> @@ -14,7 +14,7 @@
>   *
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <asm/io.h>
> 
> diff --git a/board/freescale/t4rdb/ddr.c b/board/freescale/t4rdb/ddr.c
> index 57cbde154f0e..5b60b50c672b 100644
> --- a/board/freescale/t4rdb/ddr.c
> +++ b/board/freescale/t4rdb/ddr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <i2c.h>
>  #include <hwconfig.h>
>  #include <init.h>
> diff --git a/board/freescale/t4rdb/eth.c b/board/freescale/t4rdb/eth.c
> index 2e52543847bf..e7646365d7d4 100644
> --- a/board/freescale/t4rdb/eth.c
> +++ b/board/freescale/t4rdb/eth.c
> @@ -5,7 +5,7 @@
>   * Chunhe Lan <Chunhe.Lan@freescale.com>
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <fdt_support.h>
>  #include <net.h>
> diff --git a/board/freescale/t4rdb/law.c b/board/freescale/t4rdb/law.c
> index 43eeb884e2ff..c43ac0f30d74 100644
> --- a/board/freescale/t4rdb/law.c
> +++ b/board/freescale/t4rdb/law.c
> @@ -3,7 +3,7 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/fsl_law.h>
>  #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t4rdb/spl.c b/board/freescale/t4rdb/spl.c
> index 779457d29640..9d2472dec250 100644
> --- a/board/freescale/t4rdb/spl.c
> +++ b/board/freescale/t4rdb/spl.c
> @@ -5,7 +5,7 @@
>   * Author: Chunhe Lan <Chunhe.Lan@freescale.com>
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <clock_legacy.h>
>  #include <console.h>
>  #include <env_internal.h>
> diff --git a/board/freescale/t4rdb/t4240rdb.c
> b/board/freescale/t4rdb/t4240rdb.c
> index ab717769ed5c..5cacfd273803 100644
> --- a/board/freescale/t4rdb/t4240rdb.c
> +++ b/board/freescale/t4rdb/t4240rdb.c
> @@ -4,7 +4,7 @@
>   * Copyright 2023 NXP
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <env.h>
>  #include <fdt_support.h>
> diff --git a/board/freescale/t4rdb/tlb.c b/board/freescale/t4rdb/tlb.c
> index f5af893c2d9d..1fb9d41d52b1 100644
> --- a/board/freescale/t4rdb/tlb.c
> +++ b/board/freescale/t4rdb/tlb.c
> @@ -3,8 +3,9 @@
>   * Copyright 2014 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
>  struct fsl_e_tlb_entry tlb_table[] = {
>  	/* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/vf610twr/vf610twr.c
> b/board/freescale/vf610twr/vf610twr.c
> index 98cb0140ad02..80a798af9cb6 100644
> --- a/board/freescale/vf610twr/vf610twr.c
> +++ b/board/freescale/vf610twr/vf610twr.c
> @@ -3,7 +3,6 @@
>   * Copyright 2013 Freescale Semiconductor, Inc.
>   */
> 
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
> --
> 2.34.1


^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 061/149] board: freescale: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 061/149] board: freescale: " Tom Rini
  2024-05-01 11:26   ` Peng Fan
@ 2024-05-01 12:02   ` Jason Liu
  1 sibling, 0 replies; 197+ messages in thread
From: Jason Liu @ 2024-05-01 12:02 UTC (permalink / raw)
  To: Tom Rini
  Cc: u-boot, Stefano Babic, Fabio Estevam, dl-uboot-imx, Peng Fan,
	Giulio Benetti, Jesse Taube, Pramod Kumar, Alison Wang,
	Andy Tang, Mingkai Hu, Ashish Kumar, Priyanka Jain, Wasim Khan,
	Meenakshi Aggarwal, Angelo Dureghello, Tsi-Chung Liew,
	Sinan Akman, Otavio Salvador, Eric Nelson, Adrian Alonso,
	Qiang Zhao, Shengzhou Liu



> 在 2024年5月1日,10:44,Tom Rini <trini@konsulko.com> 写道:
> 
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
> Cc: Jesse Taube <Mr.Bossman075@gmail.com>
> Cc: Pramod Kumar <pramod.kumar_1@nxp.com>
> Cc: Alison Wang <alison.wang@nxp.com>
> Cc: Tang Yuantian <andy.tang@nxp.com>
> Cc: Mingkai Hu <mingkai.hu@nxp.com>
> Cc: Ashish Kumar <Ashish.Kumar@nxp.com>
> Cc: Priyanka Jain <priyanka.jain@nxp.com>
> Cc: Wasim Khan <wasim.khan@nxp.com>
> Cc: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
> Cc: Angelo Dureghello <angelo@kernel-space.org>
> Cc: TsiChung Liew <Tsi-Chung.Liew@nxp.com>
> Cc: Sinan Akman <sinan@writeme.com>
> Cc: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Jason Liu <jason.hui.liu@nxp.com>
> Cc: Eric Nelson <eric@nelint.com>
> Cc: Adrian Alonso <adrian.alonso@nxp.com>
> Cc: Qiang Zhao <qiang.zhao@nxp.com>
> Cc: Shengzhou Liu <Shengzhou.Liu@nxp.com>

Acked-by: Jason Liu <jason.hui.liu@nxp.com>

> ---
> arch/arm/include/asm/arch-imx8m/ddr.h             | 2 +-
> arch/arm/include/asm/mach-imx/gpio.h              | 2 ++
> board/freescale/common/cadmus.c                   | 3 ++-
> board/freescale/common/cds_pci_ft.c               | 1 -
> board/freescale/common/cds_via.c                  | 1 -
> board/freescale/common/cmd_esbc_validate.c        | 2 +-
> board/freescale/common/emc2305.c                  | 1 -
> board/freescale/common/fman.c                     | 1 -
> board/freescale/common/fsl_chain_of_trust.c       | 2 +-
> board/freescale/common/fsl_validate.c             | 2 +-
> board/freescale/common/i2c_common.c               | 2 +-
> board/freescale/common/i2c_mux.c                  | 3 ++-
> board/freescale/common/ics307_clk.c               | 2 +-
> board/freescale/common/ls102xa_stream_id.c        | 2 +-
> board/freescale/common/mc34vr500.c                | 1 -
> board/freescale/common/mmc.c                      | 2 +-
> board/freescale/common/ngpixis.c                  | 1 -
> board/freescale/common/ns_access.c                | 2 +-
> board/freescale/common/p_corenet/law.c            | 2 +-
> board/freescale/common/p_corenet/tlb.c            | 3 ++-
> board/freescale/common/pfuze.c                    | 1 -
> board/freescale/common/qixis.c                    | 2 +-
> board/freescale/common/sdhc_boot.c                | 1 -
> board/freescale/common/sys_eeprom.c               | 1 -
> board/freescale/common/vid.c                      | 3 ++-
> board/freescale/imx8mm_evk/imx8mm_evk.c           | 1 -
> board/freescale/imx8mm_evk/spl.c                  | 1 -
> board/freescale/imx8mn_evk/imx8mn_evk.c           | 1 -
> board/freescale/imx8mn_evk/spl.c                  | 1 -
> board/freescale/imx8mp_evk/spl.c                  | 1 -
> board/freescale/imx8mq_evk/imx8mq_evk.c           | 1 -
> board/freescale/imx8mq_evk/lpddr4_timing.c        | 1 -
> board/freescale/imx8mq_evk/lpddr4_timing_b0.c     | 1 -
> board/freescale/imx8mq_evk/spl.c                  | 2 +-
> board/freescale/imx8qm_mek/imx8qm_mek.c           | 1 -
> board/freescale/imx8qm_mek/spl.c                  | 1 -
> board/freescale/imx8qxp_mek/imx8qxp_mek.c         | 1 -
> board/freescale/imx8qxp_mek/spl.c                 | 1 -
> board/freescale/imx8ulp_evk/imx8ulp_evk.c         | 1 -
> board/freescale/imx8ulp_evk/spl.c                 | 1 -
> board/freescale/imx93_evk/imx93_evk.c             | 1 -
> board/freescale/imx93_evk/spl.c                   | 1 -
> board/freescale/imxrt1020-evk/imxrt1020-evk.c     | 1 -
> board/freescale/imxrt1050-evk/imxrt1050-evk.c     | 1 -
> board/freescale/imxrt1170-evk/imxrt1170-evk.c     | 1 -
> board/freescale/ls1012afrdm/eth.c                 | 1 -
> board/freescale/ls1012afrdm/ls1012afrdm.c         | 2 +-
> board/freescale/ls1012aqds/eth.c                  | 2 +-
> board/freescale/ls1012aqds/ls1012aqds.c           | 2 +-
> board/freescale/ls1012ardb/eth.c                  | 2 +-
> board/freescale/ls1012ardb/ls1012ardb.c           | 2 +-
> board/freescale/ls1021aiot/ls1021aiot.c           | 2 +-
> board/freescale/ls1021aqds/ddr.c                  | 2 +-
> board/freescale/ls1028a/ddr.c                     | 1 -
> board/freescale/ls1028a/ls1028a.c                 | 2 +-
> board/freescale/ls1043aqds/ddr.c                  | 1 -
> board/freescale/ls1043aqds/eth.c                  | 2 +-
> board/freescale/ls1043aqds/ls1043aqds.c           | 2 +-
> board/freescale/ls1043ardb/cpld.c                 | 2 +-
> board/freescale/ls1043ardb/ddr.c                  | 1 -
> board/freescale/ls1043ardb/eth.c                  | 2 +-
> board/freescale/ls1046afrwy/ddr.c                 | 1 -
> board/freescale/ls1046afrwy/eth.c                 | 2 +-
> board/freescale/ls1046afrwy/ls1046afrwy.c         | 2 +-
> board/freescale/ls1046aqds/ddr.c                  | 1 -
> board/freescale/ls1046aqds/eth.c                  | 2 +-
> board/freescale/ls1046aqds/ls1046aqds.c           | 2 +-
> board/freescale/ls1046ardb/cpld.c                 | 2 +-
> board/freescale/ls1046ardb/ddr.c                  | 1 -
> board/freescale/ls1046ardb/eth.c                  | 2 +-
> board/freescale/ls1046ardb/ls1046ardb.c           | 2 +-
> board/freescale/ls1088a/ddr.c                     | 1 -
> board/freescale/ls1088a/ls1088a.c                 | 2 +-
> board/freescale/ls2080aqds/ddr.c                  | 1 -
> board/freescale/ls2080aqds/ls2080aqds.c           | 2 +-
> board/freescale/ls2080ardb/ddr.c                  | 1 -
> board/freescale/ls2080ardb/ls2080ardb.c           | 2 +-
> board/freescale/lx2160a/ddr.c                     | 1 -
> board/freescale/lx2160a/eth_lx2160ardb.c          | 1 -
> board/freescale/lx2160a/lx2160a.c                 | 2 +-
> board/freescale/m5208evbe/m5208evbe.c             | 1 -
> board/freescale/m5235evb/m5235evb.c               | 1 -
> board/freescale/m5249evb/m5249evb.c               | 2 +-
> board/freescale/m5253demo/flash.c                 | 3 ++-
> board/freescale/m5253demo/m5253demo.c             | 2 +-
> board/freescale/m5272c3/m5272c3.c                 | 2 +-
> board/freescale/m5275evb/m5275evb.c               | 2 +-
> board/freescale/m5282evb/m5282evb.c               | 2 +-
> board/freescale/m53017evb/m53017evb.c             | 1 -
> board/freescale/m5329evb/m5329evb.c               | 1 -
> board/freescale/m5329evb/nand.c                   | 1 -
> board/freescale/m5373evb/m5373evb.c               | 1 -
> board/freescale/m5373evb/nand.c                   | 1 -
> board/freescale/mpc837xerdb/mpc837xerdb.c         | 2 +-
> board/freescale/mpc8548cds/ddr.c                  | 1 -
> board/freescale/mpc8548cds/law.c                  | 2 +-
> board/freescale/mpc8548cds/mpc8548cds.c           | 2 +-
> board/freescale/mpc8548cds/tlb.c                  | 3 ++-
> board/freescale/mx23evk/mx23evk.c                 | 1 -
> board/freescale/mx23evk/spl_boot.c                | 1 -
> board/freescale/mx28evk/iomux.c                   | 1 -
> board/freescale/mx28evk/mx28evk.c                 | 1 -
> board/freescale/mx51evk/mx51evk.c                 | 2 +-
> board/freescale/mx53loco/mx53loco.c               | 2 +-
> board/freescale/mx6memcal/mx6memcal.c             | 1 -
> board/freescale/mx6memcal/spl.c                   | 1 -
> board/freescale/mx6sabreauto/mx6sabreauto.c       | 1 -
> board/freescale/mx6slevk/mx6slevk.c               | 1 -
> board/freescale/mx6sllevk/mx6sllevk.c             | 1 -
> board/freescale/mx6sxsabreauto/mx6sxsabreauto.c   | 2 +-
> board/freescale/mx6sxsabresd/mx6sxsabresd.c       | 1 -
> board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +-
> board/freescale/mx6ullevk/mx6ullevk.c             | 2 +-
> board/freescale/mx7dsabresd/mx7dsabresd.c         | 1 -
> board/freescale/mx7ulp_evk/mx7ulp_evk.c           | 1 -
> board/freescale/p1010rdb/ddr.c                    | 1 -
> board/freescale/p1010rdb/law.c                    | 2 +-
> board/freescale/p1010rdb/p1010rdb.c               | 2 +-
> board/freescale/p1010rdb/spl.c                    | 2 +-
> board/freescale/p1010rdb/spl_minimal.c            | 2 +-
> board/freescale/p1010rdb/tlb.c                    | 3 ++-
> board/freescale/p1_p2_rdb_pc/ddr.c                | 5 +++--
> board/freescale/p1_p2_rdb_pc/law.c                | 2 +-
> board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c       | 2 +-
> board/freescale/p1_p2_rdb_pc/spl.c                | 2 +-
> board/freescale/p1_p2_rdb_pc/spl_minimal.c        | 2 +-
> board/freescale/p1_p2_rdb_pc/tlb.c                | 3 ++-
> board/freescale/p2041rdb/cpld.c                   | 1 -
> board/freescale/p2041rdb/ddr.c                    | 1 -
> board/freescale/p2041rdb/eth.c                    | 2 +-
> board/freescale/p2041rdb/p2041rdb.c               | 2 +-
> board/freescale/t102xrdb/cpld.c                   | 2 +-
> board/freescale/t102xrdb/ddr.c                    | 2 +-
> board/freescale/t102xrdb/eth_t102xrdb.c           | 2 +-
> board/freescale/t102xrdb/law.c                    | 2 +-
> board/freescale/t102xrdb/spl.c                    | 2 +-
> board/freescale/t102xrdb/t102xrdb.c               | 2 +-
> board/freescale/t102xrdb/tlb.c                    | 3 ++-
> board/freescale/t104xrdb/cpld.c                   | 2 +-
> board/freescale/t104xrdb/ddr.c                    | 2 +-
> board/freescale/t104xrdb/eth.c                    | 2 +-
> board/freescale/t104xrdb/law.c                    | 2 +-
> board/freescale/t104xrdb/spl.c                    | 2 +-
> board/freescale/t104xrdb/t104xrdb.c               | 2 +-
> board/freescale/t104xrdb/tlb.c                    | 3 ++-
> board/freescale/t208xqds/ddr.c                    | 1 -
> board/freescale/t208xqds/eth_t208xqds.c           | 2 +-
> board/freescale/t208xqds/law.c                    | 2 +-
> board/freescale/t208xqds/spl.c                    | 2 +-
> board/freescale/t208xqds/t208xqds.c               | 2 +-
> board/freescale/t208xqds/tlb.c                    | 3 ++-
> board/freescale/t208xrdb/cpld.c                   | 3 ++-
> board/freescale/t208xrdb/ddr.c                    | 1 -
> board/freescale/t208xrdb/eth_t208xrdb.c           | 1 -
> board/freescale/t208xrdb/law.c                    | 2 +-
> board/freescale/t208xrdb/spl.c                    | 2 +-
> board/freescale/t208xrdb/t208xrdb.c               | 2 +-
> board/freescale/t208xrdb/tlb.c                    | 3 ++-
> board/freescale/t4rdb/cpld.c                      | 2 +-
> board/freescale/t4rdb/ddr.c                       | 1 -
> board/freescale/t4rdb/eth.c                       | 2 +-
> board/freescale/t4rdb/law.c                       | 2 +-
> board/freescale/t4rdb/spl.c                       | 2 +-
> board/freescale/t4rdb/t4240rdb.c                  | 2 +-
> board/freescale/t4rdb/tlb.c                       | 3 ++-
> board/freescale/vf610twr/vf610twr.c               | 1 -
> 166 files changed, 115 insertions(+), 166 deletions(-)
> 
> diff --git a/arch/arm/include/asm/arch-imx8m/ddr.h b/arch/arm/include/asm/arch-imx8m/ddr.h
> index c14855d177ec..1f81d91977c8 100644
> --- a/arch/arm/include/asm/arch-imx8m/ddr.h
> +++ b/arch/arm/include/asm/arch-imx8m/ddr.h
> @@ -8,7 +8,7 @@
> 
> #include <asm/io.h>
> #include <asm/types.h>
> -#include <asm/arch/ddr.h>
> +#include <asm/arch/imx-regs.h>
> 
> #define DDRC_DDR_SS_GPR0        0x3d000000
> #define DDRC_IPS_BASE_ADDR_0        0x3f400000
> diff --git a/arch/arm/include/asm/mach-imx/gpio.h b/arch/arm/include/asm/mach-imx/gpio.h
> index 1b7c9cd52499..25763526f5f6 100644
> --- a/arch/arm/include/asm/mach-imx/gpio.h
> +++ b/arch/arm/include/asm/mach-imx/gpio.h
> @@ -9,6 +9,8 @@
> #define __ASM_ARCH_IMX_GPIO_H
> 
> #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
> +#include <linux/types.h>
> +
> /* GPIO registers */
> struct gpio_regs {
>   u32 gpio_dr;    /* data */
> diff --git a/board/freescale/common/cadmus.c b/board/freescale/common/cadmus.c
> index e7e07fff86c3..6f66ed6851d4 100644
> --- a/board/freescale/common/cadmus.c
> +++ b/board/freescale/common/cadmus.c
> @@ -4,8 +4,9 @@
> */
> 
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> +#include <linux/types.h>
> 
> /*
> * CADMUS Board System Registers
> diff --git a/board/freescale/common/cds_pci_ft.c b/board/freescale/common/cds_pci_ft.c
> index dc2d62850d19..56b01e3f51f0 100644
> --- a/board/freescale/common/cds_pci_ft.c
> +++ b/board/freescale/common/cds_pci_ft.c
> @@ -3,7 +3,6 @@
> * Copyright 2004 Freescale Semiconductor.
> */
> 
> -#include <common.h>
> #include <linux/libfdt.h>
> #include <fdt_support.h>
> #include "cadmus.h"
> diff --git a/board/freescale/common/cds_via.c b/board/freescale/common/cds_via.c
> index 6184472b1658..6fc3a21780f6 100644
> --- a/board/freescale/common/cds_via.c
> +++ b/board/freescale/common/cds_via.c
> @@ -3,7 +3,6 @@
> * Copyright 2006 Freescale Semiconductor.
> */
> 
> -#include <common.h>
> #include <pci.h>
> 
> /* Config the VIA chip */
> diff --git a/board/freescale/common/cmd_esbc_validate.c b/board/freescale/common/cmd_esbc_validate.c
> index 6c096266b484..d4192e5ab521 100644
> --- a/board/freescale/common/cmd_esbc_validate.c
> +++ b/board/freescale/common/cmd_esbc_validate.c
> @@ -3,10 +3,10 @@
> * Copyright 2015 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <env.h>
> #include <fsl_validate.h>
> +#include <vsprintf.h>
> 
> int do_esbc_halt(struct cmd_tbl *cmdtp, int flag, int argc,
>        char *const argv[])
> diff --git a/board/freescale/common/emc2305.c b/board/freescale/common/emc2305.c
> index 9a75c5a09dd1..50252bb5007f 100644
> --- a/board/freescale/common/emc2305.c
> +++ b/board/freescale/common/emc2305.c
> @@ -4,7 +4,6 @@
> *
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <i2c.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/common/fman.c b/board/freescale/common/fman.c
> index 358303108d8d..650ecc7b4402 100644
> --- a/board/freescale/common/fman.c
> +++ b/board/freescale/common/fman.c
> @@ -3,7 +3,6 @@
> * Copyright 2011-2015 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <linux/libfdt.h>
> #include <linux/libfdt_env.h>
> #include <fdt_support.h>
> diff --git a/board/freescale/common/fsl_chain_of_trust.c b/board/freescale/common/fsl_chain_of_trust.c
> index 87ed814d6a2a..27a33924c84d 100644
> --- a/board/freescale/common/fsl_chain_of_trust.c
> +++ b/board/freescale/common/fsl_chain_of_trust.c
> @@ -4,7 +4,7 @@
> * Copyright 2022 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <dm.h>
> #include <env.h>
> #include <init.h>
> diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c
> index bfe6357b0d60..e03434dcdfed 100644
> --- a/board/freescale/common/fsl_validate.c
> +++ b/board/freescale/common/fsl_validate.c
> @@ -4,7 +4,7 @@
> * Copyright 2021-2022 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <dm.h>
> #include <fsl_validate.h>
> #include <fsl_secboot_err.h>
> diff --git a/board/freescale/common/i2c_common.c b/board/freescale/common/i2c_common.c
> index 119ed3c6171b..20705ecc8e46 100644
> --- a/board/freescale/common/i2c_common.c
> +++ b/board/freescale/common/i2c_common.c
> @@ -5,7 +5,7 @@
> * Copyright 2021 Microsoft Corporation
> */
> 
> -#include <common.h>
> +#include <stdio.h>
> #include <i2c.h>
> #include "i2c_common.h"
> 
> diff --git a/board/freescale/common/i2c_mux.c b/board/freescale/common/i2c_mux.c
> index d40b34f10397..89151ccaf060 100644
> --- a/board/freescale/common/i2c_mux.c
> +++ b/board/freescale/common/i2c_mux.c
> @@ -5,8 +5,9 @@
> * Copyright 2021 Microsoft Corporation
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <i2c.h>
> +#include <stdio.h>
> #include "i2c_common.h"
> #include "i2c_mux.h"
> 
> diff --git a/board/freescale/common/ics307_clk.c b/board/freescale/common/ics307_clk.c
> index 5f95571d24cc..af30faa0c5fe 100644
> --- a/board/freescale/common/ics307_clk.c
> +++ b/board/freescale/common/ics307_clk.c
> @@ -3,7 +3,7 @@
> * Copyright 2010-2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <log.h>
> #include <asm/io.h>
> diff --git a/board/freescale/common/ls102xa_stream_id.c b/board/freescale/common/ls102xa_stream_id.c
> index f754cf42fd38..bf76274c43ca 100644
> --- a/board/freescale/common/ls102xa_stream_id.c
> +++ b/board/freescale/common/ls102xa_stream_id.c
> @@ -3,7 +3,7 @@
> * Copyright 2014 Freescale Semiconductor
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/io.h>
> #include <asm/arch/ls102xa_stream_id.h>
> 
> diff --git a/board/freescale/common/mc34vr500.c b/board/freescale/common/mc34vr500.c
> index d6b4c65a3c08..cf14b29a3ec1 100644
> --- a/board/freescale/common/mc34vr500.c
> +++ b/board/freescale/common/mc34vr500.c
> @@ -4,7 +4,6 @@
> * Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
> */
> 
> -#include <common.h>
> #include <errno.h>
> #include <i2c.h>
> #include <log.h>
> diff --git a/board/freescale/common/mmc.c b/board/freescale/common/mmc.c
> index 8cd5079f962d..00e4f3675fe4 100644
> --- a/board/freescale/common/mmc.c
> +++ b/board/freescale/common/mmc.c
> @@ -4,8 +4,8 @@
> * Copyright 2018-2022 NXP
> */
> 
> -#include <common.h>
> #include <command.h>
> +#include <vsprintf.h>
> #include <asm/arch/sys_proto.h>
> #include <linux/errno.h>
> #include <asm/io.h>
> diff --git a/board/freescale/common/ngpixis.c b/board/freescale/common/ngpixis.c
> index 7be1ccee6383..74c345807e64 100644
> --- a/board/freescale/common/ngpixis.c
> +++ b/board/freescale/common/ngpixis.c
> @@ -29,7 +29,6 @@
> *    boot from the alternate bank.
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <asm/io.h>
> 
> diff --git a/board/freescale/common/ns_access.c b/board/freescale/common/ns_access.c
> index a95d15c1ef39..c46e87f4ccee 100644
> --- a/board/freescale/common/ns_access.c
> +++ b/board/freescale/common/ns_access.c
> @@ -3,7 +3,7 @@
> * Copyright 2014 Freescale Semiconductor
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <log.h>
> #include <asm/cache.h>
> #include <asm/io.h>
> diff --git a/board/freescale/common/p_corenet/law.c b/board/freescale/common/p_corenet/law.c
> index 1a1e9343d23b..83818d6d8479 100644
> --- a/board/freescale/common/p_corenet/law.c
> +++ b/board/freescale/common/p_corenet/law.c
> @@ -6,7 +6,7 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/common/p_corenet/tlb.c b/board/freescale/common/p_corenet/tlb.c
> index 1a2d9cbfc0ce..cebdedfa4a7a 100644
> --- a/board/freescale/common/p_corenet/tlb.c
> +++ b/board/freescale/common/p_corenet/tlb.c
> @@ -6,8 +6,9 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c
> index a9288820b2eb..0d7a94fd232f 100644
> --- a/board/freescale/common/pfuze.c
> +++ b/board/freescale/common/pfuze.c
> @@ -3,7 +3,6 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <errno.h>
> #include <power/pmic.h>
> #include <power/pfuze100_pmic.h>
> diff --git a/board/freescale/common/qixis.c b/board/freescale/common/qixis.c
> index da2c1de078b7..6400ac052454 100644
> --- a/board/freescale/common/qixis.c
> +++ b/board/freescale/common/qixis.c
> @@ -7,7 +7,7 @@
> * This file provides support for the QIXIS of some Freescale reference boards.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <asm/io.h>
> #include <linux/compiler.h>
> diff --git a/board/freescale/common/sdhc_boot.c b/board/freescale/common/sdhc_boot.c
> index a1c7a94a90e3..5ee730cefd04 100644
> --- a/board/freescale/common/sdhc_boot.c
> +++ b/board/freescale/common/sdhc_boot.c
> @@ -3,7 +3,6 @@
> * Copyright 2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <mmc.h>
> #include <malloc.h>
> 
> diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
> index 64139d4659f2..ec3c9e37222a 100644
> --- a/board/freescale/common/sys_eeprom.c
> +++ b/board/freescale/common/sys_eeprom.c
> @@ -6,7 +6,6 @@
> * Timur Tabi (timur@freescale.com)
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <env.h>
> #include <i2c.h>
> diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c
> index fc5d400cfe18..84cb43fad56a 100644
> --- a/board/freescale/common/vid.c
> +++ b/board/freescale/common/vid.c
> @@ -5,12 +5,13 @@
> * Copyright 2020 Stephen Carlson <stcarlso@linux.microsoft.com>
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <env.h>
> #include <i2c.h>
> #include <irq_func.h>
> #include <log.h>
> +#include <vsprintf.h>
> #include <asm/io.h>
> #ifdef CONFIG_FSL_LSCH2
> #include <asm/arch/immap_lsch2.h>
> diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c
> index e0975fcda705..4c4436af3b1d 100644
> --- a/board/freescale/imx8mm_evk/imx8mm_evk.c
> +++ b/board/freescale/imx8mm_evk/imx8mm_evk.c
> @@ -3,7 +3,6 @@
> * Copyright 2018 NXP
> */
> 
> -#include <common.h>
> #include <env.h>
> #include <init.h>
> #include <miiphy.h>
> diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
> index 35437811d9df..cd251d274ff6 100644
> --- a/board/freescale/imx8mm_evk/spl.c
> +++ b/board/freescale/imx8mm_evk/spl.c
> @@ -3,7 +3,6 @@
> * Copyright 2019, 2021 NXP
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <cpu_func.h>
> #include <hang.h>
> diff --git a/board/freescale/imx8mn_evk/imx8mn_evk.c b/board/freescale/imx8mn_evk/imx8mn_evk.c
> index e35d505aea97..6b6fb0a7dd21 100644
> --- a/board/freescale/imx8mn_evk/imx8mn_evk.c
> +++ b/board/freescale/imx8mn_evk/imx8mn_evk.c
> @@ -3,7 +3,6 @@
> * Copyright 2019 NXP
> */
> 
> -#include <common.h>
> #include <env.h>
> #include <init.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/imx8mn_evk/spl.c b/board/freescale/imx8mn_evk/spl.c
> index dd54fa9b6085..231b9289eead 100644
> --- a/board/freescale/imx8mn_evk/spl.c
> +++ b/board/freescale/imx8mn_evk/spl.c
> @@ -4,7 +4,6 @@
> *
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <cpu_func.h>
> #include <hang.h>
> diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c
> index 9dd2cbc799c3..12da1b2abfbb 100644
> --- a/board/freescale/imx8mp_evk/spl.c
> +++ b/board/freescale/imx8mp_evk/spl.c
> @@ -4,7 +4,6 @@
> *
> */
> 
> -#include <common.h>
> #include <hang.h>
> #include <init.h>
> #include <log.h>
> diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_evk.c
> index e577e4d9ccaa..ab920a4539cd 100644
> --- a/board/freescale/imx8mq_evk/imx8mq_evk.c
> +++ b/board/freescale/imx8mq_evk/imx8mq_evk.c
> @@ -3,7 +3,6 @@
> * Copyright 2018 NXP
> */
> 
> -#include <common.h>
> #include <env.h>
> #include <init.h>
> #include <malloc.h>
> diff --git a/board/freescale/imx8mq_evk/lpddr4_timing.c b/board/freescale/imx8mq_evk/lpddr4_timing.c
> index 46bc7f8591cb..e9559e3d843a 100644
> --- a/board/freescale/imx8mq_evk/lpddr4_timing.c
> +++ b/board/freescale/imx8mq_evk/lpddr4_timing.c
> @@ -4,7 +4,6 @@
> */
> 
> #include <linux/kernel.h>
> -#include <common.h>
> #include <asm/arch/ddr.h>
> #include <asm/arch/lpddr4_define.h>
> 
> diff --git a/board/freescale/imx8mq_evk/lpddr4_timing_b0.c b/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
> index ec68edaf6905..5d8f2803be67 100644
> --- a/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
> +++ b/board/freescale/imx8mq_evk/lpddr4_timing_b0.c
> @@ -4,7 +4,6 @@
> */
> 
> #include <linux/kernel.h>
> -#include <common.h>
> #include <asm/arch/ddr.h>
> #include <asm/arch/lpddr4_define.h>
> 
> diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c
> index 818cdd615eb9..a346305c8633 100644
> --- a/board/freescale/imx8mq_evk/spl.c
> +++ b/board/freescale/imx8mq_evk/spl.c
> @@ -4,7 +4,7 @@
> *
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <hang.h>
> #include <image.h>
> #include <init.h>
> diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c
> index 2b209c8886f2..72527f774ca9 100644
> --- a/board/freescale/imx8qm_mek/imx8qm_mek.c
> +++ b/board/freescale/imx8qm_mek/imx8qm_mek.c
> @@ -3,7 +3,6 @@
> * Copyright 2018 NXP
> */
> 
> -#include <common.h>
> #include <cpu_func.h>
> #include <env.h>
> #include <errno.h>
> diff --git a/board/freescale/imx8qm_mek/spl.c b/board/freescale/imx8qm_mek/spl.c
> index 17fd437116d3..ad7868333091 100644
> --- a/board/freescale/imx8qm_mek/spl.c
> +++ b/board/freescale/imx8qm_mek/spl.c
> @@ -4,7 +4,6 @@
> *
> */
> 
> -#include <common.h>
> #include <dm.h>
> #include <image.h>
> #include <init.h>
> diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
> index 833bee55462d..adb9556a021c 100644
> --- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
> +++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
> @@ -3,7 +3,6 @@
> * Copyright 2018 NXP
> */
> 
> -#include <common.h>
> #include <cpu_func.h>
> #include <env.h>
> #include <errno.h>
> diff --git a/board/freescale/imx8qxp_mek/spl.c b/board/freescale/imx8qxp_mek/spl.c
> index 462c43ceebc7..05e3c0a2ff26 100644
> --- a/board/freescale/imx8qxp_mek/spl.c
> +++ b/board/freescale/imx8qxp_mek/spl.c
> @@ -4,7 +4,6 @@
> *
> */
> 
> -#include <common.h>
> #include <dm.h>
> #include <image.h>
> #include <init.h>
> diff --git a/board/freescale/imx8ulp_evk/imx8ulp_evk.c b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
> index dd04d5925a00..0af610672637 100644
> --- a/board/freescale/imx8ulp_evk/imx8ulp_evk.c
> +++ b/board/freescale/imx8ulp_evk/imx8ulp_evk.c
> @@ -3,7 +3,6 @@
> * Copyright 2020 NXP
> */
> 
> -#include <common.h>
> #include <miiphy.h>
> #include <netdev.h>
> #include <asm/arch/imx8ulp-pins.h>
> diff --git a/board/freescale/imx8ulp_evk/spl.c b/board/freescale/imx8ulp_evk/spl.c
> index c49b5be47620..d123b21b7225 100644
> --- a/board/freescale/imx8ulp_evk/spl.c
> +++ b/board/freescale/imx8ulp_evk/spl.c
> @@ -3,7 +3,6 @@
> * Copyright 2021 NXP
> */
> 
> -#include <common.h>
> #include <init.h>
> #include <spl.h>
> #include <asm/io.h>
> diff --git a/board/freescale/imx93_evk/imx93_evk.c b/board/freescale/imx93_evk/imx93_evk.c
> index c54dc9d05c5c..341831a7d30d 100644
> --- a/board/freescale/imx93_evk/imx93_evk.c
> +++ b/board/freescale/imx93_evk/imx93_evk.c
> @@ -3,7 +3,6 @@
> * Copyright 2022 NXP
> */
> 
> -#include <common.h>
> #include <env.h>
> #include <init.h>
> #include <miiphy.h>
> diff --git a/board/freescale/imx93_evk/spl.c b/board/freescale/imx93_evk/spl.c
> index 6d5e110b2776..e5807134bb23 100644
> --- a/board/freescale/imx93_evk/spl.c
> +++ b/board/freescale/imx93_evk/spl.c
> @@ -3,7 +3,6 @@
> * Copyright 2022 NXP
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <cpu_func.h>
> #include <hang.h>
> diff --git a/board/freescale/imxrt1020-evk/imxrt1020-evk.c b/board/freescale/imxrt1020-evk/imxrt1020-evk.c
> index 785da604b964..42a0a67ae933 100644
> --- a/board/freescale/imxrt1020-evk/imxrt1020-evk.c
> +++ b/board/freescale/imxrt1020-evk/imxrt1020-evk.c
> @@ -4,7 +4,6 @@
> * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
> */
> 
> -#include <common.h>
> #include <dm.h>
> #include <init.h>
> #include <log.h>
> diff --git a/board/freescale/imxrt1050-evk/imxrt1050-evk.c b/board/freescale/imxrt1050-evk/imxrt1050-evk.c
> index 4cc3defc8828..46a644908e9d 100644
> --- a/board/freescale/imxrt1050-evk/imxrt1050-evk.c
> +++ b/board/freescale/imxrt1050-evk/imxrt1050-evk.c
> @@ -4,7 +4,6 @@
> * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
> */
> 
> -#include <common.h>
> #include <dm.h>
> #include <init.h>
> #include <log.h>
> diff --git a/board/freescale/imxrt1170-evk/imxrt1170-evk.c b/board/freescale/imxrt1170-evk/imxrt1170-evk.c
> index 4b82ee5e9ce4..e10b8830ec6a 100644
> --- a/board/freescale/imxrt1170-evk/imxrt1170-evk.c
> +++ b/board/freescale/imxrt1170-evk/imxrt1170-evk.c
> @@ -4,7 +4,6 @@
> * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
> */
> 
> -#include <common.h>
> #include <dm.h>
> #include <init.h>
> #include <log.h>
> diff --git a/board/freescale/ls1012afrdm/eth.c b/board/freescale/ls1012afrdm/eth.c
> index d2df9351eacc..c431e5e611bb 100644
> --- a/board/freescale/ls1012afrdm/eth.c
> +++ b/board/freescale/ls1012afrdm/eth.c
> @@ -4,7 +4,6 @@
> * Copyright 2017 NXP
> */
> 
> -#include <common.h>
> #include <dm.h>
> #include <net.h>
> #include <asm/io.h>
> diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c b/board/freescale/ls1012afrdm/ls1012afrdm.c
> index 271072bf7a1c..dae2cf097bc0 100644
> --- a/board/freescale/ls1012afrdm/ls1012afrdm.c
> +++ b/board/freescale/ls1012afrdm/ls1012afrdm.c
> @@ -3,7 +3,7 @@
> * Copyright 2017-2018, 2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <fdt_support.h>
> #include <i2c.h>
> #include <asm/cache.h>
> diff --git a/board/freescale/ls1012aqds/eth.c b/board/freescale/ls1012aqds/eth.c
> index 38267acedde1..d5e87c5393b8 100644
> --- a/board/freescale/ls1012aqds/eth.c
> +++ b/board/freescale/ls1012aqds/eth.c
> @@ -4,7 +4,7 @@
> * Copyright 2017 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <dm.h>
> #include <asm/io.h>
> #include <netdev.h>
> diff --git a/board/freescale/ls1012aqds/ls1012aqds.c b/board/freescale/ls1012aqds/ls1012aqds.c
> index a5ea8d634edc..7d56eb0117d4 100644
> --- a/board/freescale/ls1012aqds/ls1012aqds.c
> +++ b/board/freescale/ls1012aqds/ls1012aqds.c
> @@ -4,7 +4,7 @@
> * Copyright 2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <i2c.h>
> #include <fdt_support.h>
> #include <asm/cache.h>
> diff --git a/board/freescale/ls1012ardb/eth.c b/board/freescale/ls1012ardb/eth.c
> index 5c661274987c..71cb2988a56d 100644
> --- a/board/freescale/ls1012ardb/eth.c
> +++ b/board/freescale/ls1012ardb/eth.c
> @@ -4,7 +4,7 @@
> * Copyright 2017 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <dm.h>
> #include <net.h>
> #include <asm/io.h>
> diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c
> index 18f92089caef..7f8001b4981f 100644
> --- a/board/freescale/ls1012ardb/ls1012ardb.c
> +++ b/board/freescale/ls1012ardb/ls1012ardb.c
> @@ -4,7 +4,7 @@
> * Copyright 2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <fdt_support.h>
> #include <hang.h>
> diff --git a/board/freescale/ls1021aiot/ls1021aiot.c b/board/freescale/ls1021aiot/ls1021aiot.c
> index d6f22bd6a2a3..7abc41269330 100644
> --- a/board/freescale/ls1021aiot/ls1021aiot.c
> +++ b/board/freescale/ls1021aiot/ls1021aiot.c
> @@ -4,7 +4,7 @@
> * Copyright 2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <fdt_support.h>
> #include <init.h>
> diff --git a/board/freescale/ls1021aqds/ddr.c b/board/freescale/ls1021aqds/ddr.c
> index 4e70acc5a0cc..5b0f23688f0b 100644
> --- a/board/freescale/ls1021aqds/ddr.c
> +++ b/board/freescale/ls1021aqds/ddr.c
> @@ -3,7 +3,7 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <init.h>
> diff --git a/board/freescale/ls1028a/ddr.c b/board/freescale/ls1028a/ddr.c
> index 3e976da6b305..c406f2436d1a 100644
> --- a/board/freescale/ls1028a/ddr.c
> +++ b/board/freescale/ls1028a/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2019 NXP
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/ls1028a/ls1028a.c b/board/freescale/ls1028a/ls1028a.c
> index 7f181ab3dfb7..e01b5a8c2eb0 100644
> --- a/board/freescale/ls1028a/ls1028a.c
> +++ b/board/freescale/ls1028a/ls1028a.c
> @@ -3,7 +3,7 @@
> * Copyright 2019-2022 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <display_options.h>
> #include <init.h>
> #include <malloc.h>
> diff --git a/board/freescale/ls1043aqds/ddr.c b/board/freescale/ls1043aqds/ddr.c
> index 23947bdb84c9..2a9717df616c 100644
> --- a/board/freescale/ls1043aqds/ddr.c
> +++ b/board/freescale/ls1043aqds/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2015 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #ifdef CONFIG_FSL_DEEP_SLEEP
> diff --git a/board/freescale/ls1043aqds/eth.c b/board/freescale/ls1043aqds/eth.c
> index cd1f83e3d068..5a8ca27b3278 100644
> --- a/board/freescale/ls1043aqds/eth.c
> +++ b/board/freescale/ls1043aqds/eth.c
> @@ -4,7 +4,7 @@
> * Copyright 2019 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <log.h>
> #include <net.h>
> #include <asm/io.h>
> diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c
> index b87da41e4083..fdf011efc5bd 100644
> --- a/board/freescale/ls1043aqds/ls1043aqds.c
> +++ b/board/freescale/ls1043aqds/ls1043aqds.c
> @@ -4,7 +4,7 @@
> * Copyright 2019-2020 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <i2c.h>
> #include <fdt_support.h>
> diff --git a/board/freescale/ls1043ardb/cpld.c b/board/freescale/ls1043ardb/cpld.c
> index 9db3aa586059..bda2f3ac3a69 100644
> --- a/board/freescale/ls1043ardb/cpld.c
> +++ b/board/freescale/ls1043ardb/cpld.c
> @@ -5,7 +5,7 @@
> * Freescale LS1043ARDB board-specific CPLD controlling supports.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <asm/io.h>
> #include "cpld.h"
> diff --git a/board/freescale/ls1043ardb/ddr.c b/board/freescale/ls1043ardb/ddr.c
> index 4d2fce384121..187925e981a5 100644
> --- a/board/freescale/ls1043ardb/ddr.c
> +++ b/board/freescale/ls1043ardb/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2015 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/ls1043ardb/eth.c b/board/freescale/ls1043ardb/eth.c
> index cc95214c4e3f..cacc49c0584d 100644
> --- a/board/freescale/ls1043ardb/eth.c
> +++ b/board/freescale/ls1043ardb/eth.c
> @@ -2,7 +2,7 @@
> /*
> * Copyright 2015 Freescale Semiconductor, Inc.
> */
> -#include <common.h>
> +#include <config.h>
> #include <net.h>
> #include <asm/io.h>
> #include <netdev.h>
> diff --git a/board/freescale/ls1046afrwy/ddr.c b/board/freescale/ls1046afrwy/ddr.c
> index 256397b52b65..b08caee1d97d 100644
> --- a/board/freescale/ls1046afrwy/ddr.c
> +++ b/board/freescale/ls1046afrwy/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2019 NXP
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <asm/global_data.h>
> 
> diff --git a/board/freescale/ls1046afrwy/eth.c b/board/freescale/ls1046afrwy/eth.c
> index d1a2bfe18855..8efc7f68424c 100644
> --- a/board/freescale/ls1046afrwy/eth.c
> +++ b/board/freescale/ls1046afrwy/eth.c
> @@ -2,7 +2,7 @@
> /*
> * Copyright 2019 NXP
> */
> -#include <common.h>
> +#include <config.h>
> #include <fdt_support.h>
> #include <net.h>
> #include <asm/io.h>
> diff --git a/board/freescale/ls1046afrwy/ls1046afrwy.c b/board/freescale/ls1046afrwy/ls1046afrwy.c
> index 899c22a367e6..8889c24f1f0c 100644
> --- a/board/freescale/ls1046afrwy/ls1046afrwy.c
> +++ b/board/freescale/ls1046afrwy/ls1046afrwy.c
> @@ -3,7 +3,7 @@
> * Copyright 2019, 2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <i2c.h>
> #include <fdt_support.h>
> #include <init.h>
> diff --git a/board/freescale/ls1046aqds/ddr.c b/board/freescale/ls1046aqds/ddr.c
> index 9a96de271786..ac1b60497216 100644
> --- a/board/freescale/ls1046aqds/ddr.c
> +++ b/board/freescale/ls1046aqds/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2016 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #ifdef CONFIG_FSL_DEEP_SLEEP
> diff --git a/board/freescale/ls1046aqds/eth.c b/board/freescale/ls1046aqds/eth.c
> index bbf8b8c2bee5..cd3500c2e960 100644
> --- a/board/freescale/ls1046aqds/eth.c
> +++ b/board/freescale/ls1046aqds/eth.c
> @@ -4,7 +4,7 @@
> * Copyright 2018-2020 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <log.h>
> #include <net.h>
> #include <asm/io.h>
> diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c
> index 2faac54a0e23..a83b21706519 100644
> --- a/board/freescale/ls1046aqds/ls1046aqds.c
> +++ b/board/freescale/ls1046aqds/ls1046aqds.c
> @@ -4,7 +4,7 @@
> * Copyright 2019-2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <i2c.h>
> #include <fdt_support.h>
> diff --git a/board/freescale/ls1046ardb/cpld.c b/board/freescale/ls1046ardb/cpld.c
> index ee19d4ff8aab..7f8ca2e857fd 100644
> --- a/board/freescale/ls1046ardb/cpld.c
> +++ b/board/freescale/ls1046ardb/cpld.c
> @@ -5,7 +5,7 @@
> * Freescale LS1046ARDB board-specific CPLD controlling supports.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <asm/io.h>
> #include "cpld.h"
> diff --git a/board/freescale/ls1046ardb/ddr.c b/board/freescale/ls1046ardb/ddr.c
> index befb556bd30b..68353022e7dd 100644
> --- a/board/freescale/ls1046ardb/ddr.c
> +++ b/board/freescale/ls1046ardb/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2016 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/ls1046ardb/eth.c b/board/freescale/ls1046ardb/eth.c
> index bbc22a3cdf4a..fee8e0e21d44 100644
> --- a/board/freescale/ls1046ardb/eth.c
> +++ b/board/freescale/ls1046ardb/eth.c
> @@ -2,7 +2,7 @@
> /*
> * Copyright 2016 Freescale Semiconductor, Inc.
> */
> -#include <common.h>
> +#include <config.h>
> #include <fdt_support.h>
> #include <net.h>
> #include <asm/io.h>
> diff --git a/board/freescale/ls1046ardb/ls1046ardb.c b/board/freescale/ls1046ardb/ls1046ardb.c
> index 26e69db55f74..0492f0a8c0ae 100644
> --- a/board/freescale/ls1046ardb/ls1046ardb.c
> +++ b/board/freescale/ls1046ardb/ls1046ardb.c
> @@ -4,7 +4,7 @@
> * Copyright 2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <i2c.h>
> #include <fdt_support.h>
> #include <init.h>
> diff --git a/board/freescale/ls1088a/ddr.c b/board/freescale/ls1088a/ddr.c
> index 9e0941cc9d6e..d2e239c4d615 100644
> --- a/board/freescale/ls1088a/ddr.c
> +++ b/board/freescale/ls1088a/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2017 NXP
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <log.h>
> diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c
> index 98a91c48adb0..58951f2bb2aa 100644
> --- a/board/freescale/ls1088a/ls1088a.c
> +++ b/board/freescale/ls1088a/ls1088a.c
> @@ -2,7 +2,7 @@
> /*
> * Copyright 2017-2022 NXP
> */
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <display_options.h>
> #include <env.h>
> diff --git a/board/freescale/ls2080aqds/ddr.c b/board/freescale/ls2080aqds/ddr.c
> index 2767d058cc96..2986ffb7a820 100644
> --- a/board/freescale/ls2080aqds/ddr.c
> +++ b/board/freescale/ls2080aqds/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2015 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <log.h>
> diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
> index 5c94c83121b5..4c8d0706688f 100644
> --- a/board/freescale/ls2080aqds/ls2080aqds.c
> +++ b/board/freescale/ls2080aqds/ls2080aqds.c
> @@ -3,7 +3,7 @@
> * Copyright 2015 Freescale Semiconductor
> * Copyright 2021 NXP
> */
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <display_options.h>
> #include <env.h>
> diff --git a/board/freescale/ls2080ardb/ddr.c b/board/freescale/ls2080ardb/ddr.c
> index 07fa84733324..ec34b42e619a 100644
> --- a/board/freescale/ls2080ardb/ddr.c
> +++ b/board/freescale/ls2080ardb/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2015 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <log.h>
> diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
> index 5c30de83d841..6f824f57c478 100644
> --- a/board/freescale/ls2080ardb/ls2080ardb.c
> +++ b/board/freescale/ls2080ardb/ls2080ardb.c
> @@ -3,7 +3,7 @@
> * Copyright 2015 Freescale Semiconductor
> * Copyright 2017, 2021 NXP
> */
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <display_options.h>
> #include <env.h>
> diff --git a/board/freescale/lx2160a/ddr.c b/board/freescale/lx2160a/ddr.c
> index 7ab7a9e6ca83..637e43a22bee 100644
> --- a/board/freescale/lx2160a/ddr.c
> +++ b/board/freescale/lx2160a/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2018 NXP
> */
> 
> -#include <common.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/lx2160a/eth_lx2160ardb.c b/board/freescale/lx2160a/eth_lx2160ardb.c
> index c5dfefe1f342..90e7c9100e12 100644
> --- a/board/freescale/lx2160a/eth_lx2160ardb.c
> +++ b/board/freescale/lx2160a/eth_lx2160ardb.c
> @@ -4,7 +4,6 @@
> *
> */
> 
> -#include <common.h>
> #include <netdev.h>
> #include <exports.h>
> #include <fsl-mc/fsl_mc.h>
> diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
> index b3187a14214a..3aa984dab8e7 100644
> --- a/board/freescale/lx2160a/lx2160a.c
> +++ b/board/freescale/lx2160a/lx2160a.c
> @@ -3,7 +3,7 @@
> * Copyright 2018-2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <display_options.h>
> #include <dm.h>
> diff --git a/board/freescale/m5208evbe/m5208evbe.c b/board/freescale/m5208evbe/m5208evbe.c
> index 6125c9e13aa3..b202b8094d92 100644
> --- a/board/freescale/m5208evbe/m5208evbe.c
> +++ b/board/freescale/m5208evbe/m5208evbe.c
> @@ -8,7 +8,6 @@
> */
> 
> #include <config.h>
> -#include <common.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/immap.h>
> diff --git a/board/freescale/m5235evb/m5235evb.c b/board/freescale/m5235evb/m5235evb.c
> index 44161a0b0a1c..65cde56fb2d7 100644
> --- a/board/freescale/m5235evb/m5235evb.c
> +++ b/board/freescale/m5235evb/m5235evb.c
> @@ -8,7 +8,6 @@
> */
> 
> #include <config.h>
> -#include <common.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/immap.h>
> diff --git a/board/freescale/m5249evb/m5249evb.c b/board/freescale/m5249evb/m5249evb.c
> index d67db24d5883..717dc087e02b 100644
> --- a/board/freescale/m5249evb/m5249evb.c
> +++ b/board/freescale/m5249evb/m5249evb.c
> @@ -4,7 +4,7 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <init.h>
> #include <malloc.h>
> diff --git a/board/freescale/m5253demo/flash.c b/board/freescale/m5253demo/flash.c
> index eeb9cfd31259..334518a4bc9d 100644
> --- a/board/freescale/m5253demo/flash.c
> +++ b/board/freescale/m5253demo/flash.c
> @@ -7,10 +7,11 @@
> * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <flash.h>
> #include <init.h>
> #include <irq_func.h>
> +#include <time.h>
> 
> #include <asm/immap.h>
> 
> diff --git a/board/freescale/m5253demo/m5253demo.c b/board/freescale/m5253demo/m5253demo.c
> index c1cff52fb3db..d0b01f81745f 100644
> --- a/board/freescale/m5253demo/m5253demo.c
> +++ b/board/freescale/m5253demo/m5253demo.c
> @@ -7,7 +7,7 @@
> * Hayden Fraser (Hayden.Fraser@freescale.com)
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <init.h>
> #include <net.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/m5272c3/m5272c3.c b/board/freescale/m5272c3/m5272c3.c
> index 3c20a23385c5..d1286badc61c 100644
> --- a/board/freescale/m5272c3/m5272c3.c
> +++ b/board/freescale/m5272c3/m5272c3.c
> @@ -6,7 +6,7 @@
> * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/immap.h>
> diff --git a/board/freescale/m5275evb/m5275evb.c b/board/freescale/m5275evb/m5275evb.c
> index 00fa35ca5f71..e1d94fc9a3e2 100644
> --- a/board/freescale/m5275evb/m5275evb.c
> +++ b/board/freescale/m5275evb/m5275evb.c
> @@ -8,7 +8,7 @@
> * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/immap.h>
> diff --git a/board/freescale/m5282evb/m5282evb.c b/board/freescale/m5282evb/m5282evb.c
> index 53e0f202101c..81da6e2abd46 100644
> --- a/board/freescale/m5282evb/m5282evb.c
> +++ b/board/freescale/m5282evb/m5282evb.c
> @@ -4,7 +4,7 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/immap.h>
> diff --git a/board/freescale/m53017evb/m53017evb.c b/board/freescale/m53017evb/m53017evb.c
> index 76ebc0ab8dcd..196d56dc17d3 100644
> --- a/board/freescale/m53017evb/m53017evb.c
> +++ b/board/freescale/m53017evb/m53017evb.c
> @@ -8,7 +8,6 @@
> */
> 
> #include <config.h>
> -#include <common.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/immap.h>
> diff --git a/board/freescale/m5329evb/m5329evb.c b/board/freescale/m5329evb/m5329evb.c
> index b278dbfb4852..26d5f3bf58ce 100644
> --- a/board/freescale/m5329evb/m5329evb.c
> +++ b/board/freescale/m5329evb/m5329evb.c
> @@ -8,7 +8,6 @@
> */
> 
> #include <config.h>
> -#include <common.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/immap.h>
> diff --git a/board/freescale/m5329evb/nand.c b/board/freescale/m5329evb/nand.c
> index d921eef8b675..a250d61ef368 100644
> --- a/board/freescale/m5329evb/nand.c
> +++ b/board/freescale/m5329evb/nand.c
> @@ -8,7 +8,6 @@
> */
> 
> #include <config.h>
> -#include <common.h>
> #include <asm/io.h>
> #include <asm/immap.h>
> 
> diff --git a/board/freescale/m5373evb/m5373evb.c b/board/freescale/m5373evb/m5373evb.c
> index 0e9eec316c2f..d6fdf41bab47 100644
> --- a/board/freescale/m5373evb/m5373evb.c
> +++ b/board/freescale/m5373evb/m5373evb.c
> @@ -8,7 +8,6 @@
> */
> 
> #include <config.h>
> -#include <common.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/immap.h>
> diff --git a/board/freescale/m5373evb/nand.c b/board/freescale/m5373evb/nand.c
> index 6d825a66e33f..e7c08d22e6bb 100644
> --- a/board/freescale/m5373evb/nand.c
> +++ b/board/freescale/m5373evb/nand.c
> @@ -8,7 +8,6 @@
> */
> 
> #include <config.h>
> -#include <common.h>
> #include <asm/io.h>
> #include <asm/immap.h>
> 
> diff --git a/board/freescale/mpc837xerdb/mpc837xerdb.c b/board/freescale/mpc837xerdb/mpc837xerdb.c
> index 97884a397964..55299745a3cb 100644
> --- a/board/freescale/mpc837xerdb/mpc837xerdb.c
> +++ b/board/freescale/mpc837xerdb/mpc837xerdb.c
> @@ -5,7 +5,7 @@
> * Joe D'Abbraccio <joe.d'abbraccio@freescale.com>
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <env.h>
> #include <hwconfig.h>
> #include <i2c.h>
> diff --git a/board/freescale/mpc8548cds/ddr.c b/board/freescale/mpc8548cds/ddr.c
> index b6c1847b141b..14202cd5a788 100644
> --- a/board/freescale/mpc8548cds/ddr.c
> +++ b/board/freescale/mpc8548cds/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2008 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> 
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> diff --git a/board/freescale/mpc8548cds/law.c b/board/freescale/mpc8548cds/law.c
> index 7b6ef5b11c92..2334870fda08 100644
> --- a/board/freescale/mpc8548cds/law.c
> +++ b/board/freescale/mpc8548cds/law.c
> @@ -6,7 +6,7 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
> index ec6e3a2d0ab5..7810010fd042 100644
> --- a/board/freescale/mpc8548cds/mpc8548cds.c
> +++ b/board/freescale/mpc8548cds/mpc8548cds.c
> @@ -5,7 +5,7 @@
> * (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <display_options.h>
> #include <init.h>
> #include <net.h>
> diff --git a/board/freescale/mpc8548cds/tlb.c b/board/freescale/mpc8548cds/tlb.c
> index 994a32dd92ad..0b2afa8054d8 100644
> --- a/board/freescale/mpc8548cds/tlb.c
> +++ b/board/freescale/mpc8548cds/tlb.c
> @@ -6,8 +6,9 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/mx23evk/mx23evk.c b/board/freescale/mx23evk/mx23evk.c
> index df4fb3912558..fbc8fbdbf593 100644
> --- a/board/freescale/mx23evk/mx23evk.c
> +++ b/board/freescale/mx23evk/mx23evk.c
> @@ -11,7 +11,6 @@
> * on behalf of DENX Software Engineering GmbH
> */
> 
> -#include <common.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/gpio.h>
> diff --git a/board/freescale/mx23evk/spl_boot.c b/board/freescale/mx23evk/spl_boot.c
> index 14e9b4a8634f..a4c39a352219 100644
> --- a/board/freescale/mx23evk/spl_boot.c
> +++ b/board/freescale/mx23evk/spl_boot.c
> @@ -6,7 +6,6 @@
> * on behalf of DENX Software Engineering GmbH
> */
> 
> -#include <common.h>
> #include <config.h>
> #include <asm/io.h>
> #include <asm/arch/iomux-mx23.h>
> diff --git a/board/freescale/mx28evk/iomux.c b/board/freescale/mx28evk/iomux.c
> index cc0c85885446..b84b045bd1f5 100644
> --- a/board/freescale/mx28evk/iomux.c
> +++ b/board/freescale/mx28evk/iomux.c
> @@ -6,7 +6,6 @@
> * on behalf of DENX Software Engineering GmbH
> */
> 
> -#include <common.h>
> #include <config.h>
> #include <asm/io.h>
> #include <asm/arch/iomux-mx28.h>
> diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c
> index 88c3bf36089c..ada572912dad 100644
> --- a/board/freescale/mx28evk/mx28evk.c
> +++ b/board/freescale/mx28evk/mx28evk.c
> @@ -11,7 +11,6 @@
> * on behalf of DENX Software Engineering GmbH
> */
> 
> -#include <common.h>
> #include <init.h>
> #include <net.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
> index 95edb3599443..694568423026 100644
> --- a/board/freescale/mx51evk/mx51evk.c
> +++ b/board/freescale/mx51evk/mx51evk.c
> @@ -3,7 +3,7 @@
> * (C) Copyright 2009 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/io.h>
> diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
> index d418cd8f4c0d..2d8f5da9906f 100644
> --- a/board/freescale/mx53loco/mx53loco.c
> +++ b/board/freescale/mx53loco/mx53loco.c
> @@ -4,7 +4,7 @@
> * Jason Liu <r64343@freescale.com>
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <init.h>
> #include <log.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/mx6memcal/mx6memcal.c b/board/freescale/mx6memcal/mx6memcal.c
> index 0dfd7dec9efb..17095c34e926 100644
> --- a/board/freescale/mx6memcal/mx6memcal.c
> +++ b/board/freescale/mx6memcal/mx6memcal.c
> @@ -7,7 +7,6 @@
> * Author: Eric Nelson <eric@nelint.com>
> */
> 
> -#include <common.h>
> #include <init.h>
> #include <asm/arch/sys_proto.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/mx6memcal/spl.c b/board/freescale/mx6memcal/spl.c
> index 61d0ca3408f0..bc9c4259f07b 100644
> --- a/board/freescale/mx6memcal/spl.c
> +++ b/board/freescale/mx6memcal/spl.c
> @@ -4,7 +4,6 @@
> * Author: Eric Nelson <eric@nelint.com>
> */
> 
> -#include <common.h>
> #include <cpu_func.h>
> #include <init.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c b/board/freescale/mx6sabreauto/mx6sabreauto.c
> index 77e92006131a..e782543c0fae 100644
> --- a/board/freescale/mx6sabreauto/mx6sabreauto.c
> +++ b/board/freescale/mx6sabreauto/mx6sabreauto.c
> @@ -5,7 +5,6 @@
> * Author: Fabio Estevam <fabio.estevam@freescale.com>
> */
> 
> -#include <common.h>
> #include <image.h>
> #include <init.h>
> #include <net.h>
> diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c
> index e9ac57118b01..d37d8a4136f6 100644
> --- a/board/freescale/mx6slevk/mx6slevk.c
> +++ b/board/freescale/mx6slevk/mx6slevk.c
> @@ -21,7 +21,6 @@
> #include <asm/io.h>
> #include <asm/sections.h>
> #include <linux/sizes.h>
> -#include <common.h>
> #include <fsl_esdhc_imx.h>
> #include <i2c.h>
> #include <mmc.h>
> diff --git a/board/freescale/mx6sllevk/mx6sllevk.c b/board/freescale/mx6sllevk/mx6sllevk.c
> index 10a00095affb..7114444fc3e6 100644
> --- a/board/freescale/mx6sllevk/mx6sllevk.c
> +++ b/board/freescale/mx6sllevk/mx6sllevk.c
> @@ -15,7 +15,6 @@
> #include <asm/mach-imx/iomux-v3.h>
> #include <asm/mach-imx/boot_mode.h>
> #include <asm/io.h>
> -#include <common.h>
> #include <linux/sizes.h>
> #include <mmc.h>
> #include <power/pmic.h>
> diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
> index 84cc51e9cac7..6176f7382389 100644
> --- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
> +++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
> @@ -20,7 +20,7 @@
> #include <asm/io.h>
> #include <linux/delay.h>
> #include <linux/sizes.h>
> -#include <common.h>
> +#include <config.h>
> #include <fsl_esdhc_imx.h>
> #include <miiphy.h>
> #include <netdev.h>
> diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
> index e7958df40243..e3353feec688 100644
> --- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c
> +++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
> @@ -21,7 +21,6 @@
> #include <env.h>
> #include <linux/delay.h>
> #include <linux/sizes.h>
> -#include <common.h>
> #include <fsl_esdhc_imx.h>
> #include <mmc.h>
> #include <i2c.h>
> diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> index 534b16cec7ae..6b0665a1067f 100644
> --- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> +++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
> @@ -19,7 +19,7 @@
> #include <asm/mach-imx/mxc_i2c.h>
> #include <asm/io.h>
> #include <asm/sections.h>
> -#include <common.h>
> +#include <config.h>
> #include <env.h>
> #include <fsl_esdhc_imx.h>
> #include <i2c.h>
> diff --git a/board/freescale/mx6ullevk/mx6ullevk.c b/board/freescale/mx6ullevk/mx6ullevk.c
> index de45f8b1d24b..189eddefea3f 100644
> --- a/board/freescale/mx6ullevk/mx6ullevk.c
> +++ b/board/freescale/mx6ullevk/mx6ullevk.c
> @@ -15,7 +15,7 @@
> #include <asm/mach-imx/iomux-v3.h>
> #include <asm/mach-imx/boot_mode.h>
> #include <asm/io.h>
> -#include <common.h>
> +#include <config.h>
> #include <env.h>
> #include <fsl_esdhc_imx.h>
> #include <linux/sizes.h>
> diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c
> index 4fe23b51cd1b..3db167c0dad3 100644
> --- a/board/freescale/mx7dsabresd/mx7dsabresd.c
> +++ b/board/freescale/mx7dsabresd/mx7dsabresd.c
> @@ -15,7 +15,6 @@
> #include <asm/io.h>
> #include <linux/delay.h>
> #include <linux/sizes.h>
> -#include <common.h>
> #include <fsl_esdhc_imx.h>
> #include <mmc.h>
> #include <miiphy.h>
> diff --git a/board/freescale/mx7ulp_evk/mx7ulp_evk.c b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
> index 01e32136532d..af68e57854e2 100644
> --- a/board/freescale/mx7ulp_evk/mx7ulp_evk.c
> +++ b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
> @@ -3,7 +3,6 @@
> * Copyright (C) 2016 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <fdt_support.h>
> #include <init.h>
> #include <asm/global_data.h>
> diff --git a/board/freescale/p1010rdb/ddr.c b/board/freescale/p1010rdb/ddr.c
> index b423ec8e218a..43a0936bc9af 100644
> --- a/board/freescale/p1010rdb/ddr.c
> +++ b/board/freescale/p1010rdb/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2010-2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <vsprintf.h>
> #include <asm/global_data.h>
> #include <asm/mmu.h>
> diff --git a/board/freescale/p1010rdb/law.c b/board/freescale/p1010rdb/law.c
> index 13fc2fa2e38c..a7d80f285211 100644
> --- a/board/freescale/p1010rdb/law.c
> +++ b/board/freescale/p1010rdb/law.c
> @@ -3,7 +3,7 @@
> * Copyright 2010-2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/p1010rdb/p1010rdb.c b/board/freescale/p1010rdb/p1010rdb.c
> index d32274b24812..ab0031440ae8 100644
> --- a/board/freescale/p1010rdb/p1010rdb.c
> +++ b/board/freescale/p1010rdb/p1010rdb.c
> @@ -4,7 +4,7 @@
> * Copyright 2020 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <image.h>
> #include <init.h>
> diff --git a/board/freescale/p1010rdb/spl.c b/board/freescale/p1010rdb/spl.c
> index e450f626e0ad..fc26cef2cc8e 100644
> --- a/board/freescale/p1010rdb/spl.c
> +++ b/board/freescale/p1010rdb/spl.c
> @@ -2,7 +2,7 @@
> /* Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <console.h>
> #include <env.h>
> diff --git a/board/freescale/p1010rdb/spl_minimal.c b/board/freescale/p1010rdb/spl_minimal.c
> index 8f0dec4c0ab7..8cd79c6fb5f6 100644
> --- a/board/freescale/p1010rdb/spl_minimal.c
> +++ b/board/freescale/p1010rdb/spl_minimal.c
> @@ -2,7 +2,7 @@
> /*
> * Copyright 2011 Freescale Semiconductor, Inc.
> */
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <init.h>
> #include <mpc85xx.h>
> diff --git a/board/freescale/p1010rdb/tlb.c b/board/freescale/p1010rdb/tlb.c
> index 265cde81a3c2..44acebaa2bbd 100644
> --- a/board/freescale/p1010rdb/tlb.c
> +++ b/board/freescale/p1010rdb/tlb.c
> @@ -3,8 +3,9 @@
> * Copyright 2010-2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/p1_p2_rdb_pc/ddr.c b/board/freescale/p1_p2_rdb_pc/ddr.c
> index 5f16779abaad..8622a5a610a5 100644
> --- a/board/freescale/p1_p2_rdb_pc/ddr.c
> +++ b/board/freescale/p1_p2_rdb_pc/ddr.c
> @@ -3,11 +3,12 @@
> * Copyright 2010-2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <vsprintf.h>
> +#include <linux/string.h>
> #include <asm/mmu.h>
> #include <asm/immap_85xx.h>
> -#include <asm/processor.h>
> +#include <asm/ppc.h>
> #include <fsl_ddr_sdram.h>
> #include <fsl_ddr_dimm_params.h>
> #include <asm/io.h>
> diff --git a/board/freescale/p1_p2_rdb_pc/law.c b/board/freescale/p1_p2_rdb_pc/law.c
> index 6085984eab43..49594070b836 100644
> --- a/board/freescale/p1_p2_rdb_pc/law.c
> +++ b/board/freescale/p1_p2_rdb_pc/law.c
> @@ -3,7 +3,7 @@
> * Copyright 2010-2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
> index 602b7f0156ba..399ff7207229 100644
> --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
> +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
> @@ -4,7 +4,7 @@
> * Copyright 2020 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <env.h>
> #include <hang.h>
> diff --git a/board/freescale/p1_p2_rdb_pc/spl.c b/board/freescale/p1_p2_rdb_pc/spl.c
> index 6c3f82849e3a..b07f481fbf9d 100644
> --- a/board/freescale/p1_p2_rdb_pc/spl.c
> +++ b/board/freescale/p1_p2_rdb_pc/spl.c
> @@ -3,7 +3,7 @@
> * Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <console.h>
> #include <env.h>
> diff --git a/board/freescale/p1_p2_rdb_pc/spl_minimal.c b/board/freescale/p1_p2_rdb_pc/spl_minimal.c
> index f9e0b5b25ab7..511bcf5506b4 100644
> --- a/board/freescale/p1_p2_rdb_pc/spl_minimal.c
> +++ b/board/freescale/p1_p2_rdb_pc/spl_minimal.c
> @@ -3,7 +3,7 @@
> * Copyright 2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <init.h>
> #include <ns16550.h>
> diff --git a/board/freescale/p1_p2_rdb_pc/tlb.c b/board/freescale/p1_p2_rdb_pc/tlb.c
> index 94773969e9d8..ae0b7adbe544 100644
> --- a/board/freescale/p1_p2_rdb_pc/tlb.c
> +++ b/board/freescale/p1_p2_rdb_pc/tlb.c
> @@ -3,8 +3,9 @@
> * Copyright 2010-2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/p2041rdb/cpld.c b/board/freescale/p2041rdb/cpld.c
> index a1908b8a5712..915a8b994d5c 100644
> --- a/board/freescale/p2041rdb/cpld.c
> +++ b/board/freescale/p2041rdb/cpld.c
> @@ -11,7 +11,6 @@
> * CPLD_BASE - The virtual address of the base of the CPLD register map
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <asm/io.h>
> 
> diff --git a/board/freescale/p2041rdb/ddr.c b/board/freescale/p2041rdb/ddr.c
> index 910058cefe16..b8b765a85ef5 100644
> --- a/board/freescale/p2041rdb/ddr.c
> +++ b/board/freescale/p2041rdb/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2011 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <i2c.h>
> #include <hwconfig.h>
> #include <init.h>
> diff --git a/board/freescale/p2041rdb/eth.c b/board/freescale/p2041rdb/eth.c
> index c0d05539c5c0..658508667776 100644
> --- a/board/freescale/p2041rdb/eth.c
> +++ b/board/freescale/p2041rdb/eth.c
> @@ -12,7 +12,7 @@
> * and serdes protocol selection.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <net.h>
> #include <netdev.h>
> #include <asm/fsl_serdes.h>
> diff --git a/board/freescale/p2041rdb/p2041rdb.c b/board/freescale/p2041rdb/p2041rdb.c
> index 575259b19c03..d5b71f784303 100644
> --- a/board/freescale/p2041rdb/p2041rdb.c
> +++ b/board/freescale/p2041rdb/p2041rdb.c
> @@ -3,7 +3,7 @@
> * Copyright 2011,2012 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <command.h>
> #include <env.h>
> diff --git a/board/freescale/t102xrdb/cpld.c b/board/freescale/t102xrdb/cpld.c
> index 17a6226cafc7..cc933ccd5440 100644
> --- a/board/freescale/t102xrdb/cpld.c
> +++ b/board/freescale/t102xrdb/cpld.c
> @@ -7,7 +7,7 @@
> * The following macros need to be defined:
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <asm/io.h>
> #include "cpld.h"
> diff --git a/board/freescale/t102xrdb/ddr.c b/board/freescale/t102xrdb/ddr.c
> index 1b4173989925..f8d504fb3c73 100644
> --- a/board/freescale/t102xrdb/ddr.c
> +++ b/board/freescale/t102xrdb/ddr.c
> @@ -3,7 +3,7 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <i2c.h>
> #include <hwconfig.h>
> #include <init.h>
> diff --git a/board/freescale/t102xrdb/eth_t102xrdb.c b/board/freescale/t102xrdb/eth_t102xrdb.c
> index ad78f72f98c8..7185a0abd520 100644
> --- a/board/freescale/t102xrdb/eth_t102xrdb.c
> +++ b/board/freescale/t102xrdb/eth_t102xrdb.c
> @@ -5,7 +5,7 @@
> * Shengzhou Liu <Shengzhou.Liu@freescale.com>
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <fdt_support.h>
> #include <net.h>
> diff --git a/board/freescale/t102xrdb/law.c b/board/freescale/t102xrdb/law.c
> index d636bef325f0..81caa961897a 100644
> --- a/board/freescale/t102xrdb/law.c
> +++ b/board/freescale/t102xrdb/law.c
> @@ -3,7 +3,7 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t102xrdb/spl.c b/board/freescale/t102xrdb/spl.c
> index 9faf259af74d..de6cdda194e7 100644
> --- a/board/freescale/t102xrdb/spl.c
> +++ b/board/freescale/t102xrdb/spl.c
> @@ -2,7 +2,7 @@
> /* Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <console.h>
> #include <env_internal.h>
> diff --git a/board/freescale/t102xrdb/t102xrdb.c b/board/freescale/t102xrdb/t102xrdb.c
> index 73f9d3ac72e7..0a29e27b42cd 100644
> --- a/board/freescale/t102xrdb/t102xrdb.c
> +++ b/board/freescale/t102xrdb/t102xrdb.c
> @@ -4,7 +4,7 @@
> * Copyright 2020-2023 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <env.h>
> #include <fdt_support.h>
> diff --git a/board/freescale/t102xrdb/tlb.c b/board/freescale/t102xrdb/tlb.c
> index 2519a9e4dbee..008bd6e72b7b 100644
> --- a/board/freescale/t102xrdb/tlb.c
> +++ b/board/freescale/t102xrdb/tlb.c
> @@ -3,8 +3,9 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/t104xrdb/cpld.c b/board/freescale/t104xrdb/cpld.c
> index 9ac57bbd8300..c2d526ae15ac 100644
> --- a/board/freescale/t104xrdb/cpld.c
> +++ b/board/freescale/t104xrdb/cpld.c
> @@ -10,7 +10,7 @@
> * CFG_SYS_CPLD_BASE-The virtual address of the base of the CPLD register map
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <asm/io.h>
> 
> diff --git a/board/freescale/t104xrdb/ddr.c b/board/freescale/t104xrdb/ddr.c
> index 02ddb6614158..bab684860dad 100644
> --- a/board/freescale/t104xrdb/ddr.c
> +++ b/board/freescale/t104xrdb/ddr.c
> @@ -4,7 +4,7 @@
> * Copyright 2021 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <i2c.h>
> #include <hwconfig.h>
> #include <init.h>
> diff --git a/board/freescale/t104xrdb/eth.c b/board/freescale/t104xrdb/eth.c
> index 5eca9386f6eb..d5c084e319d4 100644
> --- a/board/freescale/t104xrdb/eth.c
> +++ b/board/freescale/t104xrdb/eth.c
> @@ -3,7 +3,7 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <net.h>
> #include <netdev.h>
> #include <asm/fsl_serdes.h>
> diff --git a/board/freescale/t104xrdb/law.c b/board/freescale/t104xrdb/law.c
> index a0d6eb5b2707..d34641c23970 100644
> --- a/board/freescale/t104xrdb/law.c
> +++ b/board/freescale/t104xrdb/law.c
> @@ -3,7 +3,7 @@
> * Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t104xrdb/spl.c b/board/freescale/t104xrdb/spl.c
> index dd8283f3c60a..e02a1f95d4cb 100644
> --- a/board/freescale/t104xrdb/spl.c
> +++ b/board/freescale/t104xrdb/spl.c
> @@ -2,7 +2,7 @@
> /* Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <console.h>
> #include <env_internal.h>
> diff --git a/board/freescale/t104xrdb/t104xrdb.c b/board/freescale/t104xrdb/t104xrdb.c
> index b30804927167..ef4dfef4965c 100644
> --- a/board/freescale/t104xrdb/t104xrdb.c
> +++ b/board/freescale/t104xrdb/t104xrdb.c
> @@ -4,7 +4,7 @@
> * Copyright 2023 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <env.h>
> #include <fdt_support.h>
> diff --git a/board/freescale/t104xrdb/tlb.c b/board/freescale/t104xrdb/tlb.c
> index 10be580b8136..24bc83f756bd 100644
> --- a/board/freescale/t104xrdb/tlb.c
> +++ b/board/freescale/t104xrdb/tlb.c
> @@ -3,8 +3,9 @@
> * Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/t208xqds/ddr.c b/board/freescale/t208xqds/ddr.c
> index 56471b3988b9..9076fbba10af 100644
> --- a/board/freescale/t208xqds/ddr.c
> +++ b/board/freescale/t208xqds/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <i2c.h>
> #include <hwconfig.h>
> #include <init.h>
> diff --git a/board/freescale/t208xqds/eth_t208xqds.c b/board/freescale/t208xqds/eth_t208xqds.c
> index 569b193eab78..9f299227e295 100644
> --- a/board/freescale/t208xqds/eth_t208xqds.c
> +++ b/board/freescale/t208xqds/eth_t208xqds.c
> @@ -6,7 +6,7 @@
> * Shengzhou Liu <Shengzhou.Liu@freescale.com>
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <fdt_support.h>
> #include <log.h>
> diff --git a/board/freescale/t208xqds/law.c b/board/freescale/t208xqds/law.c
> index 3cdd4937684e..287f4650e058 100644
> --- a/board/freescale/t208xqds/law.c
> +++ b/board/freescale/t208xqds/law.c
> @@ -6,7 +6,7 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t208xqds/spl.c b/board/freescale/t208xqds/spl.c
> index 8866be54a661..44ad4e68d9f6 100644
> --- a/board/freescale/t208xqds/spl.c
> +++ b/board/freescale/t208xqds/spl.c
> @@ -2,7 +2,7 @@
> /* Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <console.h>
> #include <env_internal.h>
> diff --git a/board/freescale/t208xqds/t208xqds.c b/board/freescale/t208xqds/t208xqds.c
> index 8be55e52e5f6..5e71da0e163f 100644
> --- a/board/freescale/t208xqds/t208xqds.c
> +++ b/board/freescale/t208xqds/t208xqds.c
> @@ -4,7 +4,7 @@
> * Copyright 2020 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <command.h>
> #include <env.h>
> diff --git a/board/freescale/t208xqds/tlb.c b/board/freescale/t208xqds/tlb.c
> index 3d220afc16e6..f99d51c8cd76 100644
> --- a/board/freescale/t208xqds/tlb.c
> +++ b/board/freescale/t208xqds/tlb.c
> @@ -6,8 +6,9 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/t208xrdb/cpld.c b/board/freescale/t208xrdb/cpld.c
> index 933fa0decc31..d2226af62786 100644
> --- a/board/freescale/t208xrdb/cpld.c
> +++ b/board/freescale/t208xrdb/cpld.c
> @@ -5,8 +5,9 @@
> * Freescale T2080RDB board-specific CPLD controlling supports.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> +#include <asm/io.h>
> #include "cpld.h"
> 
> u8 cpld_read(unsigned int reg)
> diff --git a/board/freescale/t208xrdb/ddr.c b/board/freescale/t208xrdb/ddr.c
> index 1fbab36e1a20..fe98f62668a7 100644
> --- a/board/freescale/t208xrdb/ddr.c
> +++ b/board/freescale/t208xrdb/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <i2c.h>
> #include <hwconfig.h>
> #include <init.h>
> diff --git a/board/freescale/t208xrdb/eth_t208xrdb.c b/board/freescale/t208xrdb/eth_t208xrdb.c
> index e4592eac1530..5223eccb2804 100644
> --- a/board/freescale/t208xrdb/eth_t208xrdb.c
> +++ b/board/freescale/t208xrdb/eth_t208xrdb.c
> @@ -6,7 +6,6 @@
> * Shengzhou Liu <Shengzhou.Liu@freescale.com>
> */
> 
> -#include <common.h>
> #include <command.h>
> #include <fdt_support.h>
> #include <net.h>
> diff --git a/board/freescale/t208xrdb/law.c b/board/freescale/t208xrdb/law.c
> index 53a13694506f..e1f570a89358 100644
> --- a/board/freescale/t208xrdb/law.c
> +++ b/board/freescale/t208xrdb/law.c
> @@ -6,7 +6,7 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t208xrdb/spl.c b/board/freescale/t208xrdb/spl.c
> index 130cb8847c0f..df3b9c6fe405 100644
> --- a/board/freescale/t208xrdb/spl.c
> +++ b/board/freescale/t208xrdb/spl.c
> @@ -2,7 +2,7 @@
> /* Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <console.h>
> #include <env_internal.h>
> diff --git a/board/freescale/t208xrdb/t208xrdb.c b/board/freescale/t208xrdb/t208xrdb.c
> index e33e5d082d80..d93edf007ad9 100644
> --- a/board/freescale/t208xrdb/t208xrdb.c
> +++ b/board/freescale/t208xrdb/t208xrdb.c
> @@ -4,7 +4,7 @@
> * Copyright 2021-2023 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <env.h>
> #include <fdt_support.h>
> diff --git a/board/freescale/t208xrdb/tlb.c b/board/freescale/t208xrdb/tlb.c
> index 688a208c621f..df5831541f38 100644
> --- a/board/freescale/t208xrdb/tlb.c
> +++ b/board/freescale/t208xrdb/tlb.c
> @@ -6,8 +6,9 @@
> * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/t4rdb/cpld.c b/board/freescale/t4rdb/cpld.c
> index 8b1012086ec7..cd14d5895f50 100644
> --- a/board/freescale/t4rdb/cpld.c
> +++ b/board/freescale/t4rdb/cpld.c
> @@ -14,7 +14,7 @@
> *
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <asm/io.h>
> 
> diff --git a/board/freescale/t4rdb/ddr.c b/board/freescale/t4rdb/ddr.c
> index 57cbde154f0e..5b60b50c672b 100644
> --- a/board/freescale/t4rdb/ddr.c
> +++ b/board/freescale/t4rdb/ddr.c
> @@ -3,7 +3,6 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <i2c.h>
> #include <hwconfig.h>
> #include <init.h>
> diff --git a/board/freescale/t4rdb/eth.c b/board/freescale/t4rdb/eth.c
> index 2e52543847bf..e7646365d7d4 100644
> --- a/board/freescale/t4rdb/eth.c
> +++ b/board/freescale/t4rdb/eth.c
> @@ -5,7 +5,7 @@
> * Chunhe Lan <Chunhe.Lan@freescale.com>
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <fdt_support.h>
> #include <net.h>
> diff --git a/board/freescale/t4rdb/law.c b/board/freescale/t4rdb/law.c
> index 43eeb884e2ff..c43ac0f30d74 100644
> --- a/board/freescale/t4rdb/law.c
> +++ b/board/freescale/t4rdb/law.c
> @@ -3,7 +3,7 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/fsl_law.h>
> #include <asm/mmu.h>
> 
> diff --git a/board/freescale/t4rdb/spl.c b/board/freescale/t4rdb/spl.c
> index 779457d29640..9d2472dec250 100644
> --- a/board/freescale/t4rdb/spl.c
> +++ b/board/freescale/t4rdb/spl.c
> @@ -5,7 +5,7 @@
> * Author: Chunhe Lan <Chunhe.Lan@freescale.com>
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <clock_legacy.h>
> #include <console.h>
> #include <env_internal.h>
> diff --git a/board/freescale/t4rdb/t4240rdb.c b/board/freescale/t4rdb/t4240rdb.c
> index ab717769ed5c..5cacfd273803 100644
> --- a/board/freescale/t4rdb/t4240rdb.c
> +++ b/board/freescale/t4rdb/t4240rdb.c
> @@ -4,7 +4,7 @@
> * Copyright 2023 NXP
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <command.h>
> #include <env.h>
> #include <fdt_support.h>
> diff --git a/board/freescale/t4rdb/tlb.c b/board/freescale/t4rdb/tlb.c
> index f5af893c2d9d..1fb9d41d52b1 100644
> --- a/board/freescale/t4rdb/tlb.c
> +++ b/board/freescale/t4rdb/tlb.c
> @@ -3,8 +3,9 @@
> * Copyright 2014 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> +#include <config.h>
> #include <asm/mmu.h>
> +#include <asm/ppc.h>
> 
> struct fsl_e_tlb_entry tlb_table[] = {
>   /* TLB 0 - for temp stack in cache */
> diff --git a/board/freescale/vf610twr/vf610twr.c b/board/freescale/vf610twr/vf610twr.c
> index 98cb0140ad02..80a798af9cb6 100644
> --- a/board/freescale/vf610twr/vf610twr.c
> +++ b/board/freescale/vf610twr/vf610twr.c
> @@ -3,7 +3,6 @@
> * Copyright 2013 Freescale Semiconductor, Inc.
> */
> 
> -#include <common.h>
> #include <init.h>
> #include <asm/global_data.h>
> #include <asm/io.h>
> --
> 2.34.1

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h>
  2024-05-01  6:33 ` [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tony Dinh
@ 2024-05-01 13:49   ` Tom Rini
  0 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-01 13:49 UTC (permalink / raw)
  To: Tony Dinh; +Cc: u-boot

[-- Attachment #1: Type: text/plain, Size: 464 bytes --]

On Tue, Apr 30, 2024 at 11:33:01PM -0700, Tony Dinh wrote:

> Hi Tom,
> 
> This patch does not apply cleanly on the master branch. Perhaps this
> patch series has a dependency on another previous patch? Please see
> below at arch/arm/lib/bdinfo.c.

Yeah, sorry, this depends on the two previous series I've posted.
https://patchwork.ozlabs.org/project/uboot/list/?series=404691
https://patchwork.ozlabs.org/project/uboot/list/?series=404991

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 030/149] board: bsh: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 030/149] board: bsh: " Tom Rini
@ 2024-05-01 13:58   ` Michael Nazzareno Trimarchi
  0 siblings, 0 replies; 197+ messages in thread
From: Michael Nazzareno Trimarchi @ 2024-05-01 13:58 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

Hi

On Wed, May 1, 2024 at 4:43 AM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Michael Trimarchi <michael@amarulasolutions.com>
> ---
>  board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c | 1 -
>  board/bsh/imx6ulz_smm_m2/spl.c            | 1 -
>  board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c   | 1 -
>  3 files changed, 3 deletions(-)
>
> diff --git a/board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c b/board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c
> index c82eabbfbea1..c03e390762a9 100644
> --- a/board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c
> +++ b/board/bsh/imx6ulz_smm_m2/imx6ulz_smm_m2.c
> @@ -14,7 +14,6 @@
>  #include <asm/mach-imx/boot_mode.h>
>  #include <asm/global_data.h>
>  #include <asm/gpio.h>
> -#include <common.h>
>  #include <env.h>
>  #include <linux/sizes.h>
>
> diff --git a/board/bsh/imx6ulz_smm_m2/spl.c b/board/bsh/imx6ulz_smm_m2/spl.c
> index 5b4812e129e3..724841b57456 100644
> --- a/board/bsh/imx6ulz_smm_m2/spl.c
> +++ b/board/bsh/imx6ulz_smm_m2/spl.c
> @@ -1,6 +1,5 @@
>  // SPDX-License-Identifier: GPL-2.0+
>
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <hang.h>
>  #include <init.h>
> diff --git a/board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c b/board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c
> index 0ebf208be82a..c99896873991 100644
> --- a/board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c
> +++ b/board/bsh/imx8mn_smm_s2/imx8mn_smm_s2.c
> @@ -3,7 +3,6 @@
>   * Copyright 2021 Collabora Ltd.
>   */
>
> -#include <common.h>
>  #include <asm/arch/sys_proto.h>
>  #include <env.h>
>
> --
> 2.34.1
>

Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>


-- 
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael@amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info@amarulasolutions.com
www.amarulasolutions.com

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 083/149] board: lego: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 083/149] board: lego: " Tom Rini
@ 2024-05-01 15:28   ` David Lechner
  0 siblings, 0 replies; 197+ messages in thread
From: David Lechner @ 2024-05-01 15:28 UTC (permalink / raw)
  To: Tom Rini, u-boot

On 4/30/24 9:42 PM, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: David Lechner <david@lechnology.com>
> ---

Acked-by: David Lechner <david@lechnology.com>


^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 064/149] board: gateworks: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 064/149] board: gateworks: " Tom Rini
@ 2024-05-01 16:06   ` Tim Harvey
  0 siblings, 0 replies; 197+ messages in thread
From: Tim Harvey @ 2024-05-01 16:06 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

On Tue, Apr 30, 2024 at 7:44 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Tim Harvey <tharvey@gateworks.com>
> ---
>  board/gateworks/gw_ventana/common.c           | 1 -
>  board/gateworks/gw_ventana/eeprom.c           | 1 -
>  board/gateworks/gw_ventana/gw_ventana.c       | 1 -
>  board/gateworks/gw_ventana/gw_ventana_spl.c   | 2 +-
>  board/gateworks/venice/eeprom.c               | 1 -
>  board/gateworks/venice/lpddr4_timing_imx8mm.c | 1 -
>  board/gateworks/venice/spl.c                  | 1 -
>  7 files changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c
> index 74328b2e1b31..891d1b5ddcaa 100644
> --- a/board/gateworks/gw_ventana/common.c
> +++ b/board/gateworks/gw_ventana/common.c
> @@ -5,7 +5,6 @@
>   * Author: Tim Harvey <tharvey@gateworks.com>
>   */
>
> -#include <common.h>
>  #include <env.h>
>  #include <fsl_esdhc_imx.h>
>  #include <hwconfig.h>
> diff --git a/board/gateworks/gw_ventana/eeprom.c b/board/gateworks/gw_ventana/eeprom.c
> index e622a9ba9e4d..b37f19722491 100644
> --- a/board/gateworks/gw_ventana/eeprom.c
> +++ b/board/gateworks/gw_ventana/eeprom.c
> @@ -5,7 +5,6 @@
>   */
>
>  #include <command.h>
> -#include <common.h>
>  #include <gsc.h>
>  #include <hexdump.h>
>  #include <i2c.h>
> diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
> index 683def7e9f71..21a908c20dd5 100644
> --- a/board/gateworks/gw_ventana/gw_ventana.c
> +++ b/board/gateworks/gw_ventana/gw_ventana.c
> @@ -6,7 +6,6 @@
>   */
>
>  #include <command.h>
> -#include <common.h>
>  #include <fdt_support.h>
>  #include <gsc.h>
>  #include <hwconfig.h>
> diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c
> index 2f046c9c0b3e..3de4727b2edf 100644
> --- a/board/gateworks/gw_ventana/gw_ventana_spl.c
> +++ b/board/gateworks/gw_ventana/gw_ventana_spl.c
> @@ -4,7 +4,7 @@
>   * Author: Tim Harvey <tharvey@gateworks.com>
>   */
>
> -#include <common.h>
> +#include <config.h>
>  #include <env.h>
>  #include <gsc.h>
>  #include <hang.h>
> diff --git a/board/gateworks/venice/eeprom.c b/board/gateworks/venice/eeprom.c
> index 241be4ee630b..afaabf348793 100644
> --- a/board/gateworks/venice/eeprom.c
> +++ b/board/gateworks/venice/eeprom.c
> @@ -3,7 +3,6 @@
>   * Copyright 2021 Gateworks Corporation
>   */
>
> -#include <common.h>
>  #include <gsc.h>
>  #include <hexdump.h>
>  #include <i2c.h>
> diff --git a/board/gateworks/venice/lpddr4_timing_imx8mm.c b/board/gateworks/venice/lpddr4_timing_imx8mm.c
> index 78b431dc2844..3f2c090a94fc 100644
> --- a/board/gateworks/venice/lpddr4_timing_imx8mm.c
> +++ b/board/gateworks/venice/lpddr4_timing_imx8mm.c
> @@ -6,7 +6,6 @@
>   */
>
>  #include <linux/kernel.h>
> -#include <common.h>
>  #include <asm/arch/ddr.h>
>  #include <asm/arch/lpddr4_define.h>
>
> diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
> index b0a315ba9531..f10d310a46d4 100644
> --- a/board/gateworks/venice/spl.c
> +++ b/board/gateworks/venice/spl.c
> @@ -3,7 +3,6 @@
>   * Copyright 2021 Gateworks Corporation
>   */
>
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <hang.h>
>  #include <i2c.h>
> --
> 2.34.1
>

Acked-By: Tim Harvey <tharvey@gateworks.com>

Tim

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 010/149] board: Marvell: Remove <common.h> and add needed includes
  2024-05-01  2:40 ` [PATCH 010/149] board: Marvell: " Tom Rini
  2024-05-01  2:47   ` Chris Packham
@ 2024-05-01 20:20   ` Tony Dinh
  2024-05-02  6:02   ` Stefan Roese
  2 siblings, 0 replies; 197+ messages in thread
From: Tony Dinh @ 2024-05-01 20:20 UTC (permalink / raw)
  To: Tom Rini
  Cc: u-boot, Stefan Roese, Chris Packham, Jason Cooper, Siddarth Gore,
	Aaron Williams

On Tue, Apr 30, 2024 at 7:43 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Stefan Roese <sr@denx.de>
> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Cc: Tony Dinh <mibodhi@gmail.com>
> Cc: Jason Cooper <u-boot@lakedaemon.net>
> Cc: Siddarth Gore <gores@marvell.com>
> Cc: Aaron Williams <awilliams@marvell.com>

Reviewed-by: Tony Dinh <mibodhi@gmail.com>

> ---
>  arch/arm/mach-kirkwood/include/mach/mpp.h     | 2 ++
>  board/Marvell/db-88f6720/db-88f6720.c         | 1 -
>  board/Marvell/db-88f6820-amc/db-88f6820-amc.c | 2 +-
>  board/Marvell/db-88f6820-gp/db-88f6820-gp.c   | 2 +-
>  board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c   | 1 -
>  board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c   | 1 -
>  board/Marvell/dreamplug/dreamplug.c           | 1 -
>  board/Marvell/guruplug/guruplug.c             | 1 -
>  board/Marvell/mvebu_alleycat-5/board.c        | 2 +-
>  board/Marvell/mvebu_armada-37xx/board.c       | 2 +-
>  board/Marvell/mvebu_armada-8k/board.c         | 2 +-
>  board/Marvell/octeontx2/soc-utils.c           | 1 -
>  board/Marvell/openrd/openrd.c                 | 1 -
>  board/Marvell/sheevaplug/sheevaplug.c         | 1 -
>  14 files changed, 7 insertions(+), 13 deletions(-)
>
> diff --git a/arch/arm/mach-kirkwood/include/mach/mpp.h b/arch/arm/mach-kirkwood/include/mach/mpp.h
> index 4d1f58c0cbdf..e2757942590b 100644
> --- a/arch/arm/mach-kirkwood/include/mach/mpp.h
> +++ b/arch/arm/mach-kirkwood/include/mach/mpp.h
> @@ -8,6 +8,8 @@
>  #ifndef __KIRKWOOD_MPP_H
>  #define __KIRKWOOD_MPP_H
>
> +#include <linux/types.h>
> +
>  #define MPP(_num, _sel, _in, _out, _F6180, _F6190, _F6192, _F6281) ( \
>         /* MPP number */                ((_num) & 0xff) | \
>         /* MPP select value */          (((_sel) & 0xf) << 8) | \
> diff --git a/board/Marvell/db-88f6720/db-88f6720.c b/board/Marvell/db-88f6720/db-88f6720.c
> index 26c30647fbb0..920421366f11 100644
> --- a/board/Marvell/db-88f6720/db-88f6720.c
> +++ b/board/Marvell/db-88f6720/db-88f6720.c
> @@ -3,7 +3,6 @@
>   * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <miiphy.h>
>  #include <net.h>
> diff --git a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> index 122c63d11f99..0f92cc385bc8 100644
> --- a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> +++ b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> @@ -3,7 +3,7 @@
>   * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>   */
>
> -#include <common.h>
> +#include <config.h>
>  #include <i2c.h>
>  #include <init.h>
>  #include <miiphy.h>
> diff --git a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> index 1edc1cb6515c..8f8b2720107a 100644
> --- a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> +++ b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> @@ -3,7 +3,7 @@
>   * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>   */
>
> -#include <common.h>
> +#include <config.h>
>  #include <i2c.h>
>  #include <init.h>
>  #include <miiphy.h>
> diff --git a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> index 9e1fdecfca4d..6bca1f91a0a4 100644
> --- a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> +++ b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> @@ -3,7 +3,6 @@
>   * Copyright (C) 2014 Stefan Roese <sr@denx.de>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <miiphy.h>
>  #include <net.h>
> diff --git a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> index 0abdca1cd210..a7a84798a53b 100644
> --- a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> +++ b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> @@ -3,7 +3,6 @@
>   * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>   */
>
> -#include <common.h>
>  #include <i2c.h>
>  #include <init.h>
>  #include <asm/global_data.h>
> diff --git a/board/Marvell/dreamplug/dreamplug.c b/board/Marvell/dreamplug/dreamplug.c
> index d15faa1cb7ff..381275061318 100644
> --- a/board/Marvell/dreamplug/dreamplug.c
> +++ b/board/Marvell/dreamplug/dreamplug.c
> @@ -8,7 +8,6 @@
>   * Written-by: Siddarth Gore <gores@marvell.com>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <netdev.h>
>  #include <asm/arch/cpu.h>
> diff --git a/board/Marvell/guruplug/guruplug.c b/board/Marvell/guruplug/guruplug.c
> index ea87ded222e6..7c3cea22b936 100644
> --- a/board/Marvell/guruplug/guruplug.c
> +++ b/board/Marvell/guruplug/guruplug.c
> @@ -5,7 +5,6 @@
>   * Written-by: Siddarth Gore <gores@marvell.com>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <miiphy.h>
>  #include <net.h>
> diff --git a/board/Marvell/mvebu_alleycat-5/board.c b/board/Marvell/mvebu_alleycat-5/board.c
> index 0c4f8e03b859..c1b7cc3b613c 100644
> --- a/board/Marvell/mvebu_alleycat-5/board.c
> +++ b/board/Marvell/mvebu_alleycat-5/board.c
> @@ -1,6 +1,6 @@
>  // SPDX-License-Identifier: GPL-2.0+
>
> -#include <common.h>
> +#include <config.h>
>  #include <asm/global_data.h>
>
>  DECLARE_GLOBAL_DATA_PTR;
> diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c
> index 1685b12b8478..df3fb6d21645 100644
> --- a/board/Marvell/mvebu_armada-37xx/board.c
> +++ b/board/Marvell/mvebu_armada-37xx/board.c
> @@ -3,7 +3,7 @@
>   * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>   */
>
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <dm/device-internal.h>
>  #include <env.h>
> diff --git a/board/Marvell/mvebu_armada-8k/board.c b/board/Marvell/mvebu_armada-8k/board.c
> index a8899af6e5af..6d7042117424 100644
> --- a/board/Marvell/mvebu_armada-8k/board.c
> +++ b/board/Marvell/mvebu_armada-8k/board.c
> @@ -3,7 +3,7 @@
>   * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>   */
>
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <i2c.h>
>  #include <init.h>
> diff --git a/board/Marvell/octeontx2/soc-utils.c b/board/Marvell/octeontx2/soc-utils.c
> index 43a19a90717c..64eb95f3b400 100644
> --- a/board/Marvell/octeontx2/soc-utils.c
> +++ b/board/Marvell/octeontx2/soc-utils.c
> @@ -5,7 +5,6 @@
>   * https://spdx.org/licenses
>   */
>
> -#include <common.h>
>  #include <dm.h>
>  #include <malloc.h>
>  #include <errno.h>
> diff --git a/board/Marvell/openrd/openrd.c b/board/Marvell/openrd/openrd.c
> index 581e2e084d6f..dda56a582b3e 100644
> --- a/board/Marvell/openrd/openrd.c
> +++ b/board/Marvell/openrd/openrd.c
> @@ -10,7 +10,6 @@
>   * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <miiphy.h>
>  #include <net.h>
> diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c
> index 26ee39ef77f9..23e761d5febf 100644
> --- a/board/Marvell/sheevaplug/sheevaplug.c
> +++ b/board/Marvell/sheevaplug/sheevaplug.c
> @@ -6,7 +6,6 @@
>   * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <netdev.h>
>  #include <asm/global_data.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 011/149] board: Seagate: Remove <common.h> and add needed includes
  2024-05-01  2:40 ` [PATCH 011/149] board: Seagate: " Tom Rini
@ 2024-05-01 20:21   ` Tony Dinh
  0 siblings, 0 replies; 197+ messages in thread
From: Tony Dinh @ 2024-05-01 20:21 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Evgeni Dobrev

On Tue, Apr 30, 2024 at 7:43 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Tony Dinh <mibodhi@gmail.com>
> Cc: Evgeni Dobrev <evgeni@studio-punkt.com>

Reviewed-by: Tony Dinh <mibodhi@gmail.com>

> ---
>  board/Seagate/dockstar/dockstar.c     | 1 -
>  board/Seagate/goflexhome/goflexhome.c | 1 -
>  board/Seagate/nas220/nas220.c         | 1 -
>  3 files changed, 3 deletions(-)
>
> diff --git a/board/Seagate/dockstar/dockstar.c b/board/Seagate/dockstar/dockstar.c
> index d72e3ef24ee6..e6ec00a9c6cc 100644
> --- a/board/Seagate/dockstar/dockstar.c
> +++ b/board/Seagate/dockstar/dockstar.c
> @@ -9,7 +9,6 @@
>   * Marvell Semiconductor <www.marvell.com>
>   */
>
> -#include <common.h>
>  #include <bootstage.h>
>  #include <init.h>
>  #include <netdev.h>
> diff --git a/board/Seagate/goflexhome/goflexhome.c b/board/Seagate/goflexhome/goflexhome.c
> index caea89c10e07..b2d0ad8c3f22 100644
> --- a/board/Seagate/goflexhome/goflexhome.c
> +++ b/board/Seagate/goflexhome/goflexhome.c
> @@ -12,7 +12,6 @@
>   * Marvell Semiconductor <www.marvell.com>
>   */
>
> -#include <common.h>
>  #include <bootstage.h>
>  #include <init.h>
>  #include <netdev.h>
> diff --git a/board/Seagate/nas220/nas220.c b/board/Seagate/nas220/nas220.c
> index cd2bbdad1cd6..fa7553250d1c 100644
> --- a/board/Seagate/nas220/nas220.c
> +++ b/board/Seagate/nas220/nas220.c
> @@ -8,7 +8,6 @@
>   * Marvell Semiconductor <www.marvell.com>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <miiphy.h>
>  #include <net.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 039/149] board: cloudengines: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 039/149] board: cloudengines: " Tom Rini
@ 2024-05-01 20:25   ` Tony Dinh
  0 siblings, 0 replies; 197+ messages in thread
From: Tony Dinh @ 2024-05-01 20:25 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Dave Purdy

On Tue, Apr 30, 2024 at 7:44 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Dave Purdy <david.c.purdy@gmail.com>
> Cc: Tony Dinh <mibodhi@gmail.com>

Reviewed-by: Tony Dinh <mibodhi@gmail.com>

> ---
>  board/cloudengines/pogo_e02/pogo_e02.c | 1 -
>  board/cloudengines/pogo_v4/pogo_v4.c   | 1 -
>  2 files changed, 2 deletions(-)
>
> diff --git a/board/cloudengines/pogo_e02/pogo_e02.c b/board/cloudengines/pogo_e02/pogo_e02.c
> index 59e1218b411a..48eee67129fa 100644
> --- a/board/cloudengines/pogo_e02/pogo_e02.c
> +++ b/board/cloudengines/pogo_e02/pogo_e02.c
> @@ -10,7 +10,6 @@
>   * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <log.h>
>  #include <netdev.h>
> diff --git a/board/cloudengines/pogo_v4/pogo_v4.c b/board/cloudengines/pogo_v4/pogo_v4.c
> index 61ce0d59c77e..c8ad563f721d 100644
> --- a/board/cloudengines/pogo_v4/pogo_v4.c
> +++ b/board/cloudengines/pogo_v4/pogo_v4.c
> @@ -11,7 +11,6 @@
>   * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
>   */
>
> -#include <common.h>
>  #include <netdev.h>
>  #include <asm/arch/cpu.h>
>  #include <asm/arch/soc.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 075/149] board: iomega: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 075/149] board: iomega: " Tom Rini
@ 2024-05-01 20:25   ` Tony Dinh
  0 siblings, 0 replies; 197+ messages in thread
From: Tony Dinh @ 2024-05-01 20:25 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Luka Perkov

On Tue, Apr 30, 2024 at 7:44 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Tony Dinh <mibodhi@gmail.com>
> Cc: Luka Perkov <luka@openwrt.org>

Reviewed-by: Tony Dinh <mibodhi@gmail.com>

> ---
>  board/iomega/iconnect/iconnect.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/board/iomega/iconnect/iconnect.c b/board/iomega/iconnect/iconnect.c
> index 038716020019..00b08987e9e8 100644
> --- a/board/iomega/iconnect/iconnect.c
> +++ b/board/iomega/iconnect/iconnect.c
> @@ -6,7 +6,6 @@
>   * Luka Perkov <luka@openwrt.org>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <netdev.h>
>  #include <asm/arch/cpu.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 149/149] board: zyxel: Remove <common.h> and add needed includes
  2024-05-01  2:43 ` [PATCH 149/149] board: zyxel: " Tom Rini
@ 2024-05-01 20:29   ` Tony Dinh
  0 siblings, 0 replies; 197+ messages in thread
From: Tony Dinh @ 2024-05-01 20:29 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Luka Perkov

On Tue, Apr 30, 2024 at 7:46 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Tony Dinh <mibodhi@gmail.com>
> Cc: Luka Perkov <luka.perkov@sartura.hr>

Reviewed-by: Tony Dinh <mibodhi@gmail.com>
Tested-by: Tony Dinh <mibodhi@gmail.com> # on Zyxel NSA310s

> ---
>  board/zyxel/nsa310s/nsa310s.c | 1 -
>  board/zyxel/nsa325/nsa325.c   | 1 -
>  2 files changed, 2 deletions(-)
>
> diff --git a/board/zyxel/nsa310s/nsa310s.c b/board/zyxel/nsa310s/nsa310s.c
> index b3ea6608914a..d018b5738242 100644
> --- a/board/zyxel/nsa310s/nsa310s.c
> +++ b/board/zyxel/nsa310s/nsa310s.c
> @@ -4,7 +4,6 @@
>   * Copyright (C) 2015 Gerald Kerma <dreagle@doukki.net>
>   */
>
> -#include <common.h>
>  #include <init.h>
>  #include <netdev.h>
>  #include <asm/arch/cpu.h>
> diff --git a/board/zyxel/nsa325/nsa325.c b/board/zyxel/nsa325/nsa325.c
> index f5f63ee5d3b0..38340b33c8bf 100644
> --- a/board/zyxel/nsa325/nsa325.c
> +++ b/board/zyxel/nsa325/nsa325.c
> @@ -14,7 +14,6 @@
>   * Marvell Semiconductor <www.marvell.com>
>   */
>
> -#include <common.h>
>  #include <asm/arch/soc.h>
>  #include <asm/arch/mpp.h>
>  #include <netdev.h>
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 102/149] board: out4: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 102/149] board: out4: " Tom Rini
@ 2024-05-01 21:30   ` Oleh Kravchenko
  0 siblings, 0 replies; 197+ messages in thread
From: Oleh Kravchenko @ 2024-05-01 21:30 UTC (permalink / raw)
  To: Tom Rini, u-boot

ACK

01.05.24 05:42, Tom Rini:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Oleh Kravchenko <oleg@kaa.org.ua>
> ---
>   board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c b/board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c
> index edb200e9e55b..10469aecd0bb 100644
> --- a/board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c
> +++ b/board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c
> @@ -5,7 +5,6 @@
>   #include <asm/arch/sys_proto.h>
>   #include <asm/global_data.h>
>   #include <asm/mach-imx/boot_mode.h>
> -#include <common.h>
>   #include <env.h>
>   
>   DECLARE_GLOBAL_DATA_PTR;

^ permalink raw reply	[flat|nested] 197+ messages in thread

* [PATCHv2 066/149] board: ge: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 066/149] board: ge: " Tom Rini
@ 2024-05-01 23:58   ` Tom Rini
  2024-05-02  8:57     ` Ian Ray
  0 siblings, 1 reply; 197+ messages in thread
From: Tom Rini @ 2024-05-01 23:58 UTC (permalink / raw)
  To: u-boot; +Cc: Huan 'Kitty' Wang, Ian Ray, Martyn Welch

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Changes in v2:
- Remove "common.h" include as well.

Cc: "Huan 'Kitty' Wang" <HuanWang@gehealthcare.com>
Cc: Ian Ray <ian.ray@gehealthcare.com>
Cc: Martyn Welch <martyn.welch@collabora.com>

 board/ge/b1x5v2/b1x5v2.c         | 1 -
 board/ge/common/ge_rtc.c         | 1 -
 board/ge/common/vpd_reader.h     | 2 +-
 board/ge/mx53ppd/mx53ppd.c       | 1 -
 board/ge/mx53ppd/mx53ppd_video.c | 1 -
 5 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/board/ge/b1x5v2/b1x5v2.c b/board/ge/b1x5v2/b1x5v2.c
index a2cbd1512e92..031773bc5ef3 100644
--- a/board/ge/b1x5v2/b1x5v2.c
+++ b/board/ge/b1x5v2/b1x5v2.c
@@ -17,7 +17,6 @@
 #include <asm/io.h>
 #include <asm/mach-imx/video.h>
 #include <command.h>
-#include <common.h>
 #include <i2c.h>
 #include <input.h>
 #include <ipu_pixfmt.h>
diff --git a/board/ge/common/ge_rtc.c b/board/ge/common/ge_rtc.c
index 6437afc7bd0a..5c62ecca8c89 100644
--- a/board/ge/common/ge_rtc.c
+++ b/board/ge/common/ge_rtc.c
@@ -3,7 +3,6 @@
  * Copyright 2017 General Electric Company
  */
 
-#include <common.h>
 #include <env.h>
 #include <dm/uclass.h>
 #include <rtc.h>
diff --git a/board/ge/common/vpd_reader.h b/board/ge/common/vpd_reader.h
index 0c51dc57e902..d32c18da351c 100644
--- a/board/ge/common/vpd_reader.h
+++ b/board/ge/common/vpd_reader.h
@@ -3,7 +3,7 @@
  * Copyright 2016 General Electric Company
  */
 
-#include "common.h"
+#include <linux/types.h>
 
 struct vpd_cache;
 
diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c
index cc462d53da6a..9396d43f8add 100644
--- a/board/ge/mx53ppd/mx53ppd.c
+++ b/board/ge/mx53ppd/mx53ppd.c
@@ -8,7 +8,6 @@
  * Jason Liu <r64343@freescale.com>
  */
 
-#include <common.h>
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/ge/mx53ppd/mx53ppd_video.c b/board/ge/mx53ppd/mx53ppd_video.c
index 4e2c6ebde73c..eb4dd758b3b5 100644
--- a/board/ge/mx53ppd/mx53ppd_video.c
+++ b/board/ge/mx53ppd/mx53ppd_video.c
@@ -8,7 +8,6 @@
  * Fabio Estevam <fabio.estevam@freescale.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <linux/list.h>
 #include <asm/arch/iomux-mx53.h>
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 197+ messages in thread

* Re: [PATCH 070/149] board: hisilicon: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 070/149] board: hisilicon: " Tom Rini
@ 2024-05-02  0:45   ` Igor Opaniuk
  0 siblings, 0 replies; 197+ messages in thread
From: Igor Opaniuk @ 2024-05-02  0:45 UTC (permalink / raw)
  To: Tom Rini
  Cc: u-boot, Peter Griffin, Manivannan Sadhasivam,
	Jorge Ramirez-Ortiz, Shawn Guo

On Tue, Apr 30, 2024 at 7:44 PM Tom Rini <trini@konsulko.com> wrote:
>
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Peter Griffin <peter.griffin@linaro.org>
> Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> Cc: Jorge Ramirez-Ortiz <jorge.ramirez.ortiz@gmail.com>
> Cc: Shawn Guo <shawn.guo@linaro.org>
> Cc: Igor Opaniuk <igor.opaniuk@gmail.com>
> ---
>  board/hisilicon/hikey/hikey.c       | 1 -
>  board/hisilicon/hikey960/hikey960.c | 1 -
>  board/hisilicon/poplar/poplar.c     | 1 -
>  3 files changed, 3 deletions(-)
>
> diff --git a/board/hisilicon/hikey/hikey.c b/board/hisilicon/hikey/hikey.c
> index c9a2d60ee56c..95a831efcafd 100644
> --- a/board/hisilicon/hikey/hikey.c
> +++ b/board/hisilicon/hikey/hikey.c
> @@ -3,7 +3,6 @@
>   * (C) Copyright 2015 Linaro
>   * Peter Griffin <peter.griffin@linaro.org>
>   */
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <dm.h>
>  #include <fdt_support.h>
> diff --git a/board/hisilicon/hikey960/hikey960.c b/board/hisilicon/hikey960/hikey960.c
> index f41fabbad099..5029f4edb2af 100644
> --- a/board/hisilicon/hikey960/hikey960.c
> +++ b/board/hisilicon/hikey960/hikey960.c
> @@ -4,7 +4,6 @@
>   * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
>   */
>
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <dm.h>
>  #include <errno.h>
> diff --git a/board/hisilicon/poplar/poplar.c b/board/hisilicon/poplar/poplar.c
> index b89e7e869766..c3ea080ff75a 100644
> --- a/board/hisilicon/poplar/poplar.c
> +++ b/board/hisilicon/poplar/poplar.c
> @@ -4,7 +4,6 @@
>   * Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
>   */
>
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <dm.h>
>  #include <init.h>
> --
> 2.34.1
>

Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
-- 
Best regards - Atentamente - Meilleures salutations

Igor Opaniuk

mailto: igor.opaniuk@gmail.com
skype: igor.opanyuk
https://www.linkedin.com/in/iopaniuk

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 010/149] board: Marvell: Remove <common.h> and add needed includes
  2024-05-01  2:40 ` [PATCH 010/149] board: Marvell: " Tom Rini
  2024-05-01  2:47   ` Chris Packham
  2024-05-01 20:20   ` Tony Dinh
@ 2024-05-02  6:02   ` Stefan Roese
  2 siblings, 0 replies; 197+ messages in thread
From: Stefan Roese @ 2024-05-02  6:02 UTC (permalink / raw)
  To: Tom Rini, u-boot
  Cc: Chris Packham, Tony Dinh, Jason Cooper, Siddarth Gore, Aaron Williams

On 5/1/24 04:40, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Stefan Roese <sr@denx.de>
> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Cc: Tony Dinh <mibodhi@gmail.com>
> Cc: Jason Cooper <u-boot@lakedaemon.net>
> Cc: Siddarth Gore <gores@marvell.com>
> Cc: Aaron Williams <awilliams@marvell.com>
> ---
>   arch/arm/mach-kirkwood/include/mach/mpp.h     | 2 ++
>   board/Marvell/db-88f6720/db-88f6720.c         | 1 -
>   board/Marvell/db-88f6820-amc/db-88f6820-amc.c | 2 +-
>   board/Marvell/db-88f6820-gp/db-88f6820-gp.c   | 2 +-
>   board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c   | 1 -
>   board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c   | 1 -
>   board/Marvell/dreamplug/dreamplug.c           | 1 -
>   board/Marvell/guruplug/guruplug.c             | 1 -
>   board/Marvell/mvebu_alleycat-5/board.c        | 2 +-
>   board/Marvell/mvebu_armada-37xx/board.c       | 2 +-
>   board/Marvell/mvebu_armada-8k/board.c         | 2 +-
>   board/Marvell/octeontx2/soc-utils.c           | 1 -
>   board/Marvell/openrd/openrd.c                 | 1 -
>   board/Marvell/sheevaplug/sheevaplug.c         | 1 -
>   14 files changed, 7 insertions(+), 13 deletions(-)

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

> diff --git a/arch/arm/mach-kirkwood/include/mach/mpp.h b/arch/arm/mach-kirkwood/include/mach/mpp.h
> index 4d1f58c0cbdf..e2757942590b 100644
> --- a/arch/arm/mach-kirkwood/include/mach/mpp.h
> +++ b/arch/arm/mach-kirkwood/include/mach/mpp.h
> @@ -8,6 +8,8 @@
>   #ifndef __KIRKWOOD_MPP_H
>   #define __KIRKWOOD_MPP_H
>   
> +#include <linux/types.h>
> +
>   #define MPP(_num, _sel, _in, _out, _F6180, _F6190, _F6192, _F6281) ( \
>   	/* MPP number */		((_num) & 0xff) | \
>   	/* MPP select value */		(((_sel) & 0xf) << 8) | \
> diff --git a/board/Marvell/db-88f6720/db-88f6720.c b/board/Marvell/db-88f6720/db-88f6720.c
> index 26c30647fbb0..920421366f11 100644
> --- a/board/Marvell/db-88f6720/db-88f6720.c
> +++ b/board/Marvell/db-88f6720/db-88f6720.c
> @@ -3,7 +3,6 @@
>    * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> index 122c63d11f99..0f92cc385bc8 100644
> --- a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> +++ b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <i2c.h>
>   #include <init.h>
>   #include <miiphy.h>
> diff --git a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> index 1edc1cb6515c..8f8b2720107a 100644
> --- a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> +++ b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <i2c.h>
>   #include <init.h>
>   #include <miiphy.h>
> diff --git a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> index 9e1fdecfca4d..6bca1f91a0a4 100644
> --- a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> +++ b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
> @@ -3,7 +3,6 @@
>    * Copyright (C) 2014 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> index 0abdca1cd210..a7a84798a53b 100644
> --- a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> +++ b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
> @@ -3,7 +3,6 @@
>    * Copyright (C) 2015 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
>   #include <i2c.h>
>   #include <init.h>
>   #include <asm/global_data.h>
> diff --git a/board/Marvell/dreamplug/dreamplug.c b/board/Marvell/dreamplug/dreamplug.c
> index d15faa1cb7ff..381275061318 100644
> --- a/board/Marvell/dreamplug/dreamplug.c
> +++ b/board/Marvell/dreamplug/dreamplug.c
> @@ -8,7 +8,6 @@
>    * Written-by: Siddarth Gore <gores@marvell.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <netdev.h>
>   #include <asm/arch/cpu.h>
> diff --git a/board/Marvell/guruplug/guruplug.c b/board/Marvell/guruplug/guruplug.c
> index ea87ded222e6..7c3cea22b936 100644
> --- a/board/Marvell/guruplug/guruplug.c
> +++ b/board/Marvell/guruplug/guruplug.c
> @@ -5,7 +5,6 @@
>    * Written-by: Siddarth Gore <gores@marvell.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/Marvell/mvebu_alleycat-5/board.c b/board/Marvell/mvebu_alleycat-5/board.c
> index 0c4f8e03b859..c1b7cc3b613c 100644
> --- a/board/Marvell/mvebu_alleycat-5/board.c
> +++ b/board/Marvell/mvebu_alleycat-5/board.c
> @@ -1,6 +1,6 @@
>   // SPDX-License-Identifier: GPL-2.0+
>   
> -#include <common.h>
> +#include <config.h>
>   #include <asm/global_data.h>
>   
>   DECLARE_GLOBAL_DATA_PTR;
> diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c
> index 1685b12b8478..df3fb6d21645 100644
> --- a/board/Marvell/mvebu_armada-37xx/board.c
> +++ b/board/Marvell/mvebu_armada-37xx/board.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <dm.h>
>   #include <dm/device-internal.h>
>   #include <env.h>
> diff --git a/board/Marvell/mvebu_armada-8k/board.c b/board/Marvell/mvebu_armada-8k/board.c
> index a8899af6e5af..6d7042117424 100644
> --- a/board/Marvell/mvebu_armada-8k/board.c
> +++ b/board/Marvell/mvebu_armada-8k/board.c
> @@ -3,7 +3,7 @@
>    * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <dm.h>
>   #include <i2c.h>
>   #include <init.h>
> diff --git a/board/Marvell/octeontx2/soc-utils.c b/board/Marvell/octeontx2/soc-utils.c
> index 43a19a90717c..64eb95f3b400 100644
> --- a/board/Marvell/octeontx2/soc-utils.c
> +++ b/board/Marvell/octeontx2/soc-utils.c
> @@ -5,7 +5,6 @@
>    * https://spdx.org/licenses
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <malloc.h>
>   #include <errno.h>
> diff --git a/board/Marvell/openrd/openrd.c b/board/Marvell/openrd/openrd.c
> index 581e2e084d6f..dda56a582b3e 100644
> --- a/board/Marvell/openrd/openrd.c
> +++ b/board/Marvell/openrd/openrd.c
> @@ -10,7 +10,6 @@
>    * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <miiphy.h>
>   #include <net.h>
> diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c
> index 26ee39ef77f9..23e761d5febf 100644
> --- a/board/Marvell/sheevaplug/sheevaplug.c
> +++ b/board/Marvell/sheevaplug/sheevaplug.c
> @@ -6,7 +6,6 @@
>    * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <netdev.h>
>   #include <asm/global_data.h>

Viele Grüße,
Stefan Roese

-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 025/149] board: beckhoff: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 025/149] board: beckhoff: " Tom Rini
@ 2024-05-02  6:47   ` Patrick Brünn
  0 siblings, 0 replies; 197+ messages in thread
From: Patrick Brünn @ 2024-05-02  6:47 UTC (permalink / raw)
  To: trini, u-boot

Tested-by: Patrick Bruenn <p.bruenn@beckhoff.com>


On Tue, 2024-04-30 at 20:41 -0600, Tom Rini wrote:
> CAUTION: External Email!!
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Patrick Bruenn <p.bruenn@beckhoff.com>
> ---
>  board/beckhoff/mx53cx9020/mx53cx9020.c       | 1 -
>  board/beckhoff/mx53cx9020/mx53cx9020_video.c | 1 -
>  2 files changed, 2 deletions(-)
>
> diff --git a/board/beckhoff/mx53cx9020/mx53cx9020.c b/board/beckhoff/mx53cx9020/mx53cx9020.c
> index e7b131836b61..3a766728a6f7 100644
> --- a/board/beckhoff/mx53cx9020/mx53cx9020.c
> +++ b/board/beckhoff/mx53cx9020/mx53cx9020.c
> @@ -7,7 +7,6 @@
>   * Copyright (C) 2011 Freescale Semiconductor, Inc.
>   */
>
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <init.h>
>  #include <asm/arch/sys_proto.h>
> diff --git a/board/beckhoff/mx53cx9020/mx53cx9020_video.c b/board/beckhoff/mx53cx9020/mx53cx9020_video.c
> index bf4729025622..fd28a70f4d72 100644
> --- a/board/beckhoff/mx53cx9020/mx53cx9020_video.c
> +++ b/board/beckhoff/mx53cx9020/mx53cx9020_video.c
> @@ -7,7 +7,6 @@
>   * Copyright (C) 2012 Freescale Semiconductor, Inc.
>   */
>
> -#include <common.h>
>  #include <asm/arch/iomux-mx53.h>
>  #include <asm/gpio.h>
>  #include <asm/mach-imx/video.h>

This email contains confidential information. If you have received it in error, you must not read, use, copy or pass on this e-mail or its attachments. If you have received the e-mail in error, please inform me immediately by reply e-mail and then delete this e-mail from your system. Thank you

Diese E-Mail enthält vertrauliche Informationen. Sollten Sie sie irrtümlich erhalten haben, dürfen Sie diese E-Mail oder ihre Anhänge nicht lesen, verwenden, kopieren oder weitergeben. Sollten Sie die Mail versehentlich erhalten haben, teilen Sie mir dies bitte umgehend per Antwort-E-Mail mit und löschen Sie diese E-Mail dann aus Ihrem System. Vielen Dank

Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans Beckhoff
Registered office: Verl, Germany | Register court: Guetersloh HRA 7075



^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 040/149] board: cobra5272: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 040/149] board: cobra5272: " Tom Rini
@ 2024-05-02  6:47   ` Angelo Dureghello
  0 siblings, 0 replies; 197+ messages in thread
From: Angelo Dureghello @ 2024-05-02  6:47 UTC (permalink / raw)
  To: Tom Rini, u-boot

Hi Tom,

Acked-by:Angelo Dureghello <angelo@kernel-space.org>

On 01/05/24 4:41 AM, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Angelo Dureghello <angelo@kernel-space.org>
> ---
>   board/cobra5272/cobra5272.c | 2 +-
>   board/cobra5272/flash.c     | 6 +++++-
>   2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/board/cobra5272/cobra5272.c b/board/cobra5272/cobra5272.c
> index 69a9df942311..774aa82b57fe 100644
> --- a/board/cobra5272/cobra5272.c
> +++ b/board/cobra5272/cobra5272.c
> @@ -4,7 +4,7 @@
>    * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <init.h>
>   #include <asm/global_data.h>
>   #include <asm/immap.h>
> diff --git a/board/cobra5272/flash.c b/board/cobra5272/flash.c
> index 8416af163ad1..157b71da85e8 100644
> --- a/board/cobra5272/flash.c
> +++ b/board/cobra5272/flash.c
> @@ -4,13 +4,17 @@
>    * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <console.h>
>   #include <cpu_func.h>
>   #include <flash.h>
>   #include <irq_func.h>
> +#include <stdio.h>
> +#include <time.h>
>   #include <uuid.h>
> +#include <vsprintf.h>
>   #include <linux/delay.h>
> +#include <linux/string.h>
>   
>   #define PHYS_FLASH_1 CFG_SYS_FLASH_BASE
>   #define FLASH_BANK_SIZE 0x200000

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 080/149] board: kontron: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 080/149] board: kontron: " Tom Rini
@ 2024-05-02  7:18   ` Michael Walle
  2024-05-06  7:17   ` Frieder Schrempf
  1 sibling, 0 replies; 197+ messages in thread
From: Michael Walle @ 2024-05-02  7:18 UTC (permalink / raw)
  To: Tom Rini, u-boot; +Cc: Heiko Thiery, Frieder Schrempf

On Wed May 1, 2024 at 4:42 AM CEST, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by: Michael Walle <michael@walle.cc>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 032/149] board: buffalo: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 032/149] board: buffalo: " Tom Rini
@ 2024-05-02  7:18   ` Michael Walle
  0 siblings, 0 replies; 197+ messages in thread
From: Michael Walle @ 2024-05-02  7:18 UTC (permalink / raw)
  To: Tom Rini, u-boot

On Wed May 1, 2024 at 4:41 AM CEST, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by: Michael Walle <michael@walle.cc>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 073/149] board: intel: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 073/149] board: intel: " Tom Rini
@ 2024-05-02  7:20   ` Andy Shevchenko
  0 siblings, 0 replies; 197+ messages in thread
From: Andy Shevchenko @ 2024-05-02  7:20 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Bin Meng, Simon Glass, Aiden Park

On Tue, Apr 30, 2024 at 08:42:00PM -0600, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.

Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCHv2 066/149] board: ge: Remove <common.h> and add needed includes
  2024-05-01 23:58   ` [PATCHv2 " Tom Rini
@ 2024-05-02  8:57     ` Ian Ray
  0 siblings, 0 replies; 197+ messages in thread
From: Ian Ray @ 2024-05-02  8:57 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Huan 'Kitty' Wang, Martyn Welch

On Wed, May 01, 2024 at 05:58:49PM -0600, Tom Rini wrote:
> 
> WARNING: This email originated from outside of GE HealthCare. Please validate the sender's email address before clicking on links or attachments as they may not be safe.
> 
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Reviewed-by: Ian Ray <ian.ray@gehealthcare.com>

> ---
> Changes in v2:
> - Remove "common.h" include as well.
> 
> Cc: "Huan 'Kitty' Wang" <HuanWang@gehealthcare.com>
> Cc: Ian Ray <ian.ray@gehealthcare.com>
> Cc: Martyn Welch <martyn.welch@collabora.com>
> 
>  board/ge/b1x5v2/b1x5v2.c         | 1 -
>  board/ge/common/ge_rtc.c         | 1 -
>  board/ge/common/vpd_reader.h     | 2 +-
>  board/ge/mx53ppd/mx53ppd.c       | 1 -
>  board/ge/mx53ppd/mx53ppd_video.c | 1 -
>  5 files changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/board/ge/b1x5v2/b1x5v2.c b/board/ge/b1x5v2/b1x5v2.c
> index a2cbd1512e92..031773bc5ef3 100644
> --- a/board/ge/b1x5v2/b1x5v2.c
> +++ b/board/ge/b1x5v2/b1x5v2.c
> @@ -17,7 +17,6 @@
>  #include <asm/io.h>
>  #include <asm/mach-imx/video.h>
>  #include <command.h>
> -#include <common.h>
>  #include <i2c.h>
>  #include <input.h>
>  #include <ipu_pixfmt.h>
> diff --git a/board/ge/common/ge_rtc.c b/board/ge/common/ge_rtc.c
> index 6437afc7bd0a..5c62ecca8c89 100644
> --- a/board/ge/common/ge_rtc.c
> +++ b/board/ge/common/ge_rtc.c
> @@ -3,7 +3,6 @@
>   * Copyright 2017 General Electric Company
>   */
> 
> -#include <common.h>
>  #include <env.h>
>  #include <dm/uclass.h>
>  #include <rtc.h>
> diff --git a/board/ge/common/vpd_reader.h b/board/ge/common/vpd_reader.h
> index 0c51dc57e902..d32c18da351c 100644
> --- a/board/ge/common/vpd_reader.h
> +++ b/board/ge/common/vpd_reader.h
> @@ -3,7 +3,7 @@
>   * Copyright 2016 General Electric Company
>   */
> 
> -#include "common.h"
> +#include <linux/types.h>
> 
>  struct vpd_cache;
> 
> diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c
> index cc462d53da6a..9396d43f8add 100644
> --- a/board/ge/mx53ppd/mx53ppd.c
> +++ b/board/ge/mx53ppd/mx53ppd.c
> @@ -8,7 +8,6 @@
>   * Jason Liu <r64343@freescale.com>
>   */
> 
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
> diff --git a/board/ge/mx53ppd/mx53ppd_video.c b/board/ge/mx53ppd/mx53ppd_video.c
> index 4e2c6ebde73c..eb4dd758b3b5 100644
> --- a/board/ge/mx53ppd/mx53ppd_video.c
> +++ b/board/ge/mx53ppd/mx53ppd_video.c
> @@ -8,7 +8,6 @@
>   * Fabio Estevam <fabio.estevam@freescale.com>
>   */
> 
> -#include <common.h>
>  #include <dm.h>
>  #include <linux/list.h>
>  #include <asm/arch/iomux-mx53.h>
> --
> 2.34.1
> 
> 

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 093/149] board: msc: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 093/149] board: msc: " Tom Rini
@ 2024-05-02  8:57   ` Ian Ray
  0 siblings, 0 replies; 197+ messages in thread
From: Ian Ray @ 2024-05-02  8:57 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Martyn Welch

On Tue, Apr 30, 2024 at 08:42:20PM -0600, Tom Rini wrote:
> 
> WARNING: This email originated from outside of GE HealthCare. Please validate the sender's email address before clicking on links or attachments as they may not be safe.
> 
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Reviewed-by: Ian Ray <ian.ray@gehealthcare.com>

> ---
> Cc: Martyn Welch <martyn.welch@collabora.com>
> Cc: Ian Ray <ian.ray@gehealthcare.com>
> ---
>  board/msc/sm2s_imx8mp/sm2s_imx8mp.c | 1 -
>  board/msc/sm2s_imx8mp/spl.c         | 2 +-
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/board/msc/sm2s_imx8mp/sm2s_imx8mp.c b/board/msc/sm2s_imx8mp/sm2s_imx8mp.c
> index 6ccbf02db06e..b1ce014bd55d 100644
> --- a/board/msc/sm2s_imx8mp/sm2s_imx8mp.c
> +++ b/board/msc/sm2s_imx8mp/sm2s_imx8mp.c
> @@ -7,7 +7,6 @@
>   * Copyright 2021 Collabora Ltd.
>   */
> 
> -#include <common.h>
>  #include <errno.h>
>  #include <miiphy.h>
>  #include <netdev.h>
> diff --git a/board/msc/sm2s_imx8mp/spl.c b/board/msc/sm2s_imx8mp/spl.c
> index ed7a1b7d3d00..b1b5561838dc 100644
> --- a/board/msc/sm2s_imx8mp/spl.c
> +++ b/board/msc/sm2s_imx8mp/spl.c
> @@ -7,7 +7,7 @@
>   * Copyright 2021 Collabora Ltd.
>   */
> 
> -#include <common.h>
> +#include <config.h>
>  #include <cpu_func.h>
>  #include <fsl_esdhc_imx.h>
>  #include <hang.h>
> --
> 2.34.1
> 
> 

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 043/149] board: congatec: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 043/149] board: congatec: " Tom Rini
@ 2024-05-02 12:15   ` Oliver Graute
  0 siblings, 0 replies; 197+ messages in thread
From: Oliver Graute @ 2024-05-02 12:15 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Stefan Roese

On 30/04/24, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Oliver Graute <oliver.graute@kococonnector.com>
> Cc: Stefan Roese <sr@denx.de>
> ---
>  board/congatec/cgtqmx8/cgtqmx8.c                           | 2 +-
>  board/congatec/cgtqmx8/spl.c                               | 1 -
>  board/congatec/common/mmc.c                                | 3 ++-
>  board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c | 1 -
>  4 files changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/board/congatec/cgtqmx8/cgtqmx8.c b/board/congatec/cgtqmx8/cgtqmx8.c
> index d8e5b1d69633..99c33a1943e0 100644
> --- a/board/congatec/cgtqmx8/cgtqmx8.c
> +++ b/board/congatec/cgtqmx8/cgtqmx8.c
> @@ -3,7 +3,7 @@
>   * Copyright 2018 congatec AG
>   * Copyright (C) 2019 Oliver Graute <oliver.graute@kococonnector.com>
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <errno.h>
>  #include <linux/libfdt.h>
>  #include <fsl_esdhc.h>
> diff --git a/board/congatec/cgtqmx8/spl.c b/board/congatec/cgtqmx8/spl.c
> index b432ce27459f..242e794981b7 100644
> --- a/board/congatec/cgtqmx8/spl.c
> +++ b/board/congatec/cgtqmx8/spl.c
> @@ -4,7 +4,6 @@
>   *
>   */
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <fdt_support.h>
>  #include <init.h>
> diff --git a/board/congatec/common/mmc.c b/board/congatec/common/mmc.c
> index bb7a3d4a9aa0..74a189ab4d7f 100644
> --- a/board/congatec/common/mmc.c
> +++ b/board/congatec/common/mmc.c
> @@ -4,7 +4,8 @@
>   * Copyright 2018 NXP
>   *
>   */
> -#include <common.h>
> +
> +#include <vsprintf.h>
>  #include <linux/errno.h>
>  #include <asm/io.h>
>  #include <env.h>
> diff --git a/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c b/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
> index 315b6dc54295..4197e88fb6ff 100644
> --- a/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
> +++ b/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
> @@ -3,7 +3,6 @@
>   * Copyright (C) 2016 Stefan Roese <sr@denx.de>
>   */
>  
> -#include <common.h>
>  #include <i2c.h>
>  #include <init.h>
>  #include <winbond_w83627.h>
> -- 
> 2.34.1
> 
Acked-by: Oliver Graute <oliver.graute@kococonnector.com>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 013/149] board: advantech: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 013/149] board: advantech: " Tom Rini
@ 2024-05-02 12:15   ` Oliver Graute
  0 siblings, 0 replies; 197+ messages in thread
From: Oliver Graute @ 2024-05-02 12:15 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot, Ying-Chun Liu (PaulLiu), George McCollister

On 30/04/24, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org>
> Cc: Oliver Graute <oliver.graute@kococonnector.com>
> Cc: George McCollister <george.mccollister@gmail.com>
> ---
>  board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c       | 1 -
>  board/advantech/imx8mp_rsb3720a1/spl.c                    | 2 +-
>  board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c     | 1 -
>  board/advantech/imx8qm_dmsse20_a1/spl.c                   | 2 +-
>  board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c     | 1 -
>  board/advantech/imx8qm_rom7720_a1/spl.c                   | 2 +-
>  board/advantech/som-db5800-som-6867/som-db5800-som-6867.c | 1 -
>  7 files changed, 3 insertions(+), 7 deletions(-)
> 
> diff --git a/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c b/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
> index d87fe3606f6a..070933fb54b2 100644
> --- a/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
> +++ b/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c
> @@ -4,7 +4,6 @@
>   * Copyright 2022 Linaro
>   */
>  
> -#include <common.h>
>  #include <dwc3-uboot.h>
>  #include <efi.h>
>  #include <efi_loader.h>
> diff --git a/board/advantech/imx8mp_rsb3720a1/spl.c b/board/advantech/imx8mp_rsb3720a1/spl.c
> index f4257bc993d6..1f7c1f25adcf 100644
> --- a/board/advantech/imx8mp_rsb3720a1/spl.c
> +++ b/board/advantech/imx8mp_rsb3720a1/spl.c
> @@ -4,7 +4,7 @@
>   * Copyright 2022 Linaro
>   */
>  
> -#include <common.h>
> +#include <config.h>
>  #include <command.h>
>  #include <cpu_func.h>
>  #include <errno.h>
> diff --git a/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c b/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c
> index 56b7bdb57c94..50b35db5f6cf 100644
> --- a/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c
> +++ b/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c
> @@ -4,7 +4,6 @@
>   * Copyright 2019-2023 Kococonnector GmbH
>   */
>  
> -#include <common.h>
>  #include <errno.h>
>  #include <linux/libfdt.h>
>  #include <asm/io.h>
> diff --git a/board/advantech/imx8qm_dmsse20_a1/spl.c b/board/advantech/imx8qm_dmsse20_a1/spl.c
> index e8959ede51d9..93cf07440026 100644
> --- a/board/advantech/imx8qm_dmsse20_a1/spl.c
> +++ b/board/advantech/imx8qm_dmsse20_a1/spl.c
> @@ -3,7 +3,7 @@
>   * Copyright 2017-2018 NXP
>   * Copyright 2019-2023 Kococonnector GmbH
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <spl.h>
>  #include <init.h>
> diff --git a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
> index 7f766a688bb5..3def182f2967 100644
> --- a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
> +++ b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
> @@ -4,7 +4,6 @@
>   * Copyright (C) 2019 Oliver Graute <oliver.graute@kococonnector.com>
>   */
>  
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <env.h>
>  #include <errno.h>
> diff --git a/board/advantech/imx8qm_rom7720_a1/spl.c b/board/advantech/imx8qm_rom7720_a1/spl.c
> index d32400101fc9..5863e335a8bc 100644
> --- a/board/advantech/imx8qm_rom7720_a1/spl.c
> +++ b/board/advantech/imx8qm_rom7720_a1/spl.c
> @@ -2,7 +2,7 @@
>  /*
>   * Copyright 2017-2018 NXP
>   */
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <image.h>
>  #include <init.h>
> diff --git a/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c b/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
> index 8499fc541fa7..9bbd5fd291aa 100644
> --- a/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
> +++ b/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
> @@ -4,7 +4,6 @@
>   * Copyright (C) 2016 George McCollister <george.mccollister@gmail.com>
>   */
>  
> -#include <common.h>
>  #include <init.h>
>  #include <asm/fsp1/fsp_support.h>
>  
> -- 
> 2.34.1
> 
Acked-by: Oliver Graute <oliver.graute@kococonnector.com>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* RE: [PATCH 078/149] board: keymile: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 078/149] board: keymile: " Tom Rini
  2024-05-01  5:09   ` Heiko Schocher
@ 2024-05-03  6:36   ` Holger Brunck
  1 sibling, 0 replies; 197+ messages in thread
From: Holger Brunck @ 2024-05-03  6:36 UTC (permalink / raw)
  To: Tom Rini, u-boot; +Cc: Heiko Schocher, Niel Fourie, Aleksandar Gerasimovski

Hi Tom,

> 
> Remove <common.h> from this board vendor directory and when needed add
> missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Holger Brunck <holger.brunck@hitachienergy.com>
> Cc: Heiko Schocher <hs@denx.de>
> Cc: Niel Fourie <lusus@denx.de>
> Cc: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
> Cc: Rainer Boschung <rainer.boschung@hitachienergy.com>
> ---
>  board/keymile/common/common.c       | 2 +-
>  board/keymile/common/ivm.c          | 3 ++-
>  board/keymile/common/qrio.c         | 2 +-
>  board/keymile/km83xx/km83xx.c       | 2 +-
>  board/keymile/pg-wcom-ls102xa/ddr.c | 2 +-
>  board/keymile/secu1/socfpga.c       | 1 -
>  6 files changed, 6 insertions(+), 6 deletions(-)
> 

Reviewed-By: Holger Brunck <holger.brunck@hitachienergy.com>

Best regards
Holger



^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 103/149] board: phytec: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 103/149] board: phytec: " Tom Rini
@ 2024-05-03  8:47   ` Wadim Egorov
  2024-05-07  7:28   ` Teresa Remmet
  1 sibling, 0 replies; 197+ messages in thread
From: Wadim Egorov @ 2024-05-03  8:47 UTC (permalink / raw)
  To: Tom Rini, u-boot, upstream
  Cc: Martyn Welch, Parthiban Nallathambi, Albert ARIBAUD (3ADEV),
	Niel Fourie, Teresa Remmet, Simon Glass, Philipp Tomsich,
	Kever Yang, Yannic Moog, Daniel Schultz, Benjamin Hahn,
	Fabio Estevam



Am 01.05.24 um 04:42 schrieb Tom Rini:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by: Wadim Egorov <w.egorov@phytec.de>

> ---
> Cc: Martyn Welch <martyn.welch@collabora.com>
> Cc: Parthiban Nallathambi <parthitce@gmail.com>
> Cc: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr>
> Cc: Niel Fourie <lusus@denx.de>
> Cc: Teresa Remmet <t.remmet@phytec.de>
> Cc: Wadim Egorov <w.egorov@phytec.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
> Cc: Kever Yang <kever.yang@rock-chips.com>
> Cc: Yannic Moog <y.moog@phytec.de>
> Cc: Daniel Schultz <d.schultz@phytec.de>
> Cc: Benjamin Hahn <B.Hahn@phytec.de>
> Cc: Fabio Estevam <festevam@gmail.com>
> ---
>   board/phytec/common/imx8m_som_detection.c    | 1 -
>   board/phytec/common/phytec_som_detection.c   | 1 -
>   board/phytec/pcl063/spl.c                    | 2 +-
>   board/phytec/pcm052/pcm052.c                 | 1 -
>   board/phytec/pcm058/pcm058.c                 | 1 -
>   board/phytec/phycore_am335x_r2/board.c       | 2 +-
>   board/phytec/phycore_am335x_r2/mux.c         | 1 -
>   board/phytec/phycore_imx8mm/phycore-imx8mm.c | 1 -
>   board/phytec/phycore_imx8mm/spl.c            | 1 -
>   board/phytec/phycore_imx8mp/phycore-imx8mp.c | 1 -
>   board/phytec/phycore_imx8mp/spl.c            | 1 -
>   board/phytec/phycore_rk3288/phycore-rk3288.c | 1 -
>   12 files changed, 2 insertions(+), 12 deletions(-)
> 
> diff --git a/board/phytec/common/imx8m_som_detection.c b/board/phytec/common/imx8m_som_detection.c
> index ee34a5b95791..bfd60ffb7773 100644
> --- a/board/phytec/common/imx8m_som_detection.c
> +++ b/board/phytec/common/imx8m_som_detection.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet@phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/sys_proto.h>
>   #include <dm/device.h>
>   #include <dm/uclass.h>
> diff --git a/board/phytec/common/phytec_som_detection.c b/board/phytec/common/phytec_som_detection.c
> index 78c173df20d4..b14bb3dbb7fa 100644
> --- a/board/phytec/common/phytec_som_detection.c
> +++ b/board/phytec/common/phytec_som_detection.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet@phytec.de>
>    */
>   
> -#include <common.h>
>   #include <dm/device.h>
>   #include <dm/uclass.h>
>   #include <i2c.h>
> diff --git a/board/phytec/pcl063/spl.c b/board/phytec/pcl063/spl.c
> index b6d459fdfce6..b98c46dbcbd4 100644
> --- a/board/phytec/pcl063/spl.c
> +++ b/board/phytec/pcl063/spl.c
> @@ -6,7 +6,7 @@
>    * Copyright (C) 2015-2016 Stefan Roese <sr@denx.de>
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <init.h>
>   #include <spl.h>
>   #include <asm/arch/clock.h>
> diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c
> index 0f7235979b04..20f2aac332da 100644
> --- a/board/phytec/pcm052/pcm052.c
> +++ b/board/phytec/pcm052/pcm052.c
> @@ -6,7 +6,6 @@
>    * Copyright 2013 Freescale Semiconductor, Inc.
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <asm/global_data.h>
>   #include <asm/io.h>
> diff --git a/board/phytec/pcm058/pcm058.c b/board/phytec/pcm058/pcm058.c
> index b37c6fe218da..ecc5b75d8d42 100644
> --- a/board/phytec/pcm058/pcm058.c
> +++ b/board/phytec/pcm058/pcm058.c
> @@ -9,7 +9,6 @@
>    * Both NAND and eMMC cannot be set because they share the
>    * same pins (SD4)
>    */
> -#include <common.h>
>   #include <init.h>
>   #include <net.h>
>   #include <asm/arch/crm_regs.h>
> diff --git a/board/phytec/phycore_am335x_r2/board.c b/board/phytec/phycore_am335x_r2/board.c
> index 5700effbd3f6..2022525651dc 100644
> --- a/board/phytec/phycore_am335x_r2/board.c
> +++ b/board/phytec/phycore_am335x_r2/board.c
> @@ -10,7 +10,7 @@
>    * Copyright (C) 2019 DENX Software Engineering GmbH
>    */
>   
> -#include <common.h>
> +#include <config.h>
>   #include <init.h>
>   #include <spl.h>
>   #include <asm/arch/cpu.h>
> diff --git a/board/phytec/phycore_am335x_r2/mux.c b/board/phytec/phycore_am335x_r2/mux.c
> index 7091c985ba12..bb1c48da0fe5 100644
> --- a/board/phytec/phycore_am335x_r2/mux.c
> +++ b/board/phytec/phycore_am335x_r2/mux.c
> @@ -6,7 +6,6 @@
>    * Copyright (C) 2019 DENX Software Engineering GmbH
>    */
>   
> -#include <common.h>
>   #include <asm/arch/sys_proto.h>
>   #include <asm/arch/hardware.h>
>   #include <asm/arch/mux.h>
> diff --git a/board/phytec/phycore_imx8mm/phycore-imx8mm.c b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> index ef6472916903..06cffbca3a69 100644
> --- a/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> +++ b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet@phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/sys_proto.h>
>   #include <asm/global_data.h>
>   #include <asm/io.h>
> diff --git a/board/phytec/phycore_imx8mm/spl.c b/board/phytec/phycore_imx8mm/spl.c
> index 690a51f7a72e..8d858590a39b 100644
> --- a/board/phytec/phycore_imx8mm/spl.c
> +++ b/board/phytec/phycore_imx8mm/spl.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet@phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/clock.h>
>   #include <asm/arch/ddr.h>
>   #include <asm/arch/imx8mm_pins.h>
> diff --git a/board/phytec/phycore_imx8mp/phycore-imx8mp.c b/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> index dbdd6bb79373..35683591433c 100644
> --- a/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> +++ b/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet@phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/sys_proto.h>
>   #include <asm/global_data.h>
>   #include <asm/io.h>
> diff --git a/board/phytec/phycore_imx8mp/spl.c b/board/phytec/phycore_imx8mp/spl.c
> index df158024654e..352f803e4541 100644
> --- a/board/phytec/phycore_imx8mp/spl.c
> +++ b/board/phytec/phycore_imx8mp/spl.c
> @@ -4,7 +4,6 @@
>    * Author: Teresa Remmet <t.remmet@phytec.de>
>    */
>   
> -#include <common.h>
>   #include <asm/arch/clock.h>
>   #include <asm/arch/ddr.h>
>   #include <asm/arch/imx8mp_pins.h>
> diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c b/board/phytec/phycore_rk3288/phycore-rk3288.c
> index 1ddb4a4f8085..a970634b4c33 100644
> --- a/board/phytec/phycore_rk3288/phycore-rk3288.c
> +++ b/board/phytec/phycore_rk3288/phycore-rk3288.c
> @@ -9,7 +9,6 @@
>   #include <net.h>
>   #include <asm/global_data.h>
>   #include <asm/io.h>
> -#include <common.h>
>   #include <dm.h>
>   #include <env.h>
>   #include <env_internal.h>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 080/149] board: kontron: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 080/149] board: kontron: " Tom Rini
  2024-05-02  7:18   ` Michael Walle
@ 2024-05-06  7:17   ` Frieder Schrempf
  1 sibling, 0 replies; 197+ messages in thread
From: Frieder Schrempf @ 2024-05-06  7:17 UTC (permalink / raw)
  To: Tom Rini, u-boot; +Cc: Heiko Thiery, Michael Walle

On 01.05.24 04:42, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by: Frieder Schrempf <frieder.schrempf@kontron.de>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 103/149] board: phytec: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 103/149] board: phytec: " Tom Rini
  2024-05-03  8:47   ` Wadim Egorov
@ 2024-05-07  7:28   ` Teresa Remmet
  1 sibling, 0 replies; 197+ messages in thread
From: Teresa Remmet @ 2024-05-07  7:28 UTC (permalink / raw)
  To: trini, u-boot
  Cc: lusus, parthitce, Wadim Egorov, albert.aribaud, festevam,
	Yannic Moog, kever.yang, Daniel Schultz, martyn.welch, sjg,
	philipp.tomsich, Benjamin Hahn

Am Dienstag, dem 30.04.2024 um 20:42 -0600 schrieb Tom Rini:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Acked-by: Teresa Remmet <t.remmet@phytec.de>

> ---
> Cc: Martyn Welch <martyn.welch@collabora.com>
> Cc: Parthiban Nallathambi <parthitce@gmail.com>
> Cc: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr>
> Cc: Niel Fourie <lusus@denx.de>
> Cc: Teresa Remmet <t.remmet@phytec.de>
> Cc: Wadim Egorov <w.egorov@phytec.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
> Cc: Kever Yang <kever.yang@rock-chips.com>
> Cc: Yannic Moog <y.moog@phytec.de>
> Cc: Daniel Schultz <d.schultz@phytec.de>
> Cc: Benjamin Hahn <B.Hahn@phytec.de>
> Cc: Fabio Estevam <festevam@gmail.com>
> ---
>  board/phytec/common/imx8m_som_detection.c    | 1 -
>  board/phytec/common/phytec_som_detection.c   | 1 -
>  board/phytec/pcl063/spl.c                    | 2 +-
>  board/phytec/pcm052/pcm052.c                 | 1 -
>  board/phytec/pcm058/pcm058.c                 | 1 -
>  board/phytec/phycore_am335x_r2/board.c       | 2 +-
>  board/phytec/phycore_am335x_r2/mux.c         | 1 -
>  board/phytec/phycore_imx8mm/phycore-imx8mm.c | 1 -
>  board/phytec/phycore_imx8mm/spl.c            | 1 -
>  board/phytec/phycore_imx8mp/phycore-imx8mp.c | 1 -
>  board/phytec/phycore_imx8mp/spl.c            | 1 -
>  board/phytec/phycore_rk3288/phycore-rk3288.c | 1 -
>  12 files changed, 2 insertions(+), 12 deletions(-)
> 
> diff --git a/board/phytec/common/imx8m_som_detection.c
> b/board/phytec/common/imx8m_som_detection.c
> index ee34a5b95791..bfd60ffb7773 100644
> --- a/board/phytec/common/imx8m_som_detection.c
> +++ b/board/phytec/common/imx8m_som_detection.c
> @@ -4,7 +4,6 @@
>   * Author: Teresa Remmet <t.remmet@phytec.de>
>   */
>  
> -#include <common.h>
>  #include <asm/arch/sys_proto.h>
>  #include <dm/device.h>
>  #include <dm/uclass.h>
> diff --git a/board/phytec/common/phytec_som_detection.c
> b/board/phytec/common/phytec_som_detection.c
> index 78c173df20d4..b14bb3dbb7fa 100644
> --- a/board/phytec/common/phytec_som_detection.c
> +++ b/board/phytec/common/phytec_som_detection.c
> @@ -4,7 +4,6 @@
>   * Author: Teresa Remmet <t.remmet@phytec.de>
>   */
>  
> -#include <common.h>
>  #include <dm/device.h>
>  #include <dm/uclass.h>
>  #include <i2c.h>
> diff --git a/board/phytec/pcl063/spl.c b/board/phytec/pcl063/spl.c
> index b6d459fdfce6..b98c46dbcbd4 100644
> --- a/board/phytec/pcl063/spl.c
> +++ b/board/phytec/pcl063/spl.c
> @@ -6,7 +6,7 @@
>   * Copyright (C) 2015-2016 Stefan Roese <sr@denx.de>
>   */
>  
> -#include <common.h>
> +#include <config.h>
>  #include <init.h>
>  #include <spl.h>
>  #include <asm/arch/clock.h>
> diff --git a/board/phytec/pcm052/pcm052.c
> b/board/phytec/pcm052/pcm052.c
> index 0f7235979b04..20f2aac332da 100644
> --- a/board/phytec/pcm052/pcm052.c
> +++ b/board/phytec/pcm052/pcm052.c
> @@ -6,7 +6,6 @@
>   * Copyright 2013 Freescale Semiconductor, Inc.
>   */
>  
> -#include <common.h>
>  #include <init.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
> diff --git a/board/phytec/pcm058/pcm058.c
> b/board/phytec/pcm058/pcm058.c
> index b37c6fe218da..ecc5b75d8d42 100644
> --- a/board/phytec/pcm058/pcm058.c
> +++ b/board/phytec/pcm058/pcm058.c
> @@ -9,7 +9,6 @@
>   * Both NAND and eMMC cannot be set because they share the
>   * same pins (SD4)
>   */
> -#include <common.h>
>  #include <init.h>
>  #include <net.h>
>  #include <asm/arch/crm_regs.h>
> diff --git a/board/phytec/phycore_am335x_r2/board.c
> b/board/phytec/phycore_am335x_r2/board.c
> index 5700effbd3f6..2022525651dc 100644
> --- a/board/phytec/phycore_am335x_r2/board.c
> +++ b/board/phytec/phycore_am335x_r2/board.c
> @@ -10,7 +10,7 @@
>   * Copyright (C) 2019 DENX Software Engineering GmbH
>   */
>  
> -#include <common.h>
> +#include <config.h>
>  #include <init.h>
>  #include <spl.h>
>  #include <asm/arch/cpu.h>
> diff --git a/board/phytec/phycore_am335x_r2/mux.c
> b/board/phytec/phycore_am335x_r2/mux.c
> index 7091c985ba12..bb1c48da0fe5 100644
> --- a/board/phytec/phycore_am335x_r2/mux.c
> +++ b/board/phytec/phycore_am335x_r2/mux.c
> @@ -6,7 +6,6 @@
>   * Copyright (C) 2019 DENX Software Engineering GmbH
>   */
>  
> -#include <common.h>
>  #include <asm/arch/sys_proto.h>
>  #include <asm/arch/hardware.h>
>  #include <asm/arch/mux.h>
> diff --git a/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> index ef6472916903..06cffbca3a69 100644
> --- a/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> +++ b/board/phytec/phycore_imx8mm/phycore-imx8mm.c
> @@ -4,7 +4,6 @@
>   * Author: Teresa Remmet <t.remmet@phytec.de>
>   */
>  
> -#include <common.h>
>  #include <asm/arch/sys_proto.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
> diff --git a/board/phytec/phycore_imx8mm/spl.c
> b/board/phytec/phycore_imx8mm/spl.c
> index 690a51f7a72e..8d858590a39b 100644
> --- a/board/phytec/phycore_imx8mm/spl.c
> +++ b/board/phytec/phycore_imx8mm/spl.c
> @@ -4,7 +4,6 @@
>   * Author: Teresa Remmet <t.remmet@phytec.de>
>   */
>  
> -#include <common.h>
>  #include <asm/arch/clock.h>
>  #include <asm/arch/ddr.h>
>  #include <asm/arch/imx8mm_pins.h>
> diff --git a/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> b/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> index dbdd6bb79373..35683591433c 100644
> --- a/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> +++ b/board/phytec/phycore_imx8mp/phycore-imx8mp.c
> @@ -4,7 +4,6 @@
>   * Author: Teresa Remmet <t.remmet@phytec.de>
>   */
>  
> -#include <common.h>
>  #include <asm/arch/sys_proto.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
> diff --git a/board/phytec/phycore_imx8mp/spl.c
> b/board/phytec/phycore_imx8mp/spl.c
> index df158024654e..352f803e4541 100644
> --- a/board/phytec/phycore_imx8mp/spl.c
> +++ b/board/phytec/phycore_imx8mp/spl.c
> @@ -4,7 +4,6 @@
>   * Author: Teresa Remmet <t.remmet@phytec.de>
>   */
>  
> -#include <common.h>
>  #include <asm/arch/clock.h>
>  #include <asm/arch/ddr.h>
>  #include <asm/arch/imx8mp_pins.h>
> diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c
> b/board/phytec/phycore_rk3288/phycore-rk3288.c
> index 1ddb4a4f8085..a970634b4c33 100644
> --- a/board/phytec/phycore_rk3288/phycore-rk3288.c
> +++ b/board/phytec/phycore_rk3288/phycore-rk3288.c
> @@ -9,7 +9,6 @@
>  #include <net.h>
>  #include <asm/global_data.h>
>  #include <asm/io.h>
> -#include <common.h>
>  #include <dm.h>
>  #include <env.h>
>  #include <env_internal.h>

-- 
PHYTEC Messtechnik GmbH | Barcelona-Allee 1 | 55129 Mainz, Germany

Geschäftsführer: Dipl.-Ing. Michael Mitezki, Dipl.-Ing. Bodo Huber,
Dipl.-Ing. (FH) Markus Lickes | Handelsregister Mainz HRB 4656 |
Finanzamt Mainz | St.Nr. 266500608, DE 149059855

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 111/149] board: rockchip: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 111/149] board: rockchip: " Tom Rini
@ 2024-05-07  7:41   ` Kever Yang
  0 siblings, 0 replies; 197+ messages in thread
From: Kever Yang @ 2024-05-07  7:41 UTC (permalink / raw)
  To: Tom Rini, u-boot
  Cc: huang lin, Simon Glass, Philipp Tomsich, Andy Yan, Michael Trimarchi


On 2024/5/1 10:42, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
> Cc: huang lin <hl@rock-chips.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
> Cc: Kever Yang <kever.yang@rock-chips.com>
> Cc: Andy Yan <andy.yan@rock-chips.com>
> Cc: Michael Trimarchi <michael@amarulasolutions.com>
> ---
>   arch/arm/include/asm/arch-rockchip/grf_rk3308.h | 2 ++
>   board/rockchip/evb_rk3036/evb_rk3036.c          | 1 -
>   board/rockchip/evb_rk3308/evb_rk3308.c          | 1 -
>   board/rockchip/evb_rv1108/evb_rv1108.c          | 1 -
>   board/rockchip/kylin_rk3036/kylin_rk3036.c      | 1 -
>   board/rockchip/tinker_rk3288/tinker-rk3288.c    | 1 -
>   6 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3308.h b/arch/arm/include/asm/arch-rockchip/grf_rk3308.h
> index a995bb950d97..f4bbc2401310 100644
> --- a/arch/arm/include/asm/arch-rockchip/grf_rk3308.h
> +++ b/arch/arm/include/asm/arch-rockchip/grf_rk3308.h
> @@ -5,6 +5,8 @@
>   #ifndef _ASM_ARCH_GRF_rk3308_H
>   #define _ASM_ARCH_GRF_rk3308_H
>   
> +#include <linux/kernel.h>
> +
>   struct rk3308_grf {
>   	unsigned int gpio0a_iomux;
>   	unsigned int reserved0;
> diff --git a/board/rockchip/evb_rk3036/evb_rk3036.c b/board/rockchip/evb_rk3036/evb_rk3036.c
> index 8c606463e455..a0805030ea46 100644
> --- a/board/rockchip/evb_rk3036/evb_rk3036.c
> +++ b/board/rockchip/evb_rk3036/evb_rk3036.c
> @@ -3,7 +3,6 @@
>    * (C) Copyright 2015 Rockchip Electronics Co., Ltd
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <asm/io.h>
>   #include <asm/arch-rockchip/uart.h>
> diff --git a/board/rockchip/evb_rk3308/evb_rk3308.c b/board/rockchip/evb_rk3308/evb_rk3308.c
> index e0c96fd70a28..c895da934a99 100644
> --- a/board/rockchip/evb_rk3308/evb_rk3308.c
> +++ b/board/rockchip/evb_rk3308/evb_rk3308.c
> @@ -3,7 +3,6 @@
>    * (C) Copyright 2018 Rockchip Electronics Co., Ltd
>    */
>   
> -#include <common.h>
>   #include <adc.h>
>   #include <asm/global_data.h>
>   
> diff --git a/board/rockchip/evb_rv1108/evb_rv1108.c b/board/rockchip/evb_rv1108/evb_rv1108.c
> index 0d7a486bed74..48b9d8f80c4b 100644
> --- a/board/rockchip/evb_rv1108/evb_rv1108.c
> +++ b/board/rockchip/evb_rv1108/evb_rv1108.c
> @@ -4,7 +4,6 @@
>    * Authors: Andy Yan <andy.yan@rock-chips.com>
>    */
>   
> -#include <common.h>
>   #include <init.h>
>   #include <syscon.h>
>   #include <asm/global_data.h>
> diff --git a/board/rockchip/kylin_rk3036/kylin_rk3036.c b/board/rockchip/kylin_rk3036/kylin_rk3036.c
> index 0ca91cdeb014..c452b131208d 100644
> --- a/board/rockchip/kylin_rk3036/kylin_rk3036.c
> +++ b/board/rockchip/kylin_rk3036/kylin_rk3036.c
> @@ -3,7 +3,6 @@
>    * (C) Copyright 2015 Rockchip Electronics Co., Ltd
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <env.h>
>   #include <init.h>
> diff --git a/board/rockchip/tinker_rk3288/tinker-rk3288.c b/board/rockchip/tinker_rk3288/tinker-rk3288.c
> index e6e75981c2d1..e966e9f201ab 100644
> --- a/board/rockchip/tinker_rk3288/tinker-rk3288.c
> +++ b/board/rockchip/tinker_rk3288/tinker-rk3288.c
> @@ -3,7 +3,6 @@
>    * (C) Copyright 2016 Rockchip Electronics Co., Ltd
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <env.h>
>   #include <i2c_eeprom.h>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 060/149] board: firefly: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 060/149] board: firefly: " Tom Rini
@ 2024-05-07  7:41   ` Kever Yang
  0 siblings, 0 replies; 197+ messages in thread
From: Kever Yang @ 2024-05-07  7:41 UTC (permalink / raw)
  To: Tom Rini, u-boot
  Cc: Simon Glass, Philipp Tomsich, Andy Yan, Levin Du, Suniel Mahesh


On 2024/5/1 10:41, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
> Cc: Kever Yang <kever.yang@rock-chips.com>
> Cc: Andy Yan <andy.yan@rock-chips.com>
> Cc: Levin Du <djw@t-chip.com.cn>
> Cc: Suniel Mahesh <sunil@amarulasolutions.com>
> ---
>   board/firefly/firefly-rk3288/firefly-rk3288.c | 1 -
>   board/firefly/firefly-rk3308/roc_cc_rk3308.c  | 1 -
>   board/firefly/roc-pc-rk3399/roc-pc-rk3399.c   | 1 -
>   3 files changed, 3 deletions(-)
>
> diff --git a/board/firefly/firefly-rk3288/firefly-rk3288.c b/board/firefly/firefly-rk3288/firefly-rk3288.c
> index 95d8b00924d8..8e67ab4b1327 100644
> --- a/board/firefly/firefly-rk3288/firefly-rk3288.c
> +++ b/board/firefly/firefly-rk3288/firefly-rk3288.c
> @@ -3,7 +3,6 @@
>    * (C) Copyright 2015 Google, Inc
>    */
>   
> -#include <common.h>
>   #include <hang.h>
>   #include <led.h>
>   #include <log.h>
> diff --git a/board/firefly/firefly-rk3308/roc_cc_rk3308.c b/board/firefly/firefly-rk3308/roc_cc_rk3308.c
> index af00250e118d..404bdc632bbc 100644
> --- a/board/firefly/firefly-rk3308/roc_cc_rk3308.c
> +++ b/board/firefly/firefly-rk3308/roc_cc_rk3308.c
> @@ -3,7 +3,6 @@
>    * (C) Copyright 2019 Rockchip Electronics Co., Ltd
>    */
>   
> -#include <common.h>
>   #include <adc.h>
>   #include <asm/arch-rockchip/grf_rk3308.h>
>   #include <asm/arch-rockchip/hardware.h>
> diff --git a/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c b/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
> index 590519b32af2..a149e4fe822e 100644
> --- a/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
> +++ b/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
> @@ -3,7 +3,6 @@
>    * (C) Copyright 2016 Rockchip Electronics Co., Ltd
>    */
>   
> -#include <common.h>
>   #include <dm.h>
>   #include <env.h>
>   #include <log.h>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h>
  2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
                   ` (148 preceding siblings ...)
  2024-05-01  6:33 ` [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tony Dinh
@ 2024-05-07 14:02 ` Tom Rini
  149 siblings, 0 replies; 197+ messages in thread
From: Tom Rini @ 2024-05-07 14:02 UTC (permalink / raw)
  To: u-boot, Tom Rini

On Tue, 30 Apr 2024 20:40:48 -0600, Tom Rini wrote:

> This follows the example of RISC-V where <asm/global_data.h> includes
> <asm/u-boot.h> directly as "gd" includes a reference to bd_info already
> and so the first must include the second anyhow. We then remove
> <asm/u-boot.h> from all of the places which include references to "gd"
> an so have <asm/global_data.h> already.
> 
> 
> [...]

Applied to u-boot/next, thanks!

-- 
Tom



^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 062/149] board: friendlyarm: Remove <common.h> and add needed includes
  2024-05-01  2:41 ` [PATCH 062/149] board: friendlyarm: " Tom Rini
@ 2024-05-08 17:39   ` Stefan Bosch
  0 siblings, 0 replies; 197+ messages in thread
From: Stefan Bosch @ 2024-05-08 17:39 UTC (permalink / raw)
  To: Tom Rini, u-boot
  Cc: Caleb Connolly, Eugen Hristev, Igor Prusov, Patrice Chotard



On 01.05.24 04:41, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefan Bosch <stefan_b@posteo.net>
Tested-by: Stefan Bosch <stefan_b@posteo.net>

Looks good, tested on FriendlyElec-Board NanoPC-T2.

Thanks a lot!

> ---
> Cc: Stefan Bosch <stefan_b@posteo.net>
> Cc: Caleb Connolly <caleb.connolly@linaro.org>
> Cc: Eugen Hristev <eugen.hristev@collabora.com>
> Cc: Igor Prusov <ivprusov@salutedevices.com>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> ---
>   board/friendlyarm/nanopi2/board.c   | 1 -
>   board/friendlyarm/nanopi2/hwrev.c   | 1 -
>   board/friendlyarm/nanopi2/lcds.c    | 1 -
>   board/friendlyarm/nanopi2/onewire.c | 1 -
>   4 files changed, 4 deletions(-)
> 
> diff --git a/board/friendlyarm/nanopi2/board.c b/board/friendlyarm/nanopi2/board.c
> index 393c5a447d6f..c8cbc5a15fa8 100644
> --- a/board/friendlyarm/nanopi2/board.c
> +++ b/board/friendlyarm/nanopi2/board.c
> @@ -5,7 +5,6 @@
>    */
>   
>   #include <config.h>
> -#include <common.h>
>   #include <command.h>
>   #include <fdt_support.h>
>   #include <log.h>
> diff --git a/board/friendlyarm/nanopi2/hwrev.c b/board/friendlyarm/nanopi2/hwrev.c
> index 585e08c944f9..cd9c2414a320 100644
> --- a/board/friendlyarm/nanopi2/hwrev.c
> +++ b/board/friendlyarm/nanopi2/hwrev.c
> @@ -5,7 +5,6 @@
>    */
>   
>   #include <config.h>
> -#include <common.h>
>   #include <i2c.h>
>   #include <asm/io.h>
>   
> diff --git a/board/friendlyarm/nanopi2/lcds.c b/board/friendlyarm/nanopi2/lcds.c
> index 7303e53af925..b37367300cf0 100644
> --- a/board/friendlyarm/nanopi2/lcds.c
> +++ b/board/friendlyarm/nanopi2/lcds.c
> @@ -4,7 +4,6 @@
>    */
>   
>   #include <config.h>
> -#include <common.h>
>   #include <errno.h>
>   #include <fdtdec.h>
>   #include <fdt_support.h>
> diff --git a/board/friendlyarm/nanopi2/onewire.c b/board/friendlyarm/nanopi2/onewire.c
> index 4f0b1e33c2df..31cc871330ca 100644
> --- a/board/friendlyarm/nanopi2/onewire.c
> +++ b/board/friendlyarm/nanopi2/onewire.c
> @@ -5,7 +5,6 @@
>    */
>   
>   #include <config.h>
> -#include <common.h>
>   #include <errno.h>
>   #include <asm/io.h>
>   #include <asm/arch/clk.h>

^ permalink raw reply	[flat|nested] 197+ messages in thread

* Re: [PATCH 126/149] board: st: Remove <common.h> and add needed includes
  2024-05-01  2:42 ` [PATCH 126/149] board: st: " Tom Rini
@ 2024-05-17  6:06   ` Patrice CHOTARD
  0 siblings, 0 replies; 197+ messages in thread
From: Patrice CHOTARD @ 2024-05-17  6:06 UTC (permalink / raw)
  To: Tom Rini, u-boot; +Cc: Patrick Delaunay, Kamil Lulko, Vikas Manocha, Dillon Min



On 5/1/24 04:42, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Kamil Lulko <kamil.lulko@gmail.com>
> Cc: Vikas Manocha <vikas.manocha@st.com>
> Cc: Dillon Min <dillon.minfei@gmail.com>
> ---
>  board/st/common/cmd_stboard.c                        | 1 -
>  board/st/common/stm32mp_dfu.c                        | 1 -
>  board/st/common/stm32mp_dfu_virt.c                   | 1 -
>  board/st/common/stpmic1.c                            | 1 -
>  board/st/common/stusb160x.c                          | 1 -
>  board/st/stih410-b2260/board.c                       | 1 -
>  board/st/stm32f429-discovery/led.c                   | 1 -
>  board/st/stm32f429-discovery/stm32f429-discovery.c   | 1 -
>  board/st/stm32f429-evaluation/stm32f429-evaluation.c | 1 -
>  board/st/stm32f469-discovery/stm32f469-discovery.c   | 1 -
>  board/st/stm32f746-disco/stm32f746-disco.c           | 2 +-
>  board/st/stm32h743-disco/stm32h743-disco.c           | 1 -
>  board/st/stm32h743-eval/stm32h743-eval.c             | 1 -
>  board/st/stm32h750-art-pi/stm32h750-art-pi.c         | 1 -
>  board/st/stm32mp1/spl.c                              | 1 -
>  board/st/stm32mp1/stm32mp1.c                         | 1 -
>  16 files changed, 1 insertion(+), 16 deletions(-)
> 
> diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c
> index c8c0bad5da16..50da063051b8 100644
> --- a/board/st/common/cmd_stboard.c
> +++ b/board/st/common/cmd_stboard.c
> @@ -30,7 +30,6 @@
>   */
>  
>  #ifndef CONFIG_SPL_BUILD
> -#include <common.h>
>  #include <command.h>
>  #include <console.h>
>  #include <misc.h>
> diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c
> index 77edb86e78c1..1db8e45480e1 100644
> --- a/board/st/common/stm32mp_dfu.c
> +++ b/board/st/common/stm32mp_dfu.c
> @@ -3,7 +3,6 @@
>   * Copyright (C) 2020, STMicroelectronics - All Rights Reserved
>   */
>  
> -#include <common.h>
>  #include <blk.h>
>  #include <dm.h>
>  #include <dfu.h>
> diff --git a/board/st/common/stm32mp_dfu_virt.c b/board/st/common/stm32mp_dfu_virt.c
> index f0f99605796a..4049d72bf9d5 100644
> --- a/board/st/common/stm32mp_dfu_virt.c
> +++ b/board/st/common/stm32mp_dfu_virt.c
> @@ -3,7 +3,6 @@
>   * Copyright (C) 2023, STMicroelectronics - All Rights Reserved
>   */
>  
> -#include <common.h>
>  #include <dfu.h>
>  #include <dm.h>
>  #include <misc.h>
> diff --git a/board/st/common/stpmic1.c b/board/st/common/stpmic1.c
> index 969ad484864d..45c2bb5bceac 100644
> --- a/board/st/common/stpmic1.c
> +++ b/board/st/common/stpmic1.c
> @@ -5,7 +5,6 @@
>  
>  #define LOG_CATEGORY LOGC_BOARD
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <log.h>
>  #include <asm/io.h>
> diff --git a/board/st/common/stusb160x.c b/board/st/common/stusb160x.c
> index f0385e5e3830..e1ad8b00717a 100644
> --- a/board/st/common/stusb160x.c
> +++ b/board/st/common/stusb160x.c
> @@ -8,7 +8,6 @@
>  
>  #define LOG_CATEGORY UCLASS_I2C_GENERIC
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <i2c.h>
>  
> diff --git a/board/st/stih410-b2260/board.c b/board/st/stih410-b2260/board.c
> index 82817571ae3d..a912712c9dd9 100644
> --- a/board/st/stih410-b2260/board.c
> +++ b/board/st/stih410-b2260/board.c
> @@ -4,7 +4,6 @@
>   * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
>   */
>  
> -#include <common.h>
>  #include <cpu_func.h>
>  #include <init.h>
>  #include <asm/cache.h>
> diff --git a/board/st/stm32f429-discovery/led.c b/board/st/stm32f429-discovery/led.c
> index 8dda6a97bd1c..4b8038341b9e 100644
> --- a/board/st/stm32f429-discovery/led.c
> +++ b/board/st/stm32f429-discovery/led.c
> @@ -4,7 +4,6 @@
>   * Kamil Lulko, <kamil.lulko@gmail.com>
>   */
>  
> -#include <common.h>
>  #include <status_led.h>
>  #include <asm-generic/gpio.h>
>  
> diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c
> index 55e464cc7cf1..22d751b44d3d 100644
> --- a/board/st/stm32f429-discovery/stm32f429-discovery.c
> +++ b/board/st/stm32f429-discovery/stm32f429-discovery.c
> @@ -10,7 +10,6 @@
>   * Kamil Lulko, <kamil.lulko@gmail.com>
>   */
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <env.h>
>  #include <init.h>
> diff --git a/board/st/stm32f429-evaluation/stm32f429-evaluation.c b/board/st/stm32f429-evaluation/stm32f429-evaluation.c
> index 25472f041fef..db59ebb838e7 100644
> --- a/board/st/stm32f429-evaluation/stm32f429-evaluation.c
> +++ b/board/st/stm32f429-evaluation/stm32f429-evaluation.c
> @@ -4,7 +4,6 @@
>   * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
>   */
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <env.h>
>  #include <init.h>
> diff --git a/board/st/stm32f469-discovery/stm32f469-discovery.c b/board/st/stm32f469-discovery/stm32f469-discovery.c
> index 9ed6c1e67680..134d207d95d8 100644
> --- a/board/st/stm32f469-discovery/stm32f469-discovery.c
> +++ b/board/st/stm32f469-discovery/stm32f469-discovery.c
> @@ -4,7 +4,6 @@
>   * Author(s): Patrice CHOTARD, <patrice.chotard@foss.st.com> for STMicroelectronics.
>   */
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <env.h>
>  #include <init.h>
> diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
> index 0f9666008430..6d86e4fe7aab 100644
> --- a/board/st/stm32f746-disco/stm32f746-disco.c
> +++ b/board/st/stm32f746-disco/stm32f746-disco.c
> @@ -4,7 +4,7 @@
>   * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
>   */
>  
> -#include <common.h>
> +#include <config.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <log.h>
> diff --git a/board/st/stm32h743-disco/stm32h743-disco.c b/board/st/stm32h743-disco/stm32h743-disco.c
> index 4ca5e847212e..35ef9ff9e288 100644
> --- a/board/st/stm32h743-disco/stm32h743-disco.c
> +++ b/board/st/stm32h743-disco/stm32h743-disco.c
> @@ -4,7 +4,6 @@
>   * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
>   */
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <log.h>
> diff --git a/board/st/stm32h743-eval/stm32h743-eval.c b/board/st/stm32h743-eval/stm32h743-eval.c
> index 4ca5e847212e..35ef9ff9e288 100644
> --- a/board/st/stm32h743-eval/stm32h743-eval.c
> +++ b/board/st/stm32h743-eval/stm32h743-eval.c
> @@ -4,7 +4,6 @@
>   * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
>   */
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <log.h>
> diff --git a/board/st/stm32h750-art-pi/stm32h750-art-pi.c b/board/st/stm32h750-art-pi/stm32h750-art-pi.c
> index 0d39ce849a62..75aa4d139fb4 100644
> --- a/board/st/stm32h750-art-pi/stm32h750-art-pi.c
> +++ b/board/st/stm32h750-art-pi/stm32h750-art-pi.c
> @@ -4,7 +4,6 @@
>   * Author(s): Dillon Min <dillon.minfei@gmail.com>
>   */
>  
> -#include <common.h>
>  #include <dm.h>
>  #include <init.h>
>  #include <log.h>
> diff --git a/board/st/stm32mp1/spl.c b/board/st/stm32mp1/spl.c
> index 8b4a529f759a..d63dffd97e87 100644
> --- a/board/st/stm32mp1/spl.c
> +++ b/board/st/stm32mp1/spl.c
> @@ -4,7 +4,6 @@
>   */
>  
>  #include <config.h>
> -#include <common.h>
>  #include <power/pmic.h>
>  #include <power/stpmic1.h>
>  #include <asm/arch/sys_proto.h>
> diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
> index db15d78237ea..97532a8156ff 100644
> --- a/board/st/stm32mp1/stm32mp1.c
> +++ b/board/st/stm32mp1/stm32mp1.c
> @@ -5,7 +5,6 @@
>  
>  #define LOG_CATEGORY LOGC_BOARD
>  
> -#include <common.h>
>  #include <adc.h>
>  #include <bootm.h>
>  #include <button.h>

Hi Tom

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>

Thanks
Patrice

^ permalink raw reply	[flat|nested] 197+ messages in thread

end of thread, other threads:[~2024-05-17  6:06 UTC | newest]

Thread overview: 197+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-01  2:40 [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tom Rini
2024-05-01  2:40 ` [PATCH 002/149] global: Audit usage of <eeprom.h> Tom Rini
2024-05-01  2:40 ` [PATCH 003/149] eeprom.h: Add missing <linux/types.h> Tom Rini
2024-05-01  2:40 ` [PATCH 004/149] splash.h: " Tom Rini
2024-05-01  2:40 ` [PATCH 005/149] extension_board.h: Add missing <linux/list.h> Tom Rini
2024-05-01  2:40 ` [PATCH 006/149] board: BuR: Remove <common.h> and add needed includes Tom Rini
2024-05-01  2:40 ` [PATCH 007/149] board: BuS: " Tom Rini
2024-05-01  2:40 ` [PATCH 008/149] board: CZ.NIC: " Tom Rini
2024-05-01  2:40 ` [PATCH 009/149] board: LaCie: " Tom Rini
2024-05-01  2:40 ` [PATCH 010/149] board: Marvell: " Tom Rini
2024-05-01  2:47   ` Chris Packham
2024-05-01 20:20   ` Tony Dinh
2024-05-02  6:02   ` Stefan Roese
2024-05-01  2:40 ` [PATCH 011/149] board: Seagate: " Tom Rini
2024-05-01 20:21   ` Tony Dinh
2024-05-01  2:40 ` [PATCH 012/149] board: Synology: " Tom Rini
2024-05-01  2:41 ` [PATCH 013/149] board: advantech: " Tom Rini
2024-05-02 12:15   ` Oliver Graute
2024-05-01  2:41 ` [PATCH 014/149] board: alliedtelesis: " Tom Rini
2024-05-01  2:47   ` Chris Packham
2024-05-01  2:41 ` [PATCH 015/149] board: amarula: " Tom Rini
2024-05-01  2:41 ` [PATCH 016/149] board: amlogic: " Tom Rini
2024-05-01  2:41 ` [PATCH 017/149] board: aristainetos: " Tom Rini
2024-05-01  5:05   ` Heiko Schocher
2024-05-01  2:41 ` [PATCH 018/149] board: armadeus: " Tom Rini
2024-05-01  2:41 ` [PATCH 019/149] board: armltd: " Tom Rini
2024-05-01  2:41 ` [PATCH 020/149] board: astro: " Tom Rini
2024-05-01  2:41 ` [PATCH 021/149] board: atmel: " Tom Rini
2024-05-01  2:41 ` [PATCH 022/149] board: avionic-design: " Tom Rini
2024-05-01  2:41 ` [PATCH 023/149] board: beacon: " Tom Rini
2024-05-01  9:22   ` Adam Ford
2024-05-01  2:41 ` [PATCH 024/149] board: beagle: " Tom Rini
2024-05-01  2:41 ` [PATCH 025/149] board: beckhoff: " Tom Rini
2024-05-02  6:47   ` Patrick Brünn
2024-05-01  2:41 ` [PATCH 026/149] board: bluewater: " Tom Rini
2024-05-01  2:41 ` [PATCH 027/149] board: bosch: " Tom Rini
2024-05-01  5:08   ` Heiko Schocher
2024-05-01  2:41 ` [PATCH 028/149] board: boundary: " Tom Rini
2024-05-01  2:41 ` [PATCH 029/149] board: broadcom: " Tom Rini
2024-05-01  3:42   ` William Zhang
2024-05-01  2:41 ` [PATCH 030/149] board: bsh: " Tom Rini
2024-05-01 13:58   ` Michael Nazzareno Trimarchi
2024-05-01  2:41 ` [PATCH 031/149] board: bticino: " Tom Rini
2024-05-01  2:41 ` [PATCH 032/149] board: buffalo: " Tom Rini
2024-05-02  7:18   ` Michael Walle
2024-05-01  2:41 ` [PATCH 033/149] board: cadence: " Tom Rini
2024-05-01  2:41 ` [PATCH 034/149] board: calao: " Tom Rini
2024-05-01  2:41 ` [PATCH 035/149] board: cavium: " Tom Rini
2024-05-01  2:41 ` [PATCH 036/149] board: cei: " Tom Rini
2024-05-01  2:41 ` [PATCH 037/149] board: chipspark: " Tom Rini
2024-05-01  2:41 ` [PATCH 038/149] board: cloos: " Tom Rini
2024-05-01  2:41 ` [PATCH 039/149] board: cloudengines: " Tom Rini
2024-05-01 20:25   ` Tony Dinh
2024-05-01  2:41 ` [PATCH 040/149] board: cobra5272: " Tom Rini
2024-05-02  6:47   ` Angelo Dureghello
2024-05-01  2:41 ` [PATCH 041/149] board: compulab: " Tom Rini
2024-05-01  2:41 ` [PATCH 042/149] board: conclusive: " Tom Rini
2024-05-01  2:41 ` [PATCH 043/149] board: congatec: " Tom Rini
2024-05-02 12:15   ` Oliver Graute
2024-05-01  2:41 ` [PATCH 044/149] board: coreboot: " Tom Rini
2024-05-01  2:41 ` [PATCH 045/149] board: cortina: " Tom Rini
2024-05-01  2:41 ` [PATCH 046/149] board: d-link: " Tom Rini
2024-05-01  2:41 ` [PATCH 047/149] board: data_modul: " Tom Rini
2024-05-01  2:41 ` [PATCH 048/149] board: davinci: " Tom Rini
2024-05-01  9:23   ` Adam Ford
2024-05-01  2:41 ` [PATCH 049/149] board: dfi: " Tom Rini
2024-05-01  2:41 ` [PATCH 050/149] board: dhelectronics: " Tom Rini
2024-05-01  2:41 ` [PATCH 051/149] board: ea: " Tom Rini
2024-05-01  2:41 ` [PATCH 052/149] board: eets: " Tom Rini
2024-05-01  2:41 ` [PATCH 053/149] board: efi: " Tom Rini
2024-05-01  2:41 ` [PATCH 054/149] board: egnite: " Tom Rini
2024-05-01  2:41 ` [PATCH 055/149] board: elgin: " Tom Rini
2024-05-01  2:41 ` [PATCH 056/149] board: embest: " Tom Rini
2024-05-01  2:41 ` [PATCH 057/149] board: emulation: " Tom Rini
2024-05-01  2:41 ` [PATCH 058/149] board: engicam: " Tom Rini
2024-05-01  2:41 ` [PATCH 059/149] board: esd: " Tom Rini
2024-05-01  2:41 ` [PATCH 060/149] board: firefly: " Tom Rini
2024-05-07  7:41   ` Kever Yang
2024-05-01  2:41 ` [PATCH 061/149] board: freescale: " Tom Rini
2024-05-01 11:26   ` Peng Fan
2024-05-01 12:02   ` Jason Liu
2024-05-01  2:41 ` [PATCH 062/149] board: friendlyarm: " Tom Rini
2024-05-08 17:39   ` Stefan Bosch
2024-05-01  2:41 ` [PATCH 063/149] board: gardena: " Tom Rini
2024-05-01  2:41 ` [PATCH 064/149] board: gateworks: " Tom Rini
2024-05-01 16:06   ` Tim Harvey
2024-05-01  2:41 ` [PATCH 065/149] board: gdsys: " Tom Rini
2024-05-01  2:41 ` [PATCH 066/149] board: ge: " Tom Rini
2024-05-01 23:58   ` [PATCHv2 " Tom Rini
2024-05-02  8:57     ` Ian Ray
2024-05-01  2:41 ` [PATCH 067/149] board: google: " Tom Rini
2024-05-01  2:41 ` [PATCH 068/149] board: grinn: " Tom Rini
2024-05-01  2:41 ` [PATCH 069/149] board: highbank: " Tom Rini
2024-05-01  2:41 ` [PATCH 070/149] board: hisilicon: " Tom Rini
2024-05-02  0:45   ` Igor Opaniuk
2024-05-01  2:41 ` [PATCH 071/149] board: hoperun: " Tom Rini
2024-05-01  6:29   ` Biju Das
2024-05-01  2:41 ` [PATCH 072/149] board: imgtec: " Tom Rini
2024-05-01  2:42 ` [PATCH 073/149] board: intel: " Tom Rini
2024-05-02  7:20   ` Andy Shevchenko
2024-05-01  2:42 ` [PATCH 074/149] board: inversepath: " Tom Rini
2024-05-01  2:42 ` [PATCH 075/149] board: iomega: " Tom Rini
2024-05-01 20:25   ` Tony Dinh
2024-05-01  2:42 ` [PATCH 076/149] board: isee: " Tom Rini
2024-05-01  2:42 ` [PATCH 077/149] board: k+p: " Tom Rini
2024-05-01  2:42 ` [PATCH 078/149] board: keymile: " Tom Rini
2024-05-01  5:09   ` Heiko Schocher
2024-05-03  6:36   ` Holger Brunck
2024-05-01  2:42 ` [PATCH 079/149] board: kobol: " Tom Rini
2024-05-01  2:42 ` [PATCH 080/149] board: kontron: " Tom Rini
2024-05-02  7:18   ` Michael Walle
2024-05-06  7:17   ` Frieder Schrempf
2024-05-01  2:42 ` [PATCH 081/149] board: kosagi: " Tom Rini
2024-05-01  2:42 ` [PATCH 082/149] board: l+g: " Tom Rini
2024-05-01  2:42 ` [PATCH 083/149] board: lego: " Tom Rini
2024-05-01 15:28   ` David Lechner
2024-05-01  2:42 ` [PATCH 084/149] board: lg: " Tom Rini
2024-05-01  2:42 ` [PATCH 085/149] board: liebherr: " Tom Rini
2024-05-01  2:42 ` [PATCH 086/149] board: logicpd: " Tom Rini
2024-05-01  9:23   ` Adam Ford
2024-05-01  2:42 ` [PATCH 087/149] board: maxbcm: " Tom Rini
2024-05-01  2:42 ` [PATCH 088/149] board: mediatek: " Tom Rini
2024-05-01  2:42 ` [PATCH 089/149] board: menlo: " Tom Rini
2024-05-01  2:42 ` [PATCH 090/149] board: microchip: " Tom Rini
2024-05-01  2:42 ` [PATCH 091/149] board: mikrotik: " Tom Rini
2024-05-01  2:42 ` [PATCH 092/149] board: mntre: " Tom Rini
2024-05-01  2:42 ` [PATCH 093/149] board: msc: " Tom Rini
2024-05-02  8:57   ` Ian Ray
2024-05-01  2:42 ` [PATCH 094/149] board: mscc: " Tom Rini
2024-05-01  2:42 ` [PATCH 095/149] board: myir: " Tom Rini
2024-05-01  2:42 ` [PATCH 096/149] board: netgear: " Tom Rini
2024-05-01  2:42 ` [PATCH 097/149] board: novtech: " Tom Rini
2024-05-01  2:42 ` [PATCH 098/149] board: nuvoton: " Tom Rini
2024-05-01  2:42 ` [PATCH 099/149] board: nvidia: " Tom Rini
2024-05-01  2:42 ` [PATCH 100/149] board: olimex: " Tom Rini
2024-05-01  2:42 ` [PATCH 101/149] board: openpiton: " Tom Rini
2024-05-01  2:42 ` [PATCH 102/149] board: out4: " Tom Rini
2024-05-01 21:30   ` Oleh Kravchenko
2024-05-01  2:42 ` [PATCH 103/149] board: phytec: " Tom Rini
2024-05-03  8:47   ` Wadim Egorov
2024-05-07  7:28   ` Teresa Remmet
2024-05-01  2:42 ` [PATCH 104/149] board: phytium: " Tom Rini
2024-05-01  2:42 ` [PATCH 105/149] board: polyhex: " Tom Rini
2024-05-01  2:42 ` [PATCH 106/149] board: purism: " Tom Rini
2024-05-01  2:42 ` [PATCH 107/149] board: qca: " Tom Rini
2024-05-01  2:42 ` [PATCH 108/149] board: qualcomm: " Tom Rini
2024-05-01  7:06   ` Sumit Garg
2024-05-01  2:42 ` [PATCH 109/149] board: raidsonic: " Tom Rini
2024-05-01  2:42 ` [PATCH 110/149] board: raspberrypi: " Tom Rini
2024-05-01  2:42 ` [PATCH 111/149] board: rockchip: " Tom Rini
2024-05-07  7:41   ` Kever Yang
2024-05-01  2:42 ` [PATCH 112/149] board: ronetix: " Tom Rini
2024-05-01  2:42 ` [PATCH 113/149] board: samsung: " Tom Rini
2024-05-01  2:42 ` [PATCH 114/149] board: schneider: " Tom Rini
2024-05-01  2:42 ` [PATCH 115/149] board: seeed: " Tom Rini
2024-05-01  2:42 ` [PATCH 116/149] board: siemens: " Tom Rini
2024-05-01  5:09   ` Heiko Schocher
2024-05-01  2:42 ` [PATCH 117/149] board: silinux: " Tom Rini
2024-05-01  2:42 ` [PATCH 118/149] board: sipeed: " Tom Rini
2024-05-01  4:30   ` Sean Anderson
2024-05-01  2:42 ` [PATCH 119/149] board: skyworth: " Tom Rini
2024-05-01  2:42 ` [PATCH 120/149] board: socionext: " Tom Rini
2024-05-01  2:42 ` [PATCH 121/149] board: socrates: " Tom Rini
2024-05-01  5:11   ` Heiko Schocher
2024-05-01  2:42 ` [PATCH 122/149] board: softing: " Tom Rini
2024-05-01  2:42 ` [PATCH 123/149] board: solidrun: " Tom Rini
2024-05-01  2:42 ` [PATCH 124/149] board: somlabs: " Tom Rini
2024-05-01  2:42 ` [PATCH 125/149] board: sr1500: " Tom Rini
2024-05-01  2:42 ` [PATCH 126/149] board: st: " Tom Rini
2024-05-17  6:06   ` Patrice CHOTARD
2024-05-01  2:42 ` [PATCH 127/149] board: ste: " Tom Rini
2024-05-01  2:42 ` [PATCH 128/149] board: storopack: " Tom Rini
2024-05-01  2:42 ` [PATCH 129/149] board: sysam: " Tom Rini
2024-05-01  2:42 ` [PATCH 130/149] board: tcl: " Tom Rini
2024-05-01  2:42 ` [PATCH 131/149] board: technexion: " Tom Rini
2024-05-01  2:42 ` [PATCH 132/149] board: terasic: " Tom Rini
2024-05-01  2:43 ` [PATCH 133/149] board: thead: " Tom Rini
2024-05-01  2:43 ` [PATCH 134/149] board: theadorable: " Tom Rini
2024-05-01  2:43 ` [PATCH 135/149] board: ti: " Tom Rini
2024-05-01  2:43 ` [PATCH 136/149] board: timll: " Tom Rini
2024-05-01  2:43 ` [PATCH 137/149] board: toradex: " Tom Rini
2024-05-01  2:43 ` [PATCH 138/149] board: tplink: " Tom Rini
2024-05-01  2:43 ` [PATCH 139/149] board: tq: " Tom Rini
2024-05-01  2:43 ` [PATCH 140/149] board: traverse: " Tom Rini
2024-05-01  2:43 ` [PATCH 141/149] board: udoo: " Tom Rini
2024-05-01  2:43 ` [PATCH 142/149] board: variscite: " Tom Rini
2024-05-01  2:43 ` [PATCH 143/149] board: vscom: " Tom Rini
2024-05-01  2:43 ` [PATCH 144/149] board: wandboard: " Tom Rini
2024-05-01  2:43 ` [PATCH 145/149] board: warp7: " Tom Rini
2024-05-01  2:43 ` [PATCH 146/149] board: work-microwave: " Tom Rini
2024-05-01  2:43 ` [PATCH 147/149] board: xen: " Tom Rini
2024-05-01  2:43 ` [PATCH 148/149] board: xilinx: " Tom Rini
2024-05-01  2:43 ` [PATCH 149/149] board: zyxel: " Tom Rini
2024-05-01 20:29   ` Tony Dinh
2024-05-01  6:33 ` [PATCH 001/149] global: Make <asm/global_data.h> include <asm/u-boot.h> Tony Dinh
2024-05-01 13:49   ` Tom Rini
2024-05-07 14:02 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.