Skip to content
Snippets Groups Projects
Commit ef59bb7c authored by Ilya Ledvich's avatar Ilya Ledvich Committed by Tom Rini
Browse files

drivers: net: cpsw: init phy with gigabit features


CPSW ia a gigabit device. Use the PHY_GBIT_FEATURES macro to determine phy
supported features.
Tested on cm_t335.

Signed-off-by: default avatarIlya Ledvich <ilya@compulab.co.il>
parent 7bb6e29b
No related branches found
No related tags found
No related merge requests found
......@@ -941,11 +941,7 @@ static int cpsw_phy_init(struct eth_device *dev, struct cpsw_slave *slave)
{
struct cpsw_priv *priv = (struct cpsw_priv *)dev->priv;
struct phy_device *phydev;
u32 supported = (SUPPORTED_10baseT_Half |
SUPPORTED_10baseT_Full |
SUPPORTED_100baseT_Half |
SUPPORTED_100baseT_Full |
SUPPORTED_1000baseT_Full);
u32 supported = PHY_GBIT_FEATURES;
phydev = phy_connect(priv->bus,
slave->data->phy_addr,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment