From patchwork Wed Jun 15 21:12:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ambresh K X-Patchwork-Id: 883592 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5FLCuep030763 for ; Wed, 15 Jun 2011 21:12:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754414Ab1FOVMi (ORCPT ); Wed, 15 Jun 2011 17:12:38 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:40017 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736Ab1FOVMi (ORCPT ); Wed, 15 Jun 2011 17:12:38 -0400 Received: from dlep35.itg.ti.com ([157.170.170.118]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p5FLCbGe002913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Jun 2011 16:12:37 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep35.itg.ti.com (8.13.7/8.13.8) with ESMTP id p5FLCbxx027006; Wed, 15 Jun 2011 16:12:37 -0500 (CDT) Received: from dlee73.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p5FLCavu024166; Wed, 15 Jun 2011 16:12:37 -0500 (CDT) Received: from dlelxv24.itg.ti.com (172.17.1.199) by DLEE73.ent.ti.com (157.170.170.88) with Microsoft SMTP Server id 8.3.106.1; Wed, 15 Jun 2011 16:12:36 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id p5FLCaFP021070; Wed, 15 Jun 2011 16:12:36 -0500 Received: from localhost (a0393775.am.dhcp.ti.com [146.252.40.26]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id p5FLCaf03259; Wed, 15 Jun 2011 16:12:36 -0500 (CDT) From: Ambresh K To: Tony Lindgren CC: linux-omap , linux-kernel Subject: [PATCH] OMAP4: DMTIMER: enable autoidle mode Date: Wed, 15 Jun 2011 14:12:35 -0700 Message-ID: <1308172355-1694-1-git-send-email-ambresh@ti.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 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 (demeter2.kernel.org [140.211.167.43]); Wed, 15 Jun 2011 21:12:57 +0000 (UTC) From: Ambresh K Currently autoidle is only enabled for OMAP2/3; by enabling autoidle, the automatic L4 clock gating strategy is applied based on L4 activity, otherwise L4 clock to module will be a free running. Signed-off-by: Ambresh K --- arch/arm/plat-omap/dmtimer.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index ee9f6eb..02d0f7a 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c @@ -342,8 +342,8 @@ 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()) + /* Enable autoidle on OMAP2 CPUs. */ + if (cpu_class_is_omap2()) l |= 0x1 << 0; /*