From patchwork Wed Nov 18 08:46:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Reddy, Teerth" X-Patchwork-Id: 60948 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 nAI8jU9d002205 for ; Wed, 18 Nov 2009 08:46:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753473AbZKRIqq (ORCPT ); Wed, 18 Nov 2009 03:46:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752485AbZKRIqq (ORCPT ); Wed, 18 Nov 2009 03:46:46 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:36365 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbZKRIqp convert rfc822-to-8bit (ORCPT ); Wed, 18 Nov 2009 03:46:45 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id nAI8kmpa002124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Nov 2009 02:46:50 -0600 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id nAI8klRt029151; Wed, 18 Nov 2009 14:16:47 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Wed, 18 Nov 2009 14:16:47 +0530 From: "Reddy, Teerth" To: "linux-omap@vger.kernel.org" CC: "khilman@deeprootsystems.com" Date: Wed, 18 Nov 2009 14:16:45 +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: AcpoK6h7mrB5t3w/QimPZEDTOb77Ag== Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB030A9CA99F@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)