]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drivers: net cpsw: Enable In Band mode in cpsw for 10 mbps
authorMugunthan V N <mugunthanvnm@ti.com>
Fri, 13 Dec 2013 13:12:55 +0000 (18:42 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2013 21:54:19 +0000 (16:54 -0500)
This patch adds support for enabling In Band mode in 10 mbps speed.
RGMII supports 1 Gig and 100 mbps mode for Forced mode of operation.
For 10mbps mode it should be configured to in band mode so that link
status, duplexity and speed are determined from the RGMII input data
stream

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index 5120d9ce1dd4cdbdd8608550f87392d0a5f6bbb9..614f284fe1fdc414c66f8d4f6ba9a7a055735521 100644 (file)
@@ -740,6 +740,8 @@ static void _cpsw_adjust_link(struct cpsw_slave *slave,
                /* set speed_in input in case RMII mode is used in 100Mbps */
                if (phy->speed == 100)
                        mac_control |= BIT(15);
+               else if (phy->speed == 10)
+                       mac_control |= BIT(18); /* In Band mode */
 
                *link = true;
        } else {