mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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: Ilya Ledvich <ilya@compulab.co.il>
This commit is contained in:
parent
7bb6e29bff
commit
ef59bb7cc8
1 changed files with 1 additions and 5 deletions
|
@ -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 cpsw_priv *priv = (struct cpsw_priv *)dev->priv;
|
||||||
struct phy_device *phydev;
|
struct phy_device *phydev;
|
||||||
u32 supported = (SUPPORTED_10baseT_Half |
|
u32 supported = PHY_GBIT_FEATURES;
|
||||||
SUPPORTED_10baseT_Full |
|
|
||||||
SUPPORTED_100baseT_Half |
|
|
||||||
SUPPORTED_100baseT_Full |
|
|
||||||
SUPPORTED_1000baseT_Full);
|
|
||||||
|
|
||||||
phydev = phy_connect(priv->bus,
|
phydev = phy_connect(priv->bus,
|
||||||
slave->data->phy_addr,
|
slave->data->phy_addr,
|
||||||
|
|
Loading…
Add table
Reference in a new issue