aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti/cpsw.c
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2013-06-03 20:10:10 +0000
committerDavid S. Miller <davem@davemloft.net>2013-06-04 14:17:22 -0700
commitc5ceea7a2813fecded01567383cca4d6855164ab (patch)
tree5cdc7ada094e17e031d83b3fe86b9f6cef6ef0ca /drivers/net/ethernet/ti/cpsw.c
parentARM: dts: AM33XX: Add CPSW phy_id device tree data to am335x-evmsk (diff)
downloadlinux-dev-c5ceea7a2813fecded01567383cca4d6855164ab.tar.xz
linux-dev-c5ceea7a2813fecded01567383cca4d6855164ab.zip
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 '')
-rw-r--r--drivers/net/ethernet/ti/cpsw.c2
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,
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)) {