From patchwork Thu Aug 20 16:01:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QW50dGkgU2VwcMOkbMOk?= X-Patchwork-Id: 509088 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 B1B881402A2 for ; Fri, 21 Aug 2015 02:03:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ejeIKpzb; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 1E46D28BBD7; Thu, 20 Aug 2015 18:02:11 +0200 (CEST) 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 AE0EC28BBD4 for ; Thu, 20 Aug 2015 18:01:55 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -8.5 Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 20 Aug 2015 18:01:47 +0200 (CEST) Received: by lagz9 with SMTP id z9so25392161lag.3 for ; Thu, 20 Aug 2015 09:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=SszVpgI4jSJpIBNRKjRxbS23FPeFFJyavWBaKOpfv1E=; b=ejeIKpzbzTTxFAp+TU+WOzPt1c7uWRFWiUZajswMZ5yA2Gh4/oohRP5qdrgNJ1F6U1 7hphjH49NnqF9I3MqqY1uprqjDTSFYxRxkkF/fSDDJdP/tejOXmSoH4Z5c17CJEgoyuI 3r42shxQ9LCVj3q0HosiGmDYl2f+Zl9usOCP+7d/4+zhijVV9kAUILsZgiFMpO1aM6Q7 qkleLY9X3Pk+q6bn/8GxwXyeydrUNRI09VH6TFGAVDMGm8CNmHN0rRfJs0OaPiEHS9PQ OhA8qsLt5+uO8CHaVlbcchy+gZxeuw32sXfpw6GoXzySzcZWUYiC6YIjaFLqTAdXE5OO csxg== X-Received: by 10.152.43.228 with SMTP id z4mr3074477lal.99.1440086556063; Thu, 20 Aug 2015 09:02:36 -0700 (PDT) Received: from griffin.lan (85-76-182-202-nat.elisa-mobile.fi. [85.76.182.202]) by smtp.gmail.com with ESMTPSA id k9sm1348291lbp.13.2015.08.20.09.02.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Aug 2015 09:02:35 -0700 (PDT) From: =?UTF-8?q?Antti=20Sepp=C3=A4l=C3=A4?= To: openwrt-devel@lists.openwrt.org Date: Thu, 20 Aug 2015 19:01:49 +0300 Message-Id: <1440086512-12772-2-git-send-email-a.seppala@gmail.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1440086512-12772-1-git-send-email-a.seppala@gmail.com> References: <1440086512-12772-1-git-send-email-a.seppala@gmail.com> MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH 1/4] lantiq: Initialize USB on AR9 platform 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" Based on the ltq-hcd driver the AR9 USB can be initialized the same way as the VR9 platform. Use the same initialization bits for both platforms. Signed-off-by: Antti Seppälä --- .../patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch | 5 +++-- .../lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch b/target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch index 052e45e..fd0da8e 100644 --- a/target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch +++ b/target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch @@ -84,11 +84,12 @@ static int __init mips_reboot_setup(void) { struct resource res; -@@ -223,6 +293,9 @@ static int __init mips_reboot_setup(void +@@ -223,6 +293,10 @@ static int __init mips_reboot_setup(void if (!ltq_rcu_membase) panic("Failed to remap core memory"); -+ if (of_machine_is_compatible("lantiq,vr9")) ++ if (of_machine_is_compatible("lantiq,ar9") || ++ of_machine_is_compatible("lantiq,vr9")) + ltq_usb_init(); + _machine_restart = ltq_machine_restart; diff --git a/target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch b/target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch index 052e45e..fd0da8e 100644 --- a/target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch +++ b/target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch @@ -84,11 +84,12 @@ static int __init mips_reboot_setup(void) { struct resource res; -@@ -223,6 +293,9 @@ static int __init mips_reboot_setup(void +@@ -223,6 +293,10 @@ static int __init mips_reboot_setup(void if (!ltq_rcu_membase) panic("Failed to remap core memory"); -+ if (of_machine_is_compatible("lantiq,vr9")) ++ if (of_machine_is_compatible("lantiq,ar9") || ++ of_machine_is_compatible("lantiq,vr9")) + ltq_usb_init(); + _machine_restart = ltq_machine_restart;