From patchwork Tue Mar 24 10:54:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Reddy, Teerth" X-Patchwork-Id: 13942 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 n2OAsk7I003870 for ; Tue, 24 Mar 2009 10:55:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757498AbZCXKzG (ORCPT ); Tue, 24 Mar 2009 06:55:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757635AbZCXKzF (ORCPT ); Tue, 24 Mar 2009 06:55:05 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:50258 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757498AbZCXKzE convert rfc822-to-8bit (ORCPT ); Tue, 24 Mar 2009 06:55:04 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n2OAsuRE011115 for ; Tue, 24 Mar 2009 05:55:02 -0500 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 n2OAsunv026310 for ; Tue, 24 Mar 2009 16:24:56 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Tue, 24 Mar 2009 16:24:56 +0530 From: "Reddy, Teerth" To: "linux-omap@vger.kernel.org" Date: Tue, 24 Mar 2009 16:24:55 +0530 Subject: [PATCH 04/08] OMAP3: SR: Disable SR autocomp only for CORE trans Thread-Topic: [PATCH 04/08] OMAP3: SR: Disable SR autocomp only for CORE trans Thread-Index: Acmsbg8eU3Vu2+klTD6KJXTKD/UFOQAAN4uw Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB02FAFEE9B1@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(-) the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-omap-pm/arch/arm/mach-omap2/pm34xx.c =================================================================== --- linux-omap-pm.orig/arch/arm/mach-omap2/pm34xx.c 2009-03-20 10:45:58.505627611 +0530 +++ linux-omap-pm/arch/arm/mach-omap2/pm34xx.c 2009-03-20 10:46:11.362231683 +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 */ @@ -432,9 +435,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(); -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in