diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2013-06-03 20:10:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-04 14:17:22 -0700 |
commit | c5ceea7a2813fecded01567383cca4d6855164ab (patch) | |
tree | 5cdc7ada094e17e031d83b3fe86b9f6cef6ef0ca /drivers | |
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')
-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 89a4c40d6d8..a45f64eef87 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, if (mac_addr) memcpy(slave_data->mac_addr, mac_addr, ETH_ALEN); + slave_data->phy_if = of_get_phy_mode(slave_node); + if (data->dual_emac) { if (of_property_read_u32(slave_node, "dual_emac_res_vlan", &prop)) { |