summaryrefslogtreecommitdiff
path: root/include/netdev.h
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2012-10-22 16:40:46 +0000
committerStefano Babic <sbabic@denx.de>2013-01-28 06:57:51 +0100
commitfe428b909b83f0ef83d1fbc7a446bfb60bc4fe01 (patch)
treea401454ee8a0caeb85dc5b4221a78cdf4324a8c6 /include/netdev.h
parent4dc27eed5230c485ef8016ccea6ea0abbd937d98 (diff)
downloadu-boot-imx-fe428b909b83f0ef83d1fbc7a446bfb60bc4fe01.zip
u-boot-imx-fe428b909b83f0ef83d1fbc7a446bfb60bc4fe01.tar.gz
u-boot-imx-fe428b909b83f0ef83d1fbc7a446bfb60bc4fe01.tar.bz2
net: fec_mxc: get phydev before fec_probe
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'include/netdev.h')
-rw-r--r--include/netdev.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/netdev.h b/include/netdev.h
index 7f158d4..fd3e243 100644
--- a/include/netdev.h
+++ b/include/netdev.h
@@ -215,9 +215,16 @@ struct mv88e61xx_config {
int mv88e61xx_switch_initialize(struct mv88e61xx_config *swconfig);
#endif /* CONFIG_MV88E61XX_SWITCH */
+struct mii_dev *fec_get_miibus(uint32_t base_addr, int dev_id);
+#ifdef CONFIG_PHYLIB
+struct phy_device;
+int fec_probe(bd_t *bd, int dev_id, uint32_t base_addr,
+ struct mii_dev *bus, struct phy_device *phydev);
+#else
/*
* Allow FEC to fine-tune MII configuration on boards which require this.
*/
int fecmxc_register_mii_postcall(struct eth_device *dev, int (*cb)(int));
+#endif
#endif /* _NETDEV_H_ */