From patchwork Sat Apr 4 20:54:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 16349 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 n34KuQKt017211 for ; Sat, 4 Apr 2009 20:56:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753629AbZDDUzX (ORCPT ); Sat, 4 Apr 2009 16:55:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755510AbZDDUzQ (ORCPT ); Sat, 4 Apr 2009 16:55:16 -0400 Received: from utopia.booyaka.com ([72.9.107.138]:38011 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756080AbZDDUzI (ORCPT ); Sat, 4 Apr 2009 16:55:08 -0400 Received: (qmail 1362 invoked by uid 526); 4 Apr 2009 20:55:05 -0000 MBOX-Line: From nobody Sat Apr 4 14:54:09 2009 From: Paul Walmsley Subject: [PATCH 3/3] OMAP: dmtimer: enable all timers to be wakeup events To: linux-omap@vger.kernel.org Cc: Kevin Hilman , Paul Walmsley Date: Sat, 04 Apr 2009 14:54:09 -0600 Message-ID: <20090404205409.12269.94966.stgit@localhost.localdomain> In-Reply-To: <20090404205333.12269.76287.stgit@localhost.localdomain> References: <20090404205333.12269.76287.stgit@localhost.localdomain> User-Agent: StGIT/0.14.3.222.gddca MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Kevin Hilman All GP timers on OMAP2/3 can generate wakeup events. The wakeup status is cleared in the PRCM interrupt handler. Signed-off-by: Kevin Hilman Signed-off-by: Paul Walmsley --- arch/arm/mach-omap2/clock24xx.h | 4 ++-- arch/arm/plat-omap/dmtimer.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/clock24xx.h b/arch/arm/mach-omap2/clock24xx.h index 72003f7..88c5acb 100644 --- a/arch/arm/mach-omap2/clock24xx.h +++ b/arch/arm/mach-omap2/clock24xx.h @@ -625,8 +625,8 @@ static struct clk func_32k_ck = { .clkdm_name = "wkup_clkdm", }; -static struct clk secure_32k_fck = { - .name = "secure_32k_fck", +static struct clk secure_32k_ck = { + .name = "secure_32k_ck", .ops = &clkops_null, .rate = 32768, .flags = RATE_FIXED, diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index bf2b8ea..55bb996 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c @@ -321,11 +321,9 @@ static void omap_dm_timer_reset(struct omap_dm_timer *timer) l |= 0x2 << 8; /* Set clock activity to perserve f-clock on idle */ /* - * Enable wake-up only for GPT1 on OMAP2 CPUs. - * FIXME: All timers should have wake-up enabled and clear - * PRCM status. + * Enable wake-up on OMAP2 CPUs. */ - if (cpu_class_is_omap2() && (timer == &dm_timers[0])) + if (cpu_class_is_omap2()) l |= 1 << 2; omap_dm_timer_write_reg(timer, OMAP_TIMER_OCP_CFG_REG, l);