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.

Acked-by: Jason Liu <jason.hui.liu@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2024-04-30 20:41:48 -06:00
parent 1ec524a36f
commit b8d59ba049
166 changed files with 115 additions and 166 deletions

View File

@@ -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

View File

@@ -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 */

View File

@@ -4,8 +4,9 @@
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <linux/types.h>
/*
* CADMUS Board System Registers

View File

@@ -3,7 +3,6 @@
* Copyright 2004 Freescale Semiconductor.
*/
#include <common.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include "cadmus.h"

View File

@@ -3,7 +3,6 @@
* Copyright 2006 Freescale Semiconductor.
*/
#include <common.h>
#include <pci.h>
/* Config the VIA chip */

View File

@@ -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[])

View File

@@ -4,7 +4,6 @@
*
*/
#include <common.h>
#include <command.h>
#include <i2c.h>
#include <asm/global_data.h>

View File

@@ -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>

View File

@@ -4,7 +4,7 @@
* Copyright 2022 NXP
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <env.h>
#include <init.h>

View File

@@ -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>

View File

@@ -5,7 +5,7 @@
* Copyright 2021 Microsoft Corporation
*/
#include <common.h>
#include <stdio.h>
#include <i2c.h>
#include "i2c_common.h"

View File

@@ -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"

View File

@@ -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>

View File

@@ -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>

View File

@@ -4,7 +4,6 @@
* Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
*/
#include <common.h>
#include <errno.h>
#include <i2c.h>
#include <log.h>

View File

@@ -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>

View File

@@ -29,7 +29,6 @@
* boot from the alternate bank.
*/
#include <common.h>
#include <command.h>
#include <asm/io.h>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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 */

View File

@@ -3,7 +3,6 @@
* Copyright 2014 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <errno.h>
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>

View File

@@ -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>

View File

@@ -3,7 +3,6 @@
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <mmc.h>
#include <malloc.h>

View File

@@ -6,7 +6,6 @@
* Timur Tabi (timur@freescale.com)
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <i2c.h>

View File

@@ -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>

View File

@@ -3,7 +3,6 @@
* Copyright 2018 NXP
*/
#include <common.h>
#include <env.h>
#include <init.h>
#include <miiphy.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2019, 2021 NXP
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <env.h>
#include <init.h>
#include <asm/global_data.h>

View File

@@ -4,7 +4,6 @@
*
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>

View File

@@ -4,7 +4,6 @@
*
*/
#include <common.h>
#include <hang.h>
#include <init.h>
#include <log.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2018 NXP
*/
#include <common.h>
#include <env.h>
#include <init.h>
#include <malloc.h>

View File

@@ -4,7 +4,6 @@
*/
#include <linux/kernel.h>
#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>

View File

@@ -4,7 +4,6 @@
*/
#include <linux/kernel.h>
#include <common.h>
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>

View File

@@ -4,7 +4,7 @@
*
*/
#include <common.h>
#include <config.h>
#include <hang.h>
#include <image.h>
#include <init.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2018 NXP
*/
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <errno.h>

View File

@@ -4,7 +4,6 @@
*
*/
#include <common.h>
#include <dm.h>
#include <image.h>
#include <init.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2018 NXP
*/
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <errno.h>

View File

@@ -4,7 +4,6 @@
*
*/
#include <common.h>
#include <dm.h>
#include <image.h>
#include <init.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2020 NXP
*/
#include <common.h>
#include <miiphy.h>
#include <netdev.h>
#include <asm/arch/imx8ulp-pins.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2021 NXP
*/
#include <common.h>
#include <init.h>
#include <spl.h>
#include <asm/io.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2022 NXP
*/
#include <common.h>
#include <env.h>
#include <init.h>
#include <miiphy.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2022 NXP
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <hang.h>

View File

@@ -4,7 +4,6 @@
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>

View File

@@ -4,7 +4,6 @@
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>

View File

@@ -4,7 +4,6 @@
* Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
*/
#include <common.h>
#include <dm.h>
#include <init.h>
#include <log.h>

View File

@@ -4,7 +4,6 @@
* Copyright 2017 NXP
*/
#include <common.h>
#include <dm.h>
#include <net.h>
#include <asm/io.h>

View File

@@ -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>

View File

@@ -4,7 +4,7 @@
* Copyright 2017 NXP
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <asm/io.h>
#include <netdev.h>

View File

@@ -4,7 +4,7 @@
* Copyright 2021 NXP
*/
#include <common.h>
#include <config.h>
#include <i2c.h>
#include <fdt_support.h>
#include <asm/cache.h>

View File

@@ -4,7 +4,7 @@
* Copyright 2017 NXP
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <net.h>
#include <asm/io.h>

View File

@@ -4,7 +4,7 @@
* Copyright 2021 NXP
*/
#include <common.h>
#include <config.h>
#include <command.h>
#include <fdt_support.h>
#include <hang.h>

View File

@@ -4,7 +4,7 @@
* Copyright 2021 NXP
*/
#include <common.h>
#include <config.h>
#include <clock_legacy.h>
#include <fdt_support.h>
#include <init.h>

View File

@@ -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>

View File

@@ -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>

View File

@@ -3,7 +3,7 @@
* Copyright 2019-2022 NXP
*/
#include <common.h>
#include <config.h>
#include <display_options.h>
#include <init.h>
#include <malloc.h>

View File

@@ -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

View File

@@ -4,7 +4,7 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <config.h>
#include <log.h>
#include <net.h>
#include <asm/io.h>

View File

@@ -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>

View File

@@ -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"

View File

@@ -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>

View File

@@ -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>

View File

@@ -3,7 +3,6 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <fsl_ddr_sdram.h>
#include <asm/global_data.h>

View File

@@ -2,7 +2,7 @@
/*
* Copyright 2019 NXP
*/
#include <common.h>
#include <config.h>
#include <fdt_support.h>
#include <net.h>
#include <asm/io.h>

View File

@@ -3,7 +3,7 @@
* Copyright 2019, 2021 NXP
*/
#include <common.h>
#include <config.h>
#include <i2c.h>
#include <fdt_support.h>
#include <init.h>

View File

@@ -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

View File

@@ -4,7 +4,7 @@
* Copyright 2018-2020 NXP
*/
#include <common.h>
#include <config.h>
#include <log.h>
#include <net.h>
#include <asm/io.h>

View File

@@ -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>

View File

@@ -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"

View File

@@ -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>

View File

@@ -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>

View File

@@ -4,7 +4,7 @@
* Copyright 2021 NXP
*/
#include <common.h>
#include <config.h>
#include <i2c.h>
#include <fdt_support.h>
#include <init.h>

View File

@@ -3,7 +3,6 @@
* Copyright 2017 NXP
*/
#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <log.h>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -4,7 +4,6 @@
*
*/
#include <common.h>
#include <netdev.h>
#include <exports.h>
#include <fsl-mc/fsl_mc.h>

View File

@@ -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>

View File

@@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>

View File

@@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>

View File

@@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>

View File

@@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <asm/io.h>
#include <asm/immap.h>

View File

@@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <init.h>
#include <asm/global_data.h>
#include <asm/immap.h>

View File

@@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <asm/io.h>
#include <asm/immap.h>

View File

@@ -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>

View File

@@ -3,7 +3,6 @@
* Copyright 2008 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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 */

View File

@@ -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>

View File

@@ -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>

Some files were not shown because too many files have changed in this diff Show More