diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2013-06-03 16:10:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-04 17:17:22 -0400 |
commit | c5ceea7a2813fecded01567383cca4d6855164ab (patch) | |
tree | 5cdc7ada094e17e031d83b3fe86b9f6cef6ef0ca /drivers/net/ethernet/ti | |
parent | f6655d697b85f75d2a1f4f6a03dd2d4c3549e321 (diff) |
drivers: net: ethernet: cpsw: add phy-mode support to cpsw driver
Adding phy-mode support to cpsw driver and updating the cpsw binding
documentation.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 89a4c40d6d83..a45f64eef870 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c | |||
@@ -1554,6 +1554,8 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data, | |||
1554 | if (mac_addr) | 1554 | if (mac_addr) |
1555 | memcpy(slave_data->mac_addr, mac_addr, ETH_ALEN); | 1555 | memcpy(slave_data->mac_addr, mac_addr, ETH_ALEN); |
1556 | 1556 | ||
1557 | slave_data->phy_if = of_get_phy_mode(slave_node); | ||
1558 | |||
1557 | if (data->dual_emac) { | 1559 | if (data->dual_emac) { |
1558 | if (of_property_read_u32(slave_node, "dual_emac_res_vlan", | 1560 | if (of_property_read_u32(slave_node, "dual_emac_res_vlan", |
1559 | &prop)) { | 1561 | &prop)) { |