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>
@@ -39,6 +39,7 @@
#include <fsl_validate.h>
#endif
+#include <linux/mii.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -14,6 +14,7 @@
#include <config.h>
#include <net.h>
#include <miiphy.h>
#undef ET_DEBUG
#undef MII_DEBUG
@@ -8,6 +8,7 @@
#include <asm/io.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
u32 dpmac_to_devdisr[] = {
[WRIOP1_DPMAC1] = FSL_CHASSIS3_DEVDISR2_DPMAC1,
@@ -18,6 +18,7 @@
#include <asm/fec.h>
#include <asm/immap.h>
@@ -15,6 +15,7 @@
@@ -13,6 +13,7 @@
#include <phy.h>
@@ -12,6 +12,7 @@
#include <time.h>
#include <wait_bit.h>
#include <asm/gpio.h>
#include "pic32_eth.h"
@@ -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);
@@ -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__ */