From patchwork Sat Jan 9 15:49:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Yeryomin X-Patchwork-Id: 565184 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AEDA414032F for ; Sun, 10 Jan 2016 02:50:24 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ATGmol2k; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4174A280424; Sat, 9 Jan 2016 16:49:37 +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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 184B528021B for ; Sat, 9 Jan 2016 16:49:31 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-lf0-f46.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 9 Jan 2016 16:49:30 +0100 (CET) Received: by mail-lf0-f46.google.com with SMTP id d17so27056071lfb.1 for ; Sat, 09 Jan 2016 07:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=nKHxgZEXiIF1rmjZ3pEBare4OmobbKcJ/QGwJFgJUb0=; b=ATGmol2kxRtlUssN4z4OXQ8fcf5LkU58IxsRJnbUPw3gAkyd3qwWDioPcXs/CX8XEw hDKJgvCIKvt23Y43M8z2GhE8gnWFlOcMbxV2knfLegz7qIM6knWjeuFkNkmx8rxshalL mygKTm7A2moS3tFswcus5Q0h4JlyCOadKSTrnw3pJtXE+mt4PGaH3lBJU3ZgM8iin3i3 7CCGOzJaNUGF8o/XASigC6XcLX19BYblHpl8IqWqMoGlltte7a1+Lt6t6boBcAksxPiA UUWEMc4awNxsSgcQJ5ZTjDsE2YRWafiz/sGheY1LQrHfeCLiacdhaT9QnW4jZt5dDhXk xqyA== X-Received: by 10.25.143.143 with SMTP id r137mr39248432lfd.93.1452354601988; Sat, 09 Jan 2016 07:50:01 -0800 (PST) Received: from ubrain.lan ([213.175.92.61]) by smtp.googlemail.com with ESMTPSA id qb3sm19392294lbb.39.2016.01.09.07.50.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Jan 2016 07:50:01 -0800 (PST) From: Roman Yeryomin X-Google-Original-From: Roman Yeryomin To: OpenWrt Development List Date: Sat, 9 Jan 2016 17:49:56 +0200 Message-Id: <1452354596-3879-1-git-send-email-roman@advem.lv> X-Mailer: git-send-email 2.5.0 Subject: [OpenWrt-Devel] [PATCH] ar71xx: fix ap152 support 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: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" - ethernet gigabit pll - switch configuration - sysupgrade Signed-off-by: Roman Yeryomin --- target/linux/ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/files/arch/mips/ath79/mach-ap152.c | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 6b6c6a4..190b693 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -23,6 +23,7 @@ ubnt-unifi-outdoor) ;; ap132 |\ +ap152 |\ wlr8100) ucidef_add_switch "switch0" \ "0@eth0" "2:lan" "3:lan" "4:lan" "5:lan" "1:wan" diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index e662524..1f6eaf2 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -184,6 +184,7 @@ platform_check_image() { ap136-020 | \ ap135-020 | \ ap147-010 | \ + ap152 | \ ap96 | \ bxu2000n-2-a1 | \ db120 | \ diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-ap152.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ap152.c index a1eb06b..e669325 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ap152.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ap152.c @@ -132,7 +132,6 @@ static void __init ap152_setup(void) ath79_eth0_data.duplex = DUPLEX_FULL; 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_register_eth(0); }