From patchwork Thu May 28 12:43:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 26732 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 n4SChLcn011859 for ; Thu, 28 May 2009 12:43:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758868AbZE1MnQ (ORCPT ); Thu, 28 May 2009 08:43:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758300AbZE1MnQ (ORCPT ); Thu, 28 May 2009 08:43:16 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:58676 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758868AbZE1MnO (ORCPT ); Thu, 28 May 2009 08:43:14 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n4SCh9cn024737 for ; Thu, 28 May 2009 07:43:15 -0500 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n4SCh8na011130; Thu, 28 May 2009 18:13:08 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id n4SCh88I005731; Thu, 28 May 2009 18:13:08 +0530 Received: (from x0016154@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id n4SCh83i005729; Thu, 28 May 2009 18:13:08 +0530 From: Rajendra Nayak To: linux-omap@vger.kernel.org Cc: Rajendra Nayak Subject: [PATCH 03/06] OMAP3: PM: VDD2 dvfs at higher VDD1 opp Date: Thu, 28 May 2009 18:13:04 +0530 Message-Id: <1243514587-5323-3-git-send-email-rnayak@ti.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1243514587-5323-2-git-send-email-rnayak@ti.com> References: <1243514587-5323-1-git-send-email-rnayak@ti.com> <1243514587-5323-2-git-send-email-rnayak@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org This patch makes sure that VDD2 dvfs always happens at a higher VDD1 OPP, hence bringing down the VDD2 DVFS latency to a large extent. Having a smaller VDD2 dvfs latency helps drivers which are sensitive to the time during which SDRAM is inaccessible due to SDRC iclk being disabled. Signed-off-by: Rajendra Nayak --- arch/arm/mach-omap2/resource34xx.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/resource34xx.c b/arch/arm/mach-omap2/resource34xx.c index 9908e52..4c87436 100644 --- a/arch/arm/mach-omap2/resource34xx.c +++ b/arch/arm/mach-omap2/resource34xx.c @@ -353,6 +353,9 @@ int set_opp(struct shared_resource *resp, u32 target_level) int ind; if (resp == vdd1_resp) { + if (target_level < 3) + resource_release("vdd2_opp", &vdd2_dev); + resource_set_opp_level(VDD1_OPP, target_level, 0); /* * For VDD1 OPP3 and above, make sure the interconnect @@ -361,8 +364,6 @@ int set_opp(struct shared_resource *resp, u32 target_level) */ if (target_level >= 3) resource_request("vdd2_opp", &vdd2_dev, 400000); - else - resource_release("vdd2_opp", &vdd2_dev); } else if (resp == vdd2_resp) { tput = target_level;