diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2015-09-19 16:26:48 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-22 14:22:22 -0400 |
commit | bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb (patch) | |
tree | 4f790c40770383a7ff622e6127e0b7e5c6f7dedf /drivers | |
parent | cddb330035a7418c20b64fb8817715a2b7b7859a (diff) | |
download | u-boot-bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb.tar.gz u-boot-bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb.tar.bz2 u-boot-bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb.zip |
driver: net: keystone_net: fix phy mode configuration
Phy mode is a board property and it can be different between
multiple board and ports, so it should not be hardcoded in
driver to one specific mode. So adding a field in eth_priv_t
structure to pass phy mode to driver.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/keystone_net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/keystone_net.c b/drivers/net/keystone_net.c index 67b570279e..2e64e7ca4a 100644 --- a/drivers/net/keystone_net.c +++ b/drivers/net/keystone_net.c @@ -569,11 +569,11 @@ int keystone2_emac_initialize(struct eth_priv_t *eth_priv) /* Create phy device and bind it with driver */ #ifdef CONFIG_KSNET_MDIO_PHY_CONFIG_ENABLE phy_dev = phy_connect(mdio_bus, eth_priv->phy_addr, - dev, PHY_INTERFACE_MODE_SGMII); + dev, eth_priv->phy_if); phy_config(phy_dev); #else phy_dev = phy_find_by_mask(mdio_bus, 1 << eth_priv->phy_addr, - PHY_INTERFACE_MODE_SGMII); + eth_priv->phy_if); phy_dev->dev = dev; #endif eth_priv->phy_dev = phy_dev; |