netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/12] net: axienet: Support for RGMII
@ 2015-05-05  9:25 Michal Simek
  2015-05-05  9:25 ` [PATCH 02/12] net: axienet: Handle 0 packet receive gracefully Michal Simek
                   ` (12 more replies)
  0 siblings, 13 replies; 21+ messages in thread
From: Michal Simek @ 2015-05-05  9:25 UTC (permalink / raw)
  To: netdev
  Cc: Srikanth Thokala, Sören Brinkmann, monstr, John Linn,
	Anirudha Sarangi, linux-kernel, linux-arm-kernel

From: Srikanth Thokala <srikanth.thokala@xilinx.com>

This patch adds support for the RGMII. The h/w configuration
parameter C_PHY_TYPE, which represents the interface configured in
the design, is used to differentiate various interfaces supported
by AXI Ethernet.

Signed-off-by: Srikanth Thokala <sthokal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index 28b7e7d9c272..0ab607732bb4 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -925,9 +925,16 @@ static int axienet_open(struct net_device *ndev)
 		return ret;
 
 	if (lp->phy_node) {
-		lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node,
+		if (lp->phy_type == XAE_PHY_TYPE_GMII) {
+			lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node,
 					     axienet_adjust_link, 0,
 					     PHY_INTERFACE_MODE_GMII);
+		} else if (lp->phy_type == XAE_PHY_TYPE_RGMII_2_0) {
+			lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node,
+					     axienet_adjust_link, 0,
+					     PHY_INTERFACE_MODE_RGMII_ID);
+		}
+
 		if (!lp->phy_dev) {
 			dev_err(lp->dev, "of_phy_connect() failed\n");
 			return -ENODEV;
-- 
2.3.5

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-05-06  5:29 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05  9:25 [PATCH 01/12] net: axienet: Support for RGMII Michal Simek
2015-05-05  9:25 ` [PATCH 02/12] net: axienet: Handle 0 packet receive gracefully Michal Simek
2015-05-05  9:58   ` Shubhrajyoti Datta
2015-05-05 13:57   ` Joe Perches
2015-05-05 18:49     ` Michal Simek
2015-05-05 18:53       ` Joe Perches
2015-05-05  9:25 ` [PATCH 03/12] net: axienet: Service completion interrupts ASAP Michal Simek
2015-05-05  9:25 ` [PATCH 04/12] net: axienet: Handle jumbo frames for lesser frame sizes Michal Simek
2015-05-05  9:25 ` [PATCH 05/12] net: axienet: Support phy-less mode of operation Michal Simek
2015-05-05  9:25 ` [PATCH 06/12] net: axienet: Removed coding style errors and warnings Michal Simek
2015-05-05  9:26 ` [PATCH 07/12] net: axienet: Fix comments blocks Michal Simek
2015-05-05  9:26 ` [PATCH 08/12] net: axienet: Use pdev instead of op Michal Simek
2015-05-05  9:26 ` [PATCH 09/12] net: axienet: Use devm_* calls Michal Simek
2015-05-05  9:26 ` [PATCH 10/12] net: axienet: Use of_property_* calls Michal Simek
2015-05-05  9:26 ` [PATCH 11/12] net: axienet: Removed _of_ prefix in probe and remove functions Michal Simek
2015-05-05  9:26 ` [PATCH 12/12] net: axienet: Fix kernel-doc warnings Michal Simek
2015-05-05 12:54 ` [PATCH 01/12] net: axienet: Support for RGMII John Linn
2015-05-05 14:59   ` David Miller
2015-05-06  4:32   ` Florian Fainelli
2015-05-05 23:35 ` David Miller
2015-05-06  5:29   ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).