From patchwork Wed Aug 24 19:26:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Young X-Patchwork-Id: 1094032 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7OJRw93015153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 24 Aug 2011 19:28:18 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QwJ74-00081r-SL; Wed, 24 Aug 2011 19:27:47 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QwJ74-0007BX-9B; Wed, 24 Aug 2011 19:27:46 +0000 Received: from pequod.mess.org ([188.220.58.213]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QwJ6i-00077r-8D for linux-arm-kernel@lists.infradead.org; Wed, 24 Aug 2011 19:27:25 +0000 Received: by pequod.mess.org (Postfix, from userid 1000) id AF22A32304; Wed, 24 Aug 2011 20:26:58 +0100 (BST) From: Sean Young To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] [ARM] SheevaPlug: Add the blue led Date: Wed, 24 Aug 2011 20:26:41 +0100 Message-Id: <1314214001-2731-2-git-send-email-sean@mess.org> X-Mailer: git-send-email 1.7.2.5 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110824_152724_471452_6AEB35A9 X-CRM114-Status: GOOD ( 11.97 ) X-Spam-Score: -0.5 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: Robin Becker , John Holland , Sean Young X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 24 Aug 2011 19:28:18 +0000 (UTC) Also wire the green led to the right gpio. This has been tested on the standard SheevaPlug and eSATA SheevaPlug. Signed-off-by: Sean Young --- arch/arm/mach-kirkwood/sheevaplug-setup.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-kirkwood/sheevaplug-setup.c b/arch/arm/mach-kirkwood/sheevaplug-setup.c index 7ba2a08..47e38fb 100644 --- a/arch/arm/mach-kirkwood/sheevaplug-setup.c +++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c @@ -60,6 +60,12 @@ static struct gpio_led sheevaplug_led_pins[] = { }, { .name = "plug:green:health", + .default_trigger = "none", + .gpio = 48, + .active_low = 1, + }, + { + .name = "plug:blue:health", .default_trigger = "default-on", .gpio = 49, .active_low = 1, @@ -82,7 +88,8 @@ static struct platform_device sheevaplug_leds = { static unsigned int sheevaplug_mpp_config[] __initdata = { MPP29_GPIO, /* USB Power Enable */ MPP46_GPIO, /* LED Red */ - MPP49_GPIO, /* LED */ + MPP48_GPIO, /* LED Green */ + MPP49_GPIO, /* LED Blue */ 0 };