diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-04-19 11:38:42 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-04-19 11:38:42 +0000 |
commit | 1da88fdb3e0344c56d40f7ad69ca153a289d9a27 (patch) | |
tree | a7b367b06b28c023336f8cc4869b24f63c461529 /target/linux/brcm63xx/patches-3.18/804-bcm63xx_enet_63268_rgmii_ports.patch | |
parent | 83adccd3993f819e6e168f0338cad87ab44b6412 (diff) | |
download | master-187ad058-1da88fdb3e0344c56d40f7ad69ca153a289d9a27.tar.gz master-187ad058-1da88fdb3e0344c56d40f7ad69ca153a289d9a27.tar.bz2 master-187ad058-1da88fdb3e0344c56d40f7ad69ca153a289d9a27.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45505 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-3.18/804-bcm63xx_enet_63268_rgmii_ports.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.18/804-bcm63xx_enet_63268_rgmii_ports.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-3.18/804-bcm63xx_enet_63268_rgmii_ports.patch b/target/linux/brcm63xx/patches-3.18/804-bcm63xx_enet_63268_rgmii_ports.patch new file mode 100644 index 0000000000..770f39e810 --- /dev/null +++ b/target/linux/brcm63xx/patches-3.18/804-bcm63xx_enet_63268_rgmii_ports.patch @@ -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)); + } + |