From 712246bc93cb076c191f8a9169003f92434ad286 Mon Sep 17 00:00:00 2001 From: Dinh Nguyen Date: Mon, 3 Jun 2019 09:44:18 -0500 Subject: [PATCH] net: stmmac: socfpga: add RMII phy mode Add option for enabling RMII phy mode. Reviewed-by: Florian Fainelli Signed-off-by: Wei Liang Lim Signed-off-by: Dinh Nguyen Signed-off-by: David S. Miller --- 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.30.2