phy: broadcom: Add bcm54213pe configuration
authorPhil Elwell <phil@raspberrypi.com>
Thu, 29 Oct 2020 14:10:56 +0000 (14:10 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:24 +0000 (19:13 +0000)
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/net/phy/broadcom.c

index e7aa799..3130377 100644 (file)
@@ -43,6 +43,11 @@ static int bcm54210e_config_init(struct phy_device *phydev)
        return 0;
 }
 
+static int bcm54213pe_config_init(struct phy_device *phydev)
+{
+       return bcm54210e_config_init(phydev);
+}
+
 static int bcm54612e_config_init(struct phy_device *phydev)
 {
        int reg;
@@ -291,6 +296,10 @@ static int bcm54xx_config_init(struct phy_device *phydev)
                err = bcm54210e_config_init(phydev);
                if (err)
                        return err;
+       } else if (BRCM_PHY_MODEL(phydev) == PHY_ID_BCM54213PE) {
+               err = bcm54213pe_config_init(phydev);
+               if (err)
+                       return err;
        } else if (BRCM_PHY_MODEL(phydev) == PHY_ID_BCM54612E) {
                err = bcm54612e_config_init(phydev);
                if (err)