common: Move reset_phy() to net.h

This is a network function so let's move it into that header.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2019-12-28 10:44:48 -07:00 committed by Jagan Teki
parent f9aaf98451
commit 9d89bcd8e5
34 changed files with 40 additions and 3 deletions

View File

@ -9,6 +9,7 @@
*/
#include <common.h>
#include <net.h>
#include <asm/emif.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>

View File

@ -9,6 +9,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/arch/orion5x.h>
#include "../common/common.h"
#include <spl.h>

View File

@ -12,6 +12,7 @@
#include <command.h>
#include <env.h>
#include <i2c.h>
#include <net.h>
#include <asm/mach-types.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>

View File

@ -11,6 +11,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <net.h>
#include <asm/mach-types.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>

View File

@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <net.h>
#include <linux/io.h>
#include <miiphy.h>
#include <netdev.h>

View File

@ -10,6 +10,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>

View File

@ -7,6 +7,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/mach-types.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>

View File

@ -12,6 +12,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/mach-types.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>

View File

@ -7,6 +7,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/mach-types.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>

View File

@ -10,6 +10,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>
#include <asm/arch/cpu.h>

View File

@ -13,6 +13,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/mach-types.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>

View File

@ -10,6 +10,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/mach-types.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>

View File

@ -7,6 +7,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/setup.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <net.h>
#include <linux/io.h>
#include <miiphy.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <netdev.h>
#include <led.h>
#include <linux/io.h>

View File

@ -7,6 +7,7 @@
#include <common.h>
#include <debug_uart.h>
#include <net.h>
#include <asm/io.h>
#include <asm/arch/at91sam9260_matrix.h>
#include <asm/arch/at91sam9_smc.h>

View File

@ -7,6 +7,7 @@
#include <common.h>
#include <debug_uart.h>
#include <net.h>
#include <vsprintf.h>
#include <linux/sizes.h>
#include <asm/arch/at91sam9263.h>

View File

@ -7,6 +7,7 @@
#include <common.h>
#include <debug_uart.h>
#include <net.h>
#include <vsprintf.h>
#include <asm/io.h>
#include <asm/arch/clk.h>

View File

@ -11,6 +11,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>

View File

@ -11,6 +11,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
#include <net.h>
#include <asm/io.h>
#include <netdev.h>
#include <fm_eth.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
#include <net.h>
#include <asm/io.h>
#include <netdev.h>
#include <fm_eth.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <net.h>
#include <netdev.h>
#include <asm/io.h>
#include <asm/arch/fsl_serdes.h>

View File

@ -5,6 +5,7 @@
#include <common.h>
#include <command.h>
#include <net.h>
#include <netdev.h>
#include <malloc.h>
#include <fsl_mdio.h>

View File

@ -5,6 +5,7 @@
#include <common.h>
#include <malloc.h>
#include <errno.h>
#include <net.h>
#include <netdev.h>
#include <fsl_ifc.h>
#include <fsl_ddr.h>

View File

@ -5,6 +5,7 @@
#include <common.h>
#include <env.h>
#include <net.h>
#include <netdev.h>
#include <asm/io.h>
#include <asm/arch/fsl_serdes.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <net.h>
#include <netdev.h>
#include <malloc.h>
#include <fsl_mdio.h>

View File

@ -8,6 +8,7 @@
#include <env.h>
#include <hwconfig.h>
#include <command.h>
#include <net.h>
#include <netdev.h>
#include <malloc.h>
#include <fsl_mdio.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <net.h>
#include <netdev.h>
#include <malloc.h>
#include <fsl_mdio.h>

View File

@ -16,6 +16,7 @@
#include <i2c.h>
#include <init.h>
#include <nand.h>
#include <net.h>
#include <netdev.h>
#include <miiphy.h>
#include <spi.h>

View File

@ -7,6 +7,7 @@
#include <common.h>
#include <miiphy.h>
#include <net.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>

View File

@ -14,6 +14,7 @@
#include <cpu_func.h>
#include <exports.h>
#include <irq_func.h>
#include <net.h>
#include <u-boot/crc.h>
/* TODO: can we just include all these headers whether needed or not? */
#if defined(CONFIG_CMD_BEDBUG)

View File

@ -87,9 +87,6 @@ const char *symbol_lookup(unsigned long addr, unsigned long *caddr);
long get_ram_size (long *, long);
phys_size_t get_effective_memsize(void);
/* $(BOARD)/$(BOARD).c */
void reset_phy (void);
#if !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) && defined(CONFIG_SYS_I2C_EEPROM_ADDR)
# define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
#endif

View File

@ -917,4 +917,12 @@ static inline struct in_addr env_get_ip(char *var)
{
return string_to_ip(env_get(var));
}
/**
* reset_phy() - Reset the Ethernet PHY
*
* This should be implemented by boards if CONFIG_RESET_PHY_R is enabled
*/
void reset_phy(void);
#endif /* __NET_H__ */