net: Remove <common.h> and add needed includes

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

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2024-05-01 19:31:02 -06:00
parent 57f9f79812
commit 0e407c7420
149 changed files with 26 additions and 149 deletions

View File

@ -6,7 +6,6 @@
* Copyright (C) 2019 Rosy Song <rosysong@rosinson.com>
*/
#include <common.h>
#include <clock_legacy.h>
#include <cpu_func.h>
#include <dm.h>

View File

@ -8,7 +8,6 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>

View File

@ -7,7 +7,6 @@
* This file is inspired from the Linux kernel driver drivers/net/phy/mdio-aspeed.c
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <miiphy.h>

View File

@ -11,7 +11,6 @@
#endif
#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <malloc.h>

View File

@ -3,7 +3,6 @@
* Copyright 2014 Broadcom Corporation.
*/
#include <common.h>
#include <log.h>
#include <malloc.h>
#include <net.h>

View File

@ -6,7 +6,6 @@
* Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dma.h>

View File

@ -6,7 +6,6 @@
* Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dma.h>

View File

@ -3,7 +3,6 @@
* Copyright 2019-2021 Broadcom.
*/
#include <common.h>
#include <asm/io.h>
#include <dm.h>

View File

@ -3,7 +3,6 @@
* Copyright 2010-2011 Calxeda, Inc.
*/
#include <common.h>
#include <malloc.h>
#include <net.h>
#include <linux/compiler.h>

View File

@ -7,7 +7,6 @@
* Ethernet MAC Driver for all supported CAxxxx SoCs
*/
#include <common.h>
#include <command.h>
#include <malloc.h>
#include <net.h>

View File

@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <malloc.h>

View File

@ -8,7 +8,6 @@
* Designware ethernet IP driver for U-Boot
*/
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>

View File

@ -49,7 +49,6 @@
* TODO: external MII is not functional, only internal at the moment.
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <malloc.h>

View File

@ -29,7 +29,6 @@
#define LOG_CATEGORY UCLASS_ETH
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>

View File

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

View File

@ -5,7 +5,6 @@
* Qcom DWMAC specific glue layer
*/
#include <common.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
#include <asm/io.h>

View File

@ -8,7 +8,6 @@
* part in order to simplify future porting of fixes and support for other SoCs.
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dm/device_compat.h>

View File

@ -4,7 +4,6 @@
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
*/
#include <common.h>
#include <asm/cache.h>
#include <asm/gpio.h>
#include <clk.h>

View File

@ -3,7 +3,6 @@
* Copyright (C) 2021 BayLibre, SAS
*/
#include <common.h>
#include <asm/io.h>
#include <dm.h>
#include <phy.h>

View File

@ -5,7 +5,6 @@
* Actions DWMAC specific glue layer
*/
#include <common.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <dm.h>

View File

@ -5,7 +5,6 @@
* Altera SoCFPGA EMAC extras
*/
#include <common.h>
#include <asm/arch/secure_reg_helper.h>
#include <asm/arch/system_manager.h>
#include <asm/io.h>

View File

@ -29,7 +29,6 @@ tested on both gig copper and gig fiber boards
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <command.h>
#include <cpu_func.h>
#include <dm.h>

View File

@ -1,9 +1,9 @@
#include <common.h>
#include <command.h>
#include <console.h>
#include <linux/delay.h>
#include "e1000.h"
#include <malloc.h>
#include <vsprintf.h>
#include <linux/compiler.h>
/*-----------------------------------------------------------------------

View File

@ -4,7 +4,7 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <config.h>
#include <asm/io.h>
#include <cpu_func.h>
#include <malloc.h>

View File

@ -5,7 +5,6 @@
#define LOG_CATEGORY UCLASS_ETH_PHY
#include <common.h>
#include <dm.h>
#include <log.h>
#include <net.h>

View File

@ -9,7 +9,6 @@
* Copyright (C) 2016 Cadence Design Systems Inc.
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>

View File

@ -7,7 +7,6 @@
* (C) Copyright 2007 Pengutronix, Juergen Beisert <j.beisert@pengutronix.de>
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <env.h>

View File

@ -3,7 +3,7 @@
* Copyright 2012 Freescale Semiconductor, Inc.
* Roy Zang <tie-fei.zang@freescale.com>
*/
#include <common.h>
#include <config.h>
#include <env.h>
#include <phy.h>
#include <fm_eth.h>

View File

@ -3,7 +3,6 @@
* Copyright 2009-2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <asm/types.h>
#include <asm/io.h>
#include <fsl_dtsec.h>

View File

@ -4,7 +4,7 @@
* Copyright 2020 NXP
* Dave Liu <daveliu@freescale.com>
*/
#include <common.h>
#include <config.h>
#include <log.h>
#include <part.h>
#include <asm/io.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2016 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>

View File

@ -7,7 +7,6 @@
/* MAXFRM - maximum frame length */
#define MAXFRM_MASK 0x0000ffff
#include <common.h>
#include <log.h>
#include <phy.h>
#include <asm/types.h>

View File

@ -5,7 +5,6 @@
* Roy Zang <tie-fei.zang@freescale.com>
* Some part is taken from tsec.c
*/
#include <common.h>
#include <miiphy.h>
#include <phy.h>
#include <asm/io.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2011 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>

View File

@ -4,7 +4,7 @@
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/immap_85xx.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2013 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>

View File

@ -5,7 +5,7 @@
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/immap_85xx.h>

View File

@ -3,7 +3,7 @@
* Copyright 2012 Freescale Semiconductor, Inc.
* Roy Zang <tie-fei.zang@freescale.com>
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>

View File

@ -7,7 +7,6 @@
/* MAXFRM - maximum frame length */
#define MAXFRM_MASK 0x0000ffff
#include <common.h>
#include <phy.h>
#include <asm/types.h>
#include <asm/io.h>

View File

@ -4,7 +4,6 @@
* Andy Fleming <afleming@gmail.com>
* Some part is taken from tsec.c
*/
#include <common.h>
#include <miiphy.h>
#include <phy.h>
#include <asm/io.h>

View File

@ -3,7 +3,7 @@
* Copyright 2014 Freescale Semiconductor, Inc.
* Copyright 2017-2018, 2020-2021 NXP
*/
#include <common.h>
#include <config.h>
#include <command.h>
#include <cpu_func.h>
#include <env.h>

View File

@ -8,7 +8,6 @@
#include <fsl-mc/fsl_mc_sys.h>
#include <fsl-mc/fsl_mc_cmd.h>
#include <common.h>
#include <errno.h>
#include <asm/io.h>
#include <linux/delay.h>

View File

@ -4,7 +4,6 @@
* Copyright 2017-2021 NXP
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdt_support.h>

View File

@ -4,7 +4,6 @@
* Copyright 2019 NXP
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <pci.h>

View File

@ -3,7 +3,6 @@
* Copyright 2020 NXP
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <miiphy.h>

View File

@ -5,7 +5,6 @@
* Mingkai Hu <Mingkai.hu@freescale.com>
*/
#include <common.h>
#include <miiphy.h>
#include <phy.h>
#include <fsl_mdio.h>

View File

@ -11,7 +11,6 @@
* Copyright (C) 2018, IBM Corporation.
*/
#include <common.h>
#include <clk.h>
#include <reset.h>
#include <cpu_func.h>

View File

@ -7,7 +7,6 @@
*/
#include <config.h>
#include <common.h>
#include <cpu_func.h>
#include <env.h>
#include <malloc.h>

View File

@ -5,7 +5,6 @@
* Rockchip GMAC ethernet IP driver for U-Boot
*/
#include <common.h>
#include <dm.h>
#include <clk.h>
#include <log.h>

View File

@ -8,7 +8,6 @@
#include <malloc.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <common.h>
#include <console.h>
#include <linux/bitops.h>
#include <linux/bug.h>

View File

@ -6,7 +6,6 @@
#include <log.h>
#include <asm/io.h>
#include <common.h>
#include <command.h>
#include <malloc.h>
#include <net.h>

View File

@ -4,7 +4,6 @@
* Copyright 2017, 2023 NXP
*/
#include <common.h>
#include <cpu_func.h>
#include <dm/device_compat.h>
#include <fsl-mc/fsl_dpmac.h>

View File

@ -3,7 +3,6 @@
* Copyright (C) 2015 Freescale Semiconductor
*/
#include <common.h>
#include <asm/io.h>
#include <asm/types.h>
#include <malloc.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2017 NXP
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fsl-mc/ldpaa_wriop.h>
#include <asm/io.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2015 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fsl-mc/ldpaa_wriop.h>
#include <asm/io.h>

View File

@ -2,7 +2,7 @@
/*
* Copyright 2018, 2020 NXP
*/
#include <common.h>
#include <config.h>
#include <phy.h>
#include <fsl-mc/ldpaa_wriop.h>
#include <asm/io.h>

View File

@ -2,7 +2,6 @@
/*
* Copyright (C) 2005-2006 Atmel Corporation
*/
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>

View File

@ -10,7 +10,7 @@
* (C) 2019 Angelo Dureghello <angelo.dureghello@timesys.com>
*/
#include <common.h>
#include <config.h>
#include <env.h>
#include <hang.h>
#include <malloc.h>

View File

@ -4,7 +4,6 @@
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
*/
#include <common.h>
#include <config.h>
#include <net.h>
#include <netdev.h>

View File

@ -11,7 +11,6 @@
*/
#include <asm/io.h>
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <linux/bitops.h>

View File

@ -4,7 +4,6 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <command.h>
#include <hang.h>
#include <malloc.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <malloc.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2019 Microsemi Corporation
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <malloc.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2018 Microsemi Corporation
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <log.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2019 Microsemi Corporation
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <log.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2019 Microsemi Corporation
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <malloc.h>

View File

@ -13,7 +13,6 @@
* copyrights here, so I can't add them here.
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>

View File

@ -6,7 +6,6 @@
* Author: Mark Lee <mark-mc.lee@mediatek.com>
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>

View File

@ -23,7 +23,6 @@
* on the mv88e6176 via an SGMII interface.
*/
#include <common.h>
#include <dm/device.h>
#include <dm/device_compat.h>
#include <dm/device-internal.h>

View File

@ -11,7 +11,6 @@
* Copyright (C) 2002 rabeeh@galileo.co.il
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <net.h>

View File

@ -4,7 +4,6 @@
* Author: Ken Ma<make@marvell.com>
*/
#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>

View File

@ -12,7 +12,6 @@
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>

View File

@ -13,7 +13,6 @@
* warranty of any kind, whether express or implied.
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <asm/cache.h>

View File

@ -4,12 +4,12 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <common.h>
#include <command.h>
#include <env.h>
#include <log.h>
#include <stdio_dev.h>
#include <net.h>
#include <vsprintf.h>
#ifndef CFG_NETCONSOLE_BUFFER_SIZE
#define CFG_NETCONSOLE_BUFFER_SIZE 512

View File

@ -3,7 +3,6 @@
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>

View File

@ -5,7 +5,6 @@
* Intel Platform Controller Hub EG20T (codename Topcliff) GMAC Driver
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>

View File

@ -6,7 +6,6 @@
* Linux driver pcnet32.c written 1996-1999 by Thomas Bogendoerfer.
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>

View File

@ -9,7 +9,6 @@
* @brief PFE utility commands
*/
#include <common.h>
#include <command.h>
#include <log.h>
#include <linux/delay.h>

View File

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

View File

@ -3,7 +3,7 @@
* Copyright 2015-2016 Freescale Semiconductor, Inc.
* Copyright 2017 NXP
*/
#include <common.h>
#include <config.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>

View File

@ -6,7 +6,6 @@
* Copyright 2022 Variscite Ltd.
* Copyright 2022 Josua Mayer <josua@solid-run.com>
*/
#include <common.h>
#include <phy.h>
#include <linux/bitops.h>
#include <linux/bitfield.h>

View File

@ -6,7 +6,6 @@
* Copyright 2018, 2021 NXP
*/
#include <config.h>
#include <common.h>
#include <dm.h>
#include <log.h>
#include <net.h>

View File

@ -6,7 +6,6 @@
* author Andy Fleming
* Copyright (c) 2019 Michael Walle <michael@walle.cc>
*/
#include <common.h>
#include <phy.h>
#include <dm/device_compat.h>
#include <linux/bitfield.h>

View File

@ -22,7 +22,6 @@
* cover other switches would be trivial.
*/
#include <common.h>
#include <command.h>
#include <linux/bitops.h>
#include <linux/delay.h>

View File

@ -5,7 +5,6 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
#include <common.h>
#include <phy.h>
#include <linux/delay.h>

View File

@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <malloc.h>
#include <linux/ctype.h>

View File

@ -8,7 +8,6 @@
*/
#include <config.h>
#include <common.h>
#include <log.h>
#include <malloc.h>
#include <linux/ctype.h>

View File

@ -5,7 +5,6 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
#include <common.h>
#include <phy.h>
#define MIIM_DM9161_SCR 0x10

View File

@ -3,7 +3,6 @@
* TI PHY drivers
*
*/
#include <common.h>
#include <log.h>
#include <phy.h>
#include <dm/devres.h>

View File

@ -4,7 +4,6 @@
*
*/
#include <common.h>
#include <phy.h>
#include <linux/compat.h>
#include <malloc.h>

View File

@ -5,7 +5,6 @@
* Copyright (C) 2022 Xilinx, Inc.
*/
#include <common.h>
#include <dm/device_compat.h>
#include <dm/device-internal.h>
#include <dm/lists.h>

View File

@ -6,7 +6,6 @@
*/
#include <config.h>
#include <common.h>
#include <malloc.h>
#include <phy.h>
#include <dm.h>

View File

@ -7,7 +7,6 @@
*
* Based loosely off of Linux's PHY Lib
*/
#include <common.h>
#include <miiphy.h>
#include <phy.h>

View File

@ -1,5 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <phy.h>
#include <linux/bitfield.h>

View File

@ -5,7 +5,6 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
#include <common.h>
#include <phy.h>
/* LXT971 Status 2 registers */

View File

@ -5,7 +5,6 @@
* Copyright 2010-2011 Freescale Semiconductor, Inc.
* author Andy Fleming
*/
#include <common.h>
#include <errno.h>
#include <marvell_phy.h>
#include <phy.h>

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