mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
NET: fec_mxc.c: Add a way to disable auto negotiation
Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
parent
4a9677e53f
commit
b774fe9d8a
@ -187,9 +187,10 @@ int fec_phy_write(struct mii_dev *bus, int phyAddr, int dev_addr, int regAddr,
|
|||||||
#ifndef CONFIG_PHYLIB
|
#ifndef CONFIG_PHYLIB
|
||||||
static int miiphy_restart_aneg(struct eth_device *dev)
|
static int miiphy_restart_aneg(struct eth_device *dev)
|
||||||
{
|
{
|
||||||
|
int ret = 0;
|
||||||
|
#if !defined(CONFIG_FEC_MXC_NO_ANEG)
|
||||||
struct fec_priv *fec = (struct fec_priv *)dev->priv;
|
struct fec_priv *fec = (struct fec_priv *)dev->priv;
|
||||||
struct ethernet_regs *eth = fec->bus->priv;
|
struct ethernet_regs *eth = fec->bus->priv;
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wake up from sleep if necessary
|
* Wake up from sleep if necessary
|
||||||
@ -213,6 +214,7 @@ static int miiphy_restart_aneg(struct eth_device *dev)
|
|||||||
if (fec->mii_postcall)
|
if (fec->mii_postcall)
|
||||||
ret = fec->mii_postcall(fec->phy_id);
|
ret = fec->mii_postcall(fec->phy_id);
|
||||||
|
|
||||||
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user