From patchwork Wed Aug 18 11:20:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 120139 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7IBKWwO019617 for ; Wed, 18 Aug 2010 11:20:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752828Ab0HRLUd (ORCPT ); Wed, 18 Aug 2010 07:20:33 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:43018 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752814Ab0HRLU1 (ORCPT ); Wed, 18 Aug 2010 07:20:27 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o7IBKM4G031545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Aug 2010 06:20:25 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o7IBKGpJ022576; Wed, 18 Aug 2010 16:50:20 +0530 (IST) From: Thara Gopinath To: linux-omap@vger.kernel.org Cc: khilman@deeprootsystems.com, paul@pwsan.com, vishwanath.bs@ti.com, sawant@ti.com, b-cousson@ti.com, Thara Gopinath Subject: [PATCH 13/13] OMAP3: Add voltage dependency table for VDD1. Date: Wed, 18 Aug 2010 16:50:12 +0530 Message-Id: <1282130412-12027-14-git-send-email-thara@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1282130412-12027-1-git-send-email-thara@ti.com> References: <1282130412-12027-1-git-send-email-thara@ti.com> 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.3 (demeter.kernel.org [140.211.167.41]); Wed, 18 Aug 2010 11:20:34 +0000 (UTC) diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c index 2fd644a..3c990d0 100644 --- a/arch/arm/mach-omap2/voltage.c +++ b/arch/arm/mach-omap2/voltage.c @@ -348,6 +348,23 @@ static struct omap_volt_data omap44xx_vdd_core_volt_data[] = { {.volt_nominal = 1100000, .sr_errminlimit = 0xF9, .vp_errgain = 0x16}, }; +/* OMAP 3430 MPU Core VDD dependency table */ +static struct omap_vdd_dep_volt omap34xx_vdd1_vdd2_data[] = { + {.main_vdd_volt = 975000, .dep_vdd_volt = 1050000}, + {.main_vdd_volt = 1075000, .dep_vdd_volt = 1050000}, + {.main_vdd_volt = 1200000, .dep_vdd_volt = 1150000}, + {.main_vdd_volt = 1270000, .dep_vdd_volt = 1150000}, + {.main_vdd_volt = 1350000, .dep_vdd_volt = 1150000}, + {.main_vdd_volt = 0, .dep_vdd_volt = 0}, +}; + +static struct omap_vdd_dep_info omap34xx_vdd1_dep_info[] = { + { + .name = "core", + .dep_table = omap34xx_vdd1_vdd2_data, + }, +}; + /* By default VPFORCEUPDATE is the chosen method of voltage scaling */ static bool voltscale_vpforceupdate = true; @@ -523,6 +540,8 @@ static void __init omap3_vdd_data_configure(struct omap_vdd_info *vdd) vdd->volt_data = omap34xx_vdd1_volt_data; vdd->volt_data_count = ARRAY_SIZE(omap34xx_vdd1_volt_data); + vdd->dep_vdd_info = omap34xx_vdd1_dep_info; + vdd->nr_dep_vdd = ARRAY_SIZE(omap34xx_vdd1_dep_info); } vdd->volt_clk = clk_get(NULL, "dpll1_ck"); vdd->opp_dev = omap2_get_mpuss_device();