]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: stmmac: dwmac-sun8i: Allow all RGMII modes
authorChen-Yu Tsai <wens@csie.org>
Mon, 6 Jan 2020 03:09:45 +0000 (11:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jan 2020 20:31:25 +0000 (12:31 -0800)
Allow all the RGMII modes to be used. This would allow us to represent
the hardware better in the device tree with RGMII_ID where in most
cases the PHY's internal delay for both RX and TX are used.

Fixes: 6f537725a8ed ("net-next: stmmac: Add dwmac-sun8i")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c

index 1c8d84ed841020936129aaaf83a9bd9b8a2c8364..01b484cb177e107718cd5d9f080a2293b6efa4f9 100644 (file)
@@ -957,6 +957,9 @@ static int sun8i_dwmac_set_syscon(struct stmmac_priv *priv)
                /* default */
                break;
        case PHY_INTERFACE_MODE_RGMII:
+       case PHY_INTERFACE_MODE_RGMII_ID:
+       case PHY_INTERFACE_MODE_RGMII_RXID:
+       case PHY_INTERFACE_MODE_RGMII_TXID:
                reg |= SYSCON_EPIT | SYSCON_ETCS_INT_GMII;
                break;
        case PHY_INTERFACE_MODE_RMII: