From patchwork Fri Oct 2 15:35:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 51391 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n92FZw0q021822 for ; Fri, 2 Oct 2009 15:35:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756728AbZJBPfx (ORCPT ); Fri, 2 Oct 2009 11:35:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756720AbZJBPfx (ORCPT ); Fri, 2 Oct 2009 11:35:53 -0400 Received: from mail-px0-f179.google.com ([209.85.216.179]:38883 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756549AbZJBPfw (ORCPT ); Fri, 2 Oct 2009 11:35:52 -0400 Received: by pxi9 with SMTP id 9so1214073pxi.4 for ; Fri, 02 Oct 2009 08:35:56 -0700 (PDT) Received: by 10.114.5.18 with SMTP id 18mr3911531wae.140.1254497756463; Fri, 02 Oct 2009 08:35:56 -0700 (PDT) Received: from localhost ([216.254.16.51]) by mx.google.com with ESMTPS id 20sm719770pzk.13.2009.10.02.08.35.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Oct 2009 08:35:56 -0700 (PDT) From: Kevin Hilman To: linux-omap@vger.kernel.org Subject: [PATCH] OMAP3: RX51: support sleep indicator LEDs Date: Fri, 2 Oct 2009 08:35:55 -0700 Message-Id: <1254497755-1822-1-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.6.4.3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index f9196c3..6ad44d8 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c @@ -31,6 +31,8 @@ #include #include +#define RX51_GPIO_SLEEP_IND 162 + static struct omap_lcd_config rx51_lcd_config = { .ctrl_name = "internal", }; @@ -74,6 +76,11 @@ static void __init rx51_init(void) /* Ensure SDRC pins are mux'd for self-refresh */ omap_cfg_reg(H16_34XX_SDRC_CKE0); omap_cfg_reg(H17_34XX_SDRC_CKE1); + + if (!(gpio_request(RX51_GPIO_SLEEP_IND, "SLEEP_IND"))) { + gpio_direction_output(RX51_GPIO_SLEEP_IND, 0); + gpio_export(RX51_GPIO_SLEEP_IND, 1); + } } static void __init rx51_map_io(void)