]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: Move reset_phy() to net.h
authorSimon Glass <sjg@chromium.org>
Sat, 28 Dec 2019 17:44:48 +0000 (10:44 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 24 Jan 2020 17:36:48 +0000 (23:06 +0530)
This is a network function so let's move it into that header.

Signed-off-by: Simon Glass <sjg@chromium.org>
34 files changed:
arch/arm/mach-omap2/emif-common.c
board/LaCie/edminiv2/edminiv2.c
board/LaCie/net2big_v2/net2big_v2.c
board/LaCie/netspace_v2/netspace_v2.c
board/Marvell/db-88f6281-bp/db-88f6281-bp.c
board/Marvell/dreamplug/dreamplug.c
board/Marvell/guruplug/guruplug.c
board/Marvell/openrd/openrd.c
board/Marvell/sheevaplug/sheevaplug.c
board/Seagate/dockstar/dockstar.c
board/Seagate/goflexhome/goflexhome.c
board/Seagate/nas220/nas220.c
board/Synology/ds109/ds109.c
board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c
board/alliedtelesis/SBx81LIFXCAT/sbx81lifxcat.c
board/atmel/at91sam9260ek/at91sam9260ek.c
board/atmel/at91sam9263ek/at91sam9263ek.c
board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c
board/cloudengines/pogo_e02/pogo_e02.c
board/d-link/dns325/dns325.c
board/freescale/ls1012afrdm/eth.c
board/freescale/ls1012ardb/eth.c
board/freescale/ls1088a/eth_ls1088aqds.c
board/freescale/ls1088a/eth_ls1088ardb.c
board/freescale/ls2080a/ls2080a.c
board/freescale/ls2080aqds/eth.c
board/freescale/ls2080ardb/eth_ls2080rdb.c
board/freescale/lx2160a/eth_lx2160aqds.c
board/freescale/lx2160a/eth_lx2160ardb.c
board/keymile/km_arm/km_arm.c
board/zyxel/nsa310s/nsa310s.c
common/board_r.c
include/common.h
include/net.h

index 290f9dcdb022636d008ad8b2297c35f9650902ae..c900f28af201787f9dc43cecbc9cd82251951c59 100644 (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>
index b68e18e03499368b370fc8758c554d7ae4798836..b5ffe8162f32cee00378081c7e2ceda5bc7ccaed 100644 (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>
index 686608d25a5aa63a0b7dfbbd8349e87a0f67896c..50305656e8e5bc106d98e140572db31d64f9a8fb 100644 (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>
index bd7ab22948b220608322b94fa9bf0d051b774a78..b7ae58c6454ea8402f83e784190d08d8f2657378 100644 (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>
index b68f2f3c895b6374fb44c91785485df8052514aa..729516d9e1de80b579bc655b223e6f545aad0725 100644 (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>
index ede168c9ece7bec4253c49d2cf27d3d9037dcdd2..887dd1ed74d4da827f0901e25967a0a51fab0994 100644 (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>
index 466f85eb0810c610533b5a849b68f380121a76d7..71bee76bdce7b3f6eadd5e71cd95b6c1b52706fe 100644 (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>
index a4923ce97184dd7c20333856a2f2d214fb6db7b8..ae9202895d5a698200427918a63e0d8c98b8ad02 100644 (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>
index 79999c7d304bc8c9c278a0c38034410d660ae955..6c6106c23c55762c5c814a032535671919bcbb19 100644 (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>
index 40e5dc7034d1d0ea480b9763adf82ca7003188cc..5a8c6e282bf903138ca758b351837cd20c58fd43 100644 (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>
index 42b51eb29a19192df30a97bb3a267b62c023c62e..1e4477aa5ff10b65dae7f10301c56f507bb4d606 100644 (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>
index 1e6c43b1fabfa08f7a4255bbb9556c675653b78e..99462052f0426d82229e7b9715163fb9750b8912 100644 (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>
index 1f2fce989c953d2c6f3e9a87086b6f72024026e2..f2031ef3bbb2f9225751a7bce1183487d12e957c 100644 (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>
index 0eac10d911373408c21c7d013dde13ff7bdd12d0..1f3f293bd914d2f6742a55f7903cf3c780da2a48 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <net.h>
 #include <linux/io.h>
 #include <miiphy.h>
 #include <netdev.h>
index c584fc0e982fb68aab055c178ca5d5800ea8d759..889ce70d758ce7fa49d138f9d8ff45621c2623f2 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <miiphy.h>
+#include <net.h>
 #include <netdev.h>
 #include <led.h>
 #include <linux/io.h>
index 9dcbfc450b273a561c86a8bfb667c0146aecf5a7..d1e78dabf288a3b645e38066db75660c89415a13 100644 (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>
index 31bb72c0cdc3758bb2261d0cf71638e1fb6323be..fc941d447f0493eb8e6df42dd4afca5708ff5e9b 100644 (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>
index 85004310b1fcd2b1abd9412e5a78a1b21a5dc0eb..6df915fcf15161460b812e6407792c06d1df936b 100644 (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>
index ffbd099c4ee49dac055f80aad867920540ad65f0..835c3279be282124e35c4fd2125443cf6aca1bb6 100644 (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>
index a1d987bedaab7da406095a39064d86e719f69344..dfdc683683d8a4fa65ce886556a2c1ef2790449b 100644 (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>
index 421e2fe38c5cfdbc1c8dd599abb954d0ff372754..bd1df092f9bbd2442275a2bedf68ca35c2d11021 100644 (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>
index b35d5343e4ebeca663e422cecc1d236e493908a2..3cc0a65cb91881541010126538f20cfa8982ac15 100644 (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>
index 237088a53710eaf517daa68c339f9581d762124a..54ef75347f604ffbd443d62aba368074329549cb 100644 (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>
index a2b52a879b1c1474406bfbde2ff0d766d7a6d193..01f56db0a1bfc664048eb33b8c813e090e2eeef5 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <net.h>
 #include <netdev.h>
 #include <malloc.h>
 #include <fsl_mdio.h>
index 413a698511bda34d77f30e26f1f95eed00da3c38..949b57c24e0f49162206a9638fd194a5205a58e7 100644 (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>
index 6a8788c3125498b005ceee1d52d463bd92ba8840..bbb70a859a1e13529e375b5c3f88cdfa5f0e3728 100644 (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>
index 62c7a7a315502c4328a88a58a63e8298cd2d3af3..b0f276e8397c5e15c23eae5a7bb52fe98c78e08e 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <net.h>
 #include <netdev.h>
 #include <malloc.h>
 #include <fsl_mdio.h>
index 55e8a427e65cefb3e771f01336622cad5e3fe443..6500649d7b9eb74d889413f8ec67b1cb99f5eead 100644 (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>
index 365ff73cef2c0f22d1b693ac30b37d1032708f4f..aeb989a638b7ac5388f16106c7bafa2efea3f10b 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <net.h>
 #include <netdev.h>
 #include <malloc.h>
 #include <fsl_mdio.h>
index 7aa9fa7fcadec8390d7bf65fc83f6f759eb903dc..473acfca68be12d575dbade415f6e1b2e8bee760 100644 (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>
index e7cb6be616f858906d86db0bfff0a6926bedfb73..82a3feee69ff6fc14abd17dc52610d7d86555b95 100644 (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>
index 2f5e534489561aaf4c48a7eb7f8ce51d966ae587..0102da7efd0f4fc61b5e08a27b1d57c834727c4c 100644 (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)
index 1bd42299bc21e2de9b3bfe4e21b5456af73b5c1d..eb6dce48019cd76820f92990eb34944f1fb16010 100644 (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
index a8ee08150fc02a29adc0346eae105908109b4b17..8a02c923a40ed286b1d97c0f6e4e867d52fb0bf2 100644 (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__ */