From patchwork Tue Nov 3 13:29:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjeev Premi X-Patchwork-Id: 57304 X-Patchwork-Delegate: tony@atomide.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 nA3DTwdt030450 for ; Tue, 3 Nov 2009 13:29:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753490AbZKCN3X (ORCPT ); Tue, 3 Nov 2009 08:29:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753507AbZKCN3W (ORCPT ); Tue, 3 Nov 2009 08:29:22 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:49408 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753383AbZKCN3U (ORCPT ); Tue, 3 Nov 2009 08:29:20 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id nA3DTMpH011280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 3 Nov 2009 07:29:24 -0600 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id nA3DTL1E014081; Tue, 3 Nov 2009 18:59:21 +0530 (IST) From: Sanjeev Premi To: linux-omap@vger.kernel.org Cc: Sanjeev Premi Subject: [PATCH 2/2] omap3evm: Add keypad as wakeup source Date: Tue, 3 Nov 2009 18:59:21 +0530 Message-Id: <1257254961-22506-1-git-send-email-premi@ti.com> X-Mailer: git-send-email 1.6.2.2 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-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 660ef8c..6a1a0cd 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c @@ -343,6 +343,16 @@ static struct platform_device *omap3_evm_devices[] __initdata = { &omap3evm_smc911x_device, }; +/* + * Set wakeup sources for the board + */ +static void __init omap3_evm_wakeup_sources(void) +{ + pr_info("omap3evm: Adding wakeup sources"); + + omap_cfg_reg(AF26_34XX_SYS_NIRQ); +} + static void __init omap3_evm_init(void) { omap3_evm_i2c_init(); @@ -359,6 +369,8 @@ static void __init omap3_evm_init(void) #endif usb_musb_init(); ads7846_dev_init(); + + omap3_evm_wakeup_sources(); } static void __init omap3_evm_map_io(void)