From patchwork Sat Dec 13 18:22:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Green X-Patchwork-Id: 420780 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 62E081400E9 for ; Sun, 14 Dec 2014 05:22:52 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9B18F28A216; Sat, 13 Dec 2014 19:20:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 33A5F2890B1 for ; Sat, 13 Dec 2014 19:20:53 +0100 (CET) X-policyd-weight: using cached result; rate: -5.5 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 13 Dec 2014 19:20:52 +0100 (CET) Received: from mfilter5-d.gandi.net (mfilter5-d.gandi.net [217.70.178.132]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id B1985A80AC for ; Sat, 13 Dec 2014 19:22:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter5-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter5-d.gandi.net (mfilter5-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 1VlEs5bhuYct for ; Sat, 13 Dec 2014 19:22:38 +0100 (CET) X-Originating-IP: 84.92.49.234 Received: from chris.zbmc.eu (chrisisbd01.plus.com [84.92.49.234]) (Authenticated sender: smtp@zbmc.eu) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 4DF02A80BB for ; Sat, 13 Dec 2014 19:22:38 +0100 (CET) Received: by chris.zbmc.eu (Postfix, from userid 1000) id 64B433800B2; Sat, 13 Dec 2014 18:22:37 +0000 (GMT) Date: Sat, 13 Dec 2014 18:22:37 +0000 From: Chris Green To: openwrt-devel@lists.openwrt.org Message-ID: <20141213182237.GA28818@chris> Mail-Followup-To: openwrt-devel@lists.openwrt.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [OpenWrt-Devel] [PATCH][ar71xx] Mikrotik Routerboard RB2011 switch fix X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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);