mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-13 12:32:47 +01:00
net: zynq: Use predefined macros instead of hardcoded value
MII is used by this driver. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
52fded7b94
commit
c1a9fa4ba6
1 changed files with 2 additions and 1 deletions
|
|
@ -338,7 +338,8 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis)
|
|||
phy_detection(dev);
|
||||
|
||||
/* interface - look at tsec */
|
||||
phydev = phy_connect(priv->bus, priv->phyaddr, dev, 0);
|
||||
phydev = phy_connect(priv->bus, priv->phyaddr, dev,
|
||||
PHY_INTERFACE_MODE_MII);
|
||||
|
||||
phydev->supported = supported | ADVERTISED_Pause |
|
||||
ADVERTISED_Asym_Pause;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue