Commit 0750701a authored by Hannes Schmelzer's avatar Hannes Schmelzer Committed by Stefano Babic

driver/net/fec: support fixed speed connection

If MAC is directly connected to another MAC (like a switch for example)
we don't need to probe for a phy, autoneogation and so on. We simply
have to setup speed.
Signed-off-by: default avatarHannes Schmelzer <>
Acked-by: default avatarJoe Hershberger <>
parent a32b4a03
......@@ -27,6 +27,11 @@ CONFIG_FEC_MXC_PHYADDR
Optional, selects the exact phy address that should be connected
and function fecmxc_initialize will try to initialize it.
Optional, selects a fixed speed on the MAC interface without asking some
phy. This is usefull if there is a direct MAC <-> MAC connection, for
example if the CPU is connected directly via the RGMII interface to a
Reading the ethaddr from the SoC eFuses:
if CONFIG_FEC_MXC is defined and the U-Boot environment does not contain the
......@@ -233,6 +233,7 @@ static int miiphy_restart_aneg(struct eth_device *dev)
return ret;
static int miiphy_wait_aneg(struct eth_device *dev)
uint32_t start;
......@@ -260,6 +261,7 @@ static int miiphy_wait_aneg(struct eth_device *dev)
return 0;
static int fec_rx_task_enable(struct fec_priv *fec)
......@@ -502,6 +504,8 @@ static int fec_open(struct eth_device *edev)
speed = fec->phydev->speed;
speed = miiphy_speed(edev->name, fec->phy_id);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment