]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: net: cpsw: init phy with gigabit features
authorIlya Ledvich <ilya@compulab.co.il>
Wed, 12 Mar 2014 09:26:30 +0000 (11:26 +0200)
committerTom Rini <trini@ti.com>
Wed, 12 Mar 2014 20:22:12 +0000 (16:22 -0400)
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>
drivers/net/cpsw.c

index dd6c26a7fb3af4916f4bba73275c40c03e19c08b..bd5fba21cee5651ef3c8d9bb830fab2f6475ef3d 100644 (file)
@@ -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,