ath79: support "rgmii-id" PHY mode in ag71xx
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Wed, 26 Jun 2019 19:39:37 +0000 (12:39 -0700)
committerPetr Štetiar <ynezz@true.cz>
Wed, 17 Jul 2019 20:59:29 +0000 (22:59 +0200)
The ag71xx code did not include a case for the "rgmii-id" PHY mode in the
code. There are devices that need this mode, so I'm adding it.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c

index bcc9e227130c9e21bdd9104ab46d99ca619a8cf2..5847a6bf5ce874d50b1079861f49087aaaa4221a 100644 (file)
@@ -581,6 +581,7 @@ static void ath79_mii0_ctrl_set_if(struct ag71xx *ag)
                mii_if = AR71XX_MII0_CTRL_IF_GMII;
                break;
        case PHY_INTERFACE_MODE_RGMII:
+       case PHY_INTERFACE_MODE_RGMII_ID:
                mii_if = AR71XX_MII0_CTRL_IF_RGMII;
                break;
        case PHY_INTERFACE_MODE_RMII:
@@ -603,6 +604,7 @@ static void ath79_mii1_ctrl_set_if(struct ag71xx *ag)
                mii_if = AR71XX_MII1_CTRL_IF_RMII;
                break;
        case PHY_INTERFACE_MODE_RGMII:
+       case PHY_INTERFACE_MODE_RGMII_ID:
                mii_if = AR71XX_MII1_CTRL_IF_RGMII;
                break;
        default: