804-bcm63xx_enet_63268_rgmii_ports.patch 483 B

12345678910111213
  1. --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  2. +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  3. @@ -2276,6 +2276,10 @@ static int bcm_enetsw_open(struct net_de
  4. rgmii_ctrl = enetsw_readb(priv, ENETSW_RGMII_CTRL_REG(i));
  5. rgmii_ctrl |= ENETSW_RGMII_CTRL_GMII_CLK_EN;
  6. + if (BCMCPU_IS_63268()) {
  7. + rgmii_ctrl |= ENETSW_RGMII_CTRL_TIMING_SEL_EN;
  8. + rgmii_ctrl |= ENETSW_RGMII_CTRL_MII_OVERRIDE_EN;
  9. + }
  10. enetsw_writeb(priv, rgmii_ctrl, ENETSW_RGMII_CTRL_REG(i));
  11. }