Skip to contentSkip to conversation

OMAP3: Add voltage dependency table for VDD1.

PATCH Vishwanath Sripathy 1 participant 1 message Dec 1, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Thara,

Quoted 35 lines

-----Original Message-----
From: Gopinath, Thara
Sent: Friday, October 29, 2010 9:08 PM
To: [email protected]
Cc: [email protected]; [email protected]; Cousson, Benoit; Sripathy, Vishwanath; Sawant, Anand; Gopinath, Thara
Subject: [PATCH v2 13/14] OMAP3: Add voltage dependency table for VDD1.

In OMAP3, for perfomrance reasons when VDD1 is at voltage above 1.075V, VDD2 should be at 1.15V for perfomrance reasons. This patch introduce this cross VDD dependency for OMAP3 VDD1.

---
 arch/arm/mach-omap2/voltage.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-omap2/voltage.c +0 -0

omap2/voltage.c
index 6f85f75..241fac5 100644

arch/arm/mach-omap2/voltage.c +6 -0
@@ -350,6 +350,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},

arch/arm/mach-omap2/voltage.c static struct omap_volt_data · line 370

Quoted 10 lines
arch/arm/mach-omap2/voltage.c +10 -0
+	{.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,
+	},
+};

Dependency table for 3630 is missing. Pls add the same.
Also voltage values for 3630 does not match those on OPP table. Pls align them.

Vishwa

Quoted 20 lines
arch/arm/mach-omap2/voltage.c +1 -0
+
 /* By default VPFORCEUPDATE is the chosen method of voltage scaling

*/
static bool voltscale_vpforceupdate = true;

arch/arm/mach-omap2/voltage.c +2 -0
@@ -574,6 +591,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);
arch/arm/mach-omap2/voltage.c +0 -0
 		}
 
 		vdd->vp_reg.tranxdone_status =

OMAP3430_VP1_TRANXDONE_ST_MASK;
--
1.7.0.4