From patchwork Mon Mar 7 21:12:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Neukirchen X-Patchwork-Id: 593217 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CCECC140557 for ; Tue, 8 Mar 2016 08:11:02 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id F4100B90CE1; Mon, 7 Mar 2016 22:10:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Mon, 7 Mar 2016 22:10:57 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C45DCB90CDB for ; Mon, 7 Mar 2016 22:10:56 +0100 (CET) X-policyd-weight: using cached result; rate: -7 Received: from mout.web.de (mout.web.de [212.227.17.12]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 7 Mar 2016 22:10:56 +0100 (CET) Received: from tenchi-htpc.lan ([91.66.244.150]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MCIe5-1alWt44BXN-0097ws for ; Mon, 07 Mar 2016 22:10:56 +0100 From: Dirk Neukirchen To: openwrt-devel@lists.openwrt.org Date: Mon, 7 Mar 2016 22:12:10 +0100 Message-Id: <1457385130-21387-1-git-send-email-dirkneukirchen@web.de> X-Mailer: git-send-email 2.7.2 X-Provags-ID: V03:K0:bpCe+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Devel] [PATCH 1/3] ar71xx: add WLAN LED for WNR2200 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 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" this trivial change seems to be useful for 16M international version Untested, used - input from IRC chat (partitions), - ticket #14356, - GPL tarball (partitions) Signed-off-by: Dirk Neukirchen --- target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c index 5d23f21..1cbbd0e 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c @@ -38,6 +38,7 @@ #define WNR2200_GPIO_LED_PWR_GREEN 22 #define WNR2200_GPIO_USB_5V 4 #define WNR2200_GPIO_USB_POWER 24 +#define WNR2200_GPIO_LED_WLAN 0 #define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */ #define WNR2200_KEYS_DEBOUNCE_INTERVAL (3 * WNR2200_KEYS_POLL_INTERVAL) @@ -124,6 +125,8 @@ static void __init wnr2200_setup(void) ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET, art + WNR2200_MAC1_OFFSET); + ap9x_pci_setup_wmac_led_pin(0, WNR2200_GPIO_LED_WLAN); + ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio), wnr2200_leds_gpio);