[PATCH 061/149] board: freescale: Remove <common.h> and add needed includes
Peng Fan
peng.fan at nxp.com
Wed May 1 13:26:02 CEST 2024
> 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 at konsulko.com>
Acked-by: Peng Fan <peng.fan at nxp.com>
> ---
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <festevam at gmail.com>
> Cc: "NXP i.MX U-Boot Team" <uboot-imx at nxp.com>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Giulio Benetti <giulio.benetti at benettiengineering.com>
> Cc: Jesse Taube <Mr.Bossman075 at gmail.com>
> Cc: Pramod Kumar <pramod.kumar_1 at nxp.com>
> Cc: Alison Wang <alison.wang at nxp.com>
> Cc: Tang Yuantian <andy.tang at nxp.com>
> Cc: Mingkai Hu <mingkai.hu at nxp.com>
> Cc: Ashish Kumar <Ashish.Kumar at nxp.com>
> Cc: Priyanka Jain <priyanka.jain at nxp.com>
> Cc: Wasim Khan <wasim.khan at nxp.com>
> Cc: Meenakshi Aggarwal <meenakshi.aggarwal at nxp.com>
> Cc: Angelo Dureghello <angelo at kernel-space.org>
> Cc: TsiChung Liew <Tsi-Chung.Liew at nxp.com>
> Cc: Sinan Akman <sinan at writeme.com>
> Cc: Otavio Salvador <otavio at ossystems.com.br>
> Cc: Jason Liu <jason.hui.liu at nxp.com>
> Cc: Eric Nelson <eric at nelint.com>
> Cc: Adrian Alonso <adrian.alonso at nxp.com>
> Cc: Qiang Zhao <qiang.zhao at nxp.com>
> Cc: Shengzhou Liu <Shengzhou.Liu at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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
More information about the U-Boot
mailing list