[OpenWrt-Devel] [PATCH][ar71xx] Mikrotik Routerboard RB2011 switch fix

Chris Green cl at isbd.net
Sat Dec 13 13:22:37 EST 2014


This patch is the same as the Routerboard 951G fix, I've built this
and tested it on my rb-2011uias-2hnd.  However we should check that it
also works on other/older RB2011 routers which did work OK with the
unpatched code.

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
index b73fae6..951ab94 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
@@ -270,6 +270,7 @@ static int __init rb2011_setup(u32 flags)
        rb2011_nand_init();
 
        ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_RGMII_GMAC0 |
+                                   AR934X_ETH_CFG_RXD_DELAY |
                                   AR934X_ETH_CFG_SW_ONLY_MODE);
 
        ath79_register_mdio(1, 0x0);
@@ -283,7 +284,7 @@ static int __init rb2011_setup(u32 flags)
        ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
        ath79_eth0_data.phy_mask = BIT(0);
        ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
-       ath79_eth0_pll_data.pll_1000 = 0x06000000;
+       ath79_eth0_pll_data.pll_1000 = 0x3e000000;
 
        ath79_register_eth(0);

-- 
Chris Green
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list