2020-05-21 12:58:36 +00:00
|
|
|
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h
|
|
|
|
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h
|
|
|
|
@@ -79,6 +79,9 @@ struct bcm63xx_enetsw_port {
|
|
|
|
int force_speed;
|
|
|
|
int force_duplex_full;
|
|
|
|
|
|
|
|
+ int mii_override;
|
|
|
|
+ int timing_sel;
|
|
|
|
+
|
|
|
|
const char *name;
|
|
|
|
};
|
|
|
|
|
2020-04-03 10:26:23 +00:00
|
|
|
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
|
|
|
|
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
|
2020-04-03 13:28:10 +00:00
|
|
|
@@ -2209,6 +2209,10 @@ static int bcm_enetsw_open(struct net_de
|
2020-04-03 10:26:23 +00:00
|
|
|
|
|
|
|
rgmii_ctrl = enetsw_readb(priv, ENETSW_RGMII_CTRL_REG(i));
|
|
|
|
rgmii_ctrl |= ENETSW_RGMII_CTRL_GMII_CLK_EN;
|
2020-05-21 12:58:36 +00:00
|
|
|
+ if (priv->used_ports[i].mii_override)
|
2020-04-03 10:26:23 +00:00
|
|
|
+ rgmii_ctrl |= ENETSW_RGMII_CTRL_MII_OVERRIDE_EN;
|
2020-05-21 12:58:36 +00:00
|
|
|
+ if (priv->used_ports[i].timing_sel)
|
|
|
|
+ rgmii_ctrl |= ENETSW_RGMII_CTRL_TIMING_SEL_EN;
|
2020-04-03 10:26:23 +00:00
|
|
|
enetsw_writeb(priv, rgmii_ctrl, ENETSW_RGMII_CTRL_REG(i));
|
|
|
|
}
|
|
|
|
|