From patchwork Wed Nov 18 09:42:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Reddy, Teerth" X-Patchwork-Id: 60975 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 nAI9govs013698 for ; Wed, 18 Nov 2009 09:42:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756831AbZKRJmm (ORCPT ); Wed, 18 Nov 2009 04:42:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756638AbZKRJmm (ORCPT ); Wed, 18 Nov 2009 04:42:42 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:56737 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756636AbZKRJmk convert rfc822-to-8bit (ORCPT ); Wed, 18 Nov 2009 04:42:40 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id nAI9gh8F011451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Nov 2009 03:42:45 -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 nAI9ggch018624; Wed, 18 Nov 2009 15:12:42 +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 15:12:42 +0530 From: "Reddy, Teerth" To: "linux-omap@vger.kernel.org" CC: "khilman@deeprootsystems.com" Date: Wed, 18 Nov 2009 15:12:41 +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: AcpoM3ihipv3aHJUSMOSXDBxcJ194g== Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB030A9CA9F0@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-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index f14baa3..d5ed73f 100755 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -259,9 +260,15 @@ static int __init omap_i2c_init(void) return 0; } +static void enable_board_wakeup_source(void) +{ + omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line */ +} + void __init zoom_peripherals_init(void) { omap_i2c_init(); omap_serial_init(); usb_musb_init(); + enable_board_wakeup_source(); }