diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367b.c b/target/linux/generic/files/drivers/net/phy/rtl8367b.c index 1b1d5001a34..3599791a517 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8367b.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8367b.c @@ -781,7 +781,6 @@ static int rtl8367b_extif_set_mode(struct rtl8366_smi *smi, int id, /* set port mode */ switch (mode) { case RTL8367_EXTIF_MODE_RGMII: - case RTL8367_EXTIF_MODE_RGMII_33V: REG_RMW(smi, RTL8367B_CHIP_DEBUG0_REG, RTL8367B_DEBUG0_SEL33(id), RTL8367B_DEBUG0_SEL33(id)); diff --git a/target/linux/generic/files/include/linux/rtl8367.h b/target/linux/generic/files/include/linux/rtl8367.h index 855de6a5cc5..14150393e28 100644 --- a/target/linux/generic/files/include/linux/rtl8367.h +++ b/target/linux/generic/files/include/linux/rtl8367.h @@ -39,6 +39,9 @@ enum rtl8367_extif_mode { RTL8367_EXTIF_MODE_TMII_PHY, RTL8367_EXTIF_MODE_GMII, RTL8367_EXTIF_MODE_RGMII_33V, + RTL8367B_EXTIF_MODE_RMII_MAC = 7, + RTL8367B_EXTIF_MODE_RMII_PHY, + RTL8367B_EXTIF_MODE_RGMII_33V, }; struct rtl8367_extif_config {