]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: stmmac: socfpga: Allow all RGMII modes
authorAtsushi Nemoto <atsushi.nemoto@sord.co.jp>
Tue, 14 Apr 2020 01:12:34 +0000 (10:12 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2020 23:39:07 +0000 (16:39 -0700)
Allow all the RGMII modes to be used.  (Not only "rgmii", "rgmii-id"
but "rgmii-txid", "rgmii-rxid")

Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c

index e0212d2fc2a12c745d562b333b81688fe7227ecd..fa32cd5b418ef95c079190903193b118b1e406b9 100644 (file)
@@ -241,6 +241,8 @@ static int socfpga_set_phy_mode_common(int phymode, u32 *val)
        switch (phymode) {
        case PHY_INTERFACE_MODE_RGMII:
        case PHY_INTERFACE_MODE_RGMII_ID:
+       case PHY_INTERFACE_MODE_RGMII_RXID:
+       case PHY_INTERFACE_MODE_RGMII_TXID:
                *val = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_RGMII;
                break;
        case PHY_INTERFACE_MODE_MII: