[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190515144631.5490-1-dinguyen@kernel.org>
Date: Wed, 15 May 2019 09:46:31 -0500
From: Dinh Nguyen <dinguyen@...nel.org>
To: netdev@...r.kernel.org
Cc: dinguyen@...nel.org, davem@...emloft.net, joabreu@...opsys.com,
Wei Liang Lim <wei.liang.lim@...el.com>
Subject: [PATCH net-next] net: stmmac: socfpga: add RMII phy mode
Add option for enabling RMII phy mode.
Signed-off-by: Wei Liang Lim <wei.liang.lim@...el.com>
Signed-off-by: Dinh Nguyen <dinguyen@...nel.org>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
index d466e33635b0..75a6471db76c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c
@@ -251,6 +251,9 @@ static int socfpga_dwmac_set_phy_mode(struct socfpga_dwmac *dwmac)
case PHY_INTERFACE_MODE_SGMII:
val = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_GMII_MII;
break;
+ case PHY_INTERFACE_MODE_RMII:
+ val = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_RMII;
+ break;
default:
dev_err(dwmac->dev, "bad phy mode %d\n", phymode);
return -EINVAL;
--
2.20.0
Powered by blists - more mailing lists