brcm63xx: fix bcm63268 rgmii port rgmii configuration

This should rather be done by passing appropriate platform_data/OF, but
should suffice for now.

Fixes e.g. GbE ports on BCM963268BU_P300.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45505
This commit is contained in:
Jonas Gorski 2015-04-19 11:38:42 +00:00
parent 440124dcbb
commit 681eb8c3de

View file

@ -0,0 +1,13 @@
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -2272,6 +2272,10 @@ static int bcm_enetsw_open(struct net_de
rgmii_ctrl = enetsw_readb(priv, ENETSW_RGMII_CTRL_REG(i));
rgmii_ctrl |= ENETSW_RGMII_CTRL_GMII_CLK_EN;
+ if (BCMCPU_IS_63268()) {
+ rgmii_ctrl |= ENETSW_RGMII_CTRL_TIMING_SEL_EN;
+ rgmii_ctrl |= ENETSW_RGMII_CTRL_MII_OVERRIDE_EN;
+ }
enetsw_writeb(priv, rgmii_ctrl, ENETSW_RGMII_CTRL_REG(i));
}