From patchwork Tue Feb 15 16:30:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 559091 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1FFSFpf008309 for ; Tue, 15 Feb 2011 15:28:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755110Ab1BOP2O (ORCPT ); Tue, 15 Feb 2011 10:28:14 -0500 Received: from smtp.nokia.com ([147.243.128.24]:24497 "EHLO mgw-da01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753214Ab1BOP2O (ORCPT ); Tue, 15 Feb 2011 10:28:14 -0500 Received: from sokoban.nmp.nokia.com (sokoban.nmp.nokia.com [172.22.215.13]) by mgw-da01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p1FFS7EH015726; Tue, 15 Feb 2011 17:28:08 +0200 From: Tero Kristo To: linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Subject: [PATCHv2] omap2/3: dmtimer: Enable autoidle Date: Tue, 15 Feb 2011 18:30:28 +0200 Message-Id: <1297787428-5717-1-git-send-email-tero.kristo@nokia.com> X-Mailer: git-send-email 1.7.1 X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Feb 2011 15:28:18 +0000 (UTC) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index 1d706cf..ee9f6eb 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c @@ -342,6 +342,10 @@ static void omap_dm_timer_reset(struct omap_dm_timer *timer) l |= 0x02 << 3; /* Set to smart-idle mode */ l |= 0x2 << 8; /* Set clock activity to perserve f-clock on idle */ + /* Enable autoidle on OMAP2 / OMAP3 */ + if (cpu_is_omap24xx() || cpu_is_omap34xx()) + l |= 0x1 << 0; + /* * Enable wake-up on OMAP2 CPUs. */