diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2013-09-21 00:50:40 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-24 10:33:07 -0400 |
commit | 388367a5a9fbbb86db815ab069c8d5e970d2b86e (patch) | |
tree | 59d96f962ec1a5026a6f358cf4727008eb05315e /drivers/net/ethernet | |
parent | 5892cd135e166c425c992c437a2944534b663a24 (diff) | |
download | blackbird-obmc-linux-388367a5a9fbbb86db815ab069c8d5e970d2b86e.tar.gz blackbird-obmc-linux-388367a5a9fbbb86db815ab069c8d5e970d2b86e.zip |
drivers: net: cpsw: use cpsw-phy-sel driver to configure phy mode
Phy mode can be configured via the cpsw-phy-sel driver, this patch enabled the
cpsw driver to utilise the api provided by the cpsw-phy-sel driver to configure
the phy mode.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Tested-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 01c42e1b5b11..5efb37bf0681 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -1021,6 +1021,10 @@ static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv) dev_info(priv->dev, "phy found : id is : 0x%x\n", slave->phy->phy_id); phy_start(slave->phy); + + /* Configure GMII_SEL register */ + cpsw_phy_sel(&priv->pdev->dev, slave->phy->interface, + slave->slave_num); } } |