From patchwork Tue Sep 6 16:38:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 666670 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sTCHs1x8Dz9sCg for ; Wed, 7 Sep 2016 02:49:45 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gateworks-com.20150623.gappssmtp.com header.i=@gateworks-com.20150623.gappssmtp.com header.b=CDjljJZI; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhJVU-0008Gv-B8; Tue, 06 Sep 2016 16:45:56 +0000 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhJOj-00006h-Of for lede-dev@lists.infradead.org; Tue, 06 Sep 2016 16:39:01 +0000 Received: by mail-pf0-x22e.google.com with SMTP id p64so76105216pfb.1 for ; Tue, 06 Sep 2016 09:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=9L+3q/InWqv9JBH55jXZEdXhZU32eFWf0p1/rjK0zQA=; b=CDjljJZIVOgLsFNCSJbxNK5NTlYv7pEJoHmQwjg6G9MBP5CDSXVflI03XYgSsp1gvm hwrhO4/IpXCWUwwBaqyw4OKngw0o8HbX+gXc5sJsWqtcCgpktWNBdeWFr0hmRNFRtSgo ZAcfdMY6DW0Nd2TH3/5GB+rH9Sjva6SYHTR3AwI59C29vGc9PJE79MpuAnJvlSBRFxE5 tnNuQTMer48GZnqORfBr8Ya3MFhINibeRLJSdDB8DIqfA4Pl47z0j+WYB4VkN+Bhi8TN zQ9C6hu5CwjKeJ8RNr7Qfit7hu0+bIwDbUvp71fX/bGbbDZmEei2F9WZu8n3L05QjTGr Bpbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=9L+3q/InWqv9JBH55jXZEdXhZU32eFWf0p1/rjK0zQA=; b=BcHqnGYFdptHawXu1vRAXC/RzrHxqk2U2xlPaOY0KbrE+BwYsfqblxg2CI6/vgo8OW Irmw46olg7I1fokQXkASy6GximHx873uJxNPW0LBPWqwzWISVfkWqvs0hCKAIv+r910B 8GR61PUsKXsfoqo3J0VsYAYxjneUYxlqd3Uxbgsu8XLxg08tU/ieKwWnr8GKtIjPqg1t dLcmWI+iOyWmn59QXREUKfI7xH1ZrqBrNmeP6sjexfKitmJ0HsEwJtcLv9dlztqwfSSD 7m9eSU5hDIOXkRchhDR9AsAvQM/j89pJWip0M3WOEZ+xD5K0IeRuKdFCgXoMGYZvvTS3 khXw== X-Gm-Message-State: AE9vXwM0CAaS7rl/fxc530xBx2rUxANWPleccSex4EM66O0ffRWt1Sd0DrfMLPtK/EOx/A== X-Received: by 10.98.193.5 with SMTP id i5mr22046782pfg.69.1473179915084; Tue, 06 Sep 2016 09:38:35 -0700 (PDT) Received: from tharvey.pdc.gateworks.com (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by smtp.gmail.com with ESMTPSA id d5sm42289437pfa.44.2016.09.06.09.38.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Sep 2016 09:38:34 -0700 (PDT) From: Tim Harvey To: lede-dev@lists.infradead.org Date: Tue, 6 Sep 2016 09:38:26 -0700 Message-Id: <1473179906-29746-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160906_093858_310107_0A571013 X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:22e listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 TVD_SPACE_RATIO No description available. Subject: [LEDE-DEV] [PATCH] cns3xxx: add GW2394 Support X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Tim Harvey --- target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c | 4 +++- .../linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c index 6c77923..667a8e5 100644 --- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c +++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c @@ -1030,7 +1030,9 @@ static int __init laguna_model_setup(void) laguna_gpio_leds[3].name = "blue"; laguna_gpio_leds[3].active_low = 0, laguna_gpio_leds_data.num_leds = 4; - } else if (strncmp(laguna_info.model, "GW2384", 6) == 0) { + } else if ( (strncmp(laguna_info.model, "GW2384", 6) == 0) + || (strncmp(laguna_info.model, "GW2394", 6) == 0) ) + { // configure GPIO's laguna_register_gpio(ARRAY_AND_SIZE(laguna_gpio_gw2384)); // configure LED's diff --git a/target/linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch b/target/linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch index e08ba9e..acdbf0d 100644 --- a/target/linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch +++ b/target/linux/cns3xxx/patches-4.4/255-laguna-add-gsc-driver-support.patch @@ -352,7 +352,9 @@ + platform_device_register(&laguna_gpio_leds_device); + platform_device_register(&laguna_gsc_input); + platform_device_register(&laguna_keys_device); - } else if (strncmp(laguna_info.model, "GW2384", 6) == 0) { + } else if ( (strncmp(laguna_info.model, "GW2384", 6) == 0) + || (strncmp(laguna_info.model, "GW2394", 6) == 0) ) + { - // configure GPIO's + // GSC + laguna_keys[0].gpio = 100;