From patchwork Wed Nov 18 08:52:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Reddy, Teerth" X-Patchwork-Id: 60949 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 nAI8qgmV003810 for ; Wed, 18 Nov 2009 08:52:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752485AbZKRIwf (ORCPT ); Wed, 18 Nov 2009 03:52:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752447AbZKRIwf (ORCPT ); Wed, 18 Nov 2009 03:52:35 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:44928 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305AbZKRIwf convert rfc822-to-8bit (ORCPT ); Wed, 18 Nov 2009 03:52:35 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id nAI8qbth032474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Nov 2009 02:52:39 -0600 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id nAI8qbDj000758; Wed, 18 Nov 2009 14:22:37 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Wed, 18 Nov 2009 14:22:36 +0530 From: "Reddy, Teerth" To: "linux-omap@vger.kernel.org" CC: "khilman@deeprootsystems.com" Date: Wed, 18 Nov 2009 14:22:35 +0530 Subject: [PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2 Thread-Topic: [PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2 Thread-Index: AcpoLHlbSX+Xf9LyT82NrxecaA2dWQ== Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB030A9CA9A9@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 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-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index 10b50f1..367215c 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -66,10 +67,16 @@ static struct twl4030_platform_data zoom2_twldata = { extern int __init omap_zoom2_debugboard_init(void); extern void __init zoom_peripherals_init(void); +static void enable_board_wakeup_source(void) +{ + omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line */ +} + static void __init omap_zoom2_init(void) { zoom_peripherals_init(); omap_zoom2_debugboard_init(); + enable_board_wakeup_source(); } static void __init omap_zoom2_map_io(void)