From patchwork Wed Mar 18 09:55:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 12814 X-Patchwork-Delegate: khilman@deeprootsystems.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 n2I9tZZb027974 for ; Wed, 18 Mar 2009 09:55:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754457AbZCRJzp (ORCPT ); Wed, 18 Mar 2009 05:55:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755015AbZCRJzp (ORCPT ); Wed, 18 Mar 2009 05:55:45 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:49676 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754432AbZCRJzn convert rfc822-to-8bit (ORCPT ); Wed, 18 Mar 2009 05:55:43 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n2I9tZ84017314 for ; Wed, 18 Mar 2009 04:55:41 -0500 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 n2I9tZWx022142 for ; Wed, 18 Mar 2009 15:25:35 +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 Mar 2009 15:25:35 +0530 From: "Nayak, Rajendra" To: "linux-omap@vger.kernel.org" CC: "Nayak, Rajendra" Date: Wed, 18 Mar 2009 15:25:34 +0530 Subject: [PATCH 04/05] OMAP3: SR: Disable SR autocomp only for CORE trans Thread-Topic: [PATCH 04/05] OMAP3: SR: Disable SR autocomp only for CORE trans Thread-Index: Acmnr65BMcBPIT30QBu4n7ChoX6tlw== Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB02FAEDE84B@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 From: Rajendra Nayak This patch disables the Smartreflex auto compensation for both VDD1 and VDD2 only during CORE transitions in idle path. Signed-off-by: Rajendra Nayak Signed-off-by: Jouni Hogander --- arch/arm/mach-omap2/pm34xx.c | 12 ++++++------ 1 files changed, 6 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 Index: linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c =================================================================== --- linux-omap-2.6.orig/arch/arm/mach-omap2/pm34xx.c 2009-03-18 13:56:15.853547167 +0530 +++ linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c 2009-03-18 13:56:26.570221029 +0530 @@ -321,9 +321,6 @@ void omap_sram_idle(void) printk(KERN_ERR "Invalid mpu state in sram_idle\n"); return; } - /* Disable smartreflex before entering WFI */ - disable_smartreflex(SR1); - disable_smartreflex(SR2); pwrdm_pre_transition(); @@ -352,6 +349,9 @@ void omap_sram_idle(void) /* CORE */ if (core_next_state < PWRDM_POWER_ON) { + /* Disable smartreflex before entering WFI */ + disable_smartreflex(SR1); + disable_smartreflex(SR2); omap_uart_prepare_idle(0); omap_uart_prepare_idle(1); if (core_next_state == PWRDM_POWER_OFF) { @@ -412,6 +412,9 @@ void omap_sram_idle(void) prm_clear_mod_reg_bits(OMAP3430_AUTO_OFF, OMAP3430_GR_MOD, OMAP3_PRM_VOLTCTRL_OFFSET); + /* Enable smartreflex after WFI */ + enable_smartreflex(SR1); + enable_smartreflex(SR2); } /* PER */ @@ -429,9 +432,6 @@ void omap_sram_idle(void) if (core_next_state < PWRDM_POWER_ON) prm_clear_mod_reg_bits(OMAP3430_EN_IO, WKUP_MOD, PM_WKEN); - /* Enable smartreflex after WFI */ - enable_smartreflex(SR1); - enable_smartreflex(SR2); pwrdm_post_transition(); --