summaryrefslogtreecommitdiff
path: root/drivers/net/cpsw.c
diff options
context:
space:
mode:
authorIlya Ledvich <ilya@compulab.co.il>2014-03-12 11:26:30 +0200
committerTom Rini <trini@ti.com>2014-03-12 16:22:12 -0400
commitef59bb7cc830b563530cd8bbfff22139f5e98b0a (patch)
tree0b8d7ba1df1cbee94971ea3b1038cd1dc1f07e90 /drivers/net/cpsw.c
parent7bb6e29bffdf67855ac66227e6ff1a74226c9d81 (diff)
downloadu-boot-imx-ef59bb7cc830b563530cd8bbfff22139f5e98b0a.zip
u-boot-imx-ef59bb7cc830b563530cd8bbfff22139f5e98b0a.tar.gz
u-boot-imx-ef59bb7cc830b563530cd8bbfff22139f5e98b0a.tar.bz2
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>
Diffstat (limited to 'drivers/net/cpsw.c')
-rw-r--r--drivers/net/cpsw.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index dd6c26a..bd5fba2 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -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,