diff options
author | Dinh Nguyen <dinguyen@kernel.org> | 2019-06-03 09:44:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-04 11:57:20 -0700 |
commit | 712246bc93cb076c191f8a9169003f92434ad286 (patch) | |
tree | b18f825afbab563b4dc9e2c0a9e11971c7bde217 | |
parent | a6e5afa1bbca0e0e2e903bfcf344ff406973d798 (diff) |
net: stmmac: socfpga: add RMII phy mode
Add option for enabling RMII phy mode.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Wei Liang Lim <wei.liang.lim@intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |