common: Move mii_init() function out of common.h

This function belongs in mii.h so move it over.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass 2019-11-14 12:57:31 -07:00 committed by Tom Rini
parent 1045315df0
commit 68a6aa85ec
10 changed files with 10 additions and 3 deletions

View File

@ -39,6 +39,7 @@
#include <fsl_validate.h>
#endif
#endif
#include <linux/mii.h>
DECLARE_GLOBAL_DATA_PTR;

View File

@ -14,6 +14,7 @@
#include <config.h>
#include <net.h>
#include <miiphy.h>
#include <linux/mii.h>
#undef ET_DEBUG
#undef MII_DEBUG

View File

@ -8,6 +8,7 @@
#include <asm/io.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
#include <linux/mii.h>
u32 dpmac_to_devdisr[] = {
[WRIOP1_DPMAC1] = FSL_CHASSIS3_DEVDISR2_DPMAC1,

View File

@ -8,6 +8,7 @@
#include <asm/io.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
#include <linux/mii.h>
u32 dpmac_to_devdisr[] = {
[WRIOP1_DPMAC1] = FSL_CHASSIS3_DEVDISR2_DPMAC1,

View File

@ -18,6 +18,7 @@
#include <asm/fec.h>
#include <asm/immap.h>
#include <linux/mii.h>
#undef ET_DEBUG
#undef MII_DEBUG

View File

@ -15,6 +15,7 @@
#include <asm/fec.h>
#endif
#include <asm/immap.h>
#include <linux/mii.h>
DECLARE_GLOBAL_DATA_PTR;

View File

@ -13,6 +13,7 @@
#include <asm/io.h>
#include <phy.h>
#include <linux/mii.h>
DECLARE_GLOBAL_DATA_PTR;

View File

@ -12,6 +12,7 @@
#include <time.h>
#include <wait_bit.h>
#include <asm/gpio.h>
#include <linux/mii.h>
#include "pic32_eth.h"

View File

@ -254,9 +254,6 @@ void reset_timer (void);
void enable_interrupts (void);
int disable_interrupts (void);
/* $(CPU)/.../<eth> */
void mii_init (void);
/* arch/$(ARCH)/lib/cache.c */
void enable_caches(void);
void flush_cache (unsigned long, unsigned long);

View File

@ -225,4 +225,6 @@ static inline u8 mii_resolve_flowctrl_fdx(u16 lcladv, u16 rmtadv)
return cap;
}
void mii_init(void);
#endif /* __LINUX_MII_H__ */