From patchwork Fri Aug 26 19:22:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1102932 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7QJBZ72003822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 26 Aug 2011 19:11:56 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qx1oC-0005lG-7D; Fri, 26 Aug 2011 19:11:16 +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 1Qx1oB-0005DQ-O6; Fri, 26 Aug 2011 19:11:15 +0000 Received: from va3ehsobe005.messaging.microsoft.com ([216.32.180.31] helo=VA3EHSOBE005.bigfish.com) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qx1o8-0005D7-IL for linux-arm-kernel@lists.infradead.org; Fri, 26 Aug 2011 19:11:13 +0000 Received: from mail105-va3-R.bigfish.com (10.7.14.242) by VA3EHSOBE005.bigfish.com (10.7.40.25) with Microsoft SMTP Server id 14.1.225.22; Fri, 26 Aug 2011 19:11:09 +0000 Received: from mail105-va3 (localhost.localdomain [127.0.0.1]) by mail105-va3-R.bigfish.com (Postfix) with ESMTP id 4835D110332; Fri, 26 Aug 2011 19:11:08 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h839h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail105-va3 (localhost.localdomain [127.0.0.1]) by mail105-va3 (MessageSwitch) id 1314385868564671_31591; Fri, 26 Aug 2011 19:11:08 +0000 (UTC) Received: from VA3EHSMHS004.bigfish.com (unknown [10.7.14.247]) by mail105-va3.bigfish.com (Postfix) with ESMTP id A4BFA40804D; Fri, 26 Aug 2011 19:11:07 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS004.bigfish.com (10.7.99.14) with Microsoft SMTP Server (TLS) id 14.1.225.22; Fri, 26 Aug 2011 19:10:47 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.323.2; Fri, 26 Aug 2011 14:10:45 -0500 Received: from localhost.localdomain ([10.29.240.182]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p7QJAa0d010921; Fri, 26 Aug 2011 14:10:44 -0500 (CDT) From: Fabio Estevam To: Subject: [PATCH 4/5] ARM: mx53: Allow gpio_keys to wake the system Date: Fri, 26 Aug 2011 16:22:01 -0300 Message-ID: <1314386521-29351-5-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1314386521-29351-4-git-send-email-fabio.estevam@freescale.com> References: <1314386521-29351-1-git-send-email-fabio.estevam@freescale.com> <1314386521-29351-2-git-send-email-fabio.estevam@freescale.com> <1314386521-29351-3-git-send-email-fabio.estevam@freescale.com> <1314386521-29351-4-git-send-email-fabio.estevam@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110826_151112_694543_3F419719 X-CRM114-Status: GOOD ( 14.83 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [216.32.180.31 listed in list.dnswl.org] Cc: Fabio Estevam , kernel@pengutronix.de 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: , 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 (demeter2.kernel.org [140.211.167.43]); Fri, 26 Aug 2011 19:11:56 +0000 (UTC) Allow KEY_HOME on mx53ard and KEY_POWER on mx53loco to generate a wakeup event. Signed-off-by: Fabio Estevam --- arch/arm/mach-mx5/board-mx53_ard.c | 2 +- arch/arm/mach-mx5/board-mx53_loco.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mx5/board-mx53_ard.c b/arch/arm/mach-mx5/board-mx53_ard.c index ddc3015..40ea3b7 100644 --- a/arch/arm/mach-mx5/board-mx53_ard.c +++ b/arch/arm/mach-mx5/board-mx53_ard.c @@ -115,7 +115,7 @@ static iomux_v3_cfg_t mx53_ard_pads[] = { } static struct gpio_keys_button ard_buttons[] = { - GPIO_BUTTON(ARD_HOME, KEY_HOME, 1, "home", 0), + GPIO_BUTTON(ARD_HOME, KEY_HOME, 1, "home", 1), GPIO_BUTTON(ARD_BACK, KEY_BACK, 1, "back", 0), GPIO_BUTTON(ARD_PROG, KEY_PROGRAM, 1, "program", 0), GPIO_BUTTON(ARD_VOLUMEUP, KEY_VOLUMEUP, 1, "volume-up", 0), diff --git a/arch/arm/mach-mx5/board-mx53_loco.c b/arch/arm/mach-mx5/board-mx53_loco.c index 1bb0b3c..6529bde 100644 --- a/arch/arm/mach-mx5/board-mx53_loco.c +++ b/arch/arm/mach-mx5/board-mx53_loco.c @@ -204,7 +204,7 @@ static iomux_v3_cfg_t mx53_loco_pads[] = { } static struct gpio_keys_button loco_buttons[] = { - GPIO_BUTTON(MX53_LOCO_POWER, KEY_POWER, 1, "power", 0), + GPIO_BUTTON(MX53_LOCO_POWER, KEY_POWER, 1, "power", 1), GPIO_BUTTON(MX53_LOCO_UI1, KEY_VOLUMEUP, 1, "volume-up", 0), GPIO_BUTTON(MX53_LOCO_UI2, KEY_VOLUMEDOWN, 1, "volume-down", 0), };