Skip to contentSkip to conversation

OMAP3: PM: Smartreflex: Fix VDD2 OPP determining logic

PATCH In review Roger Quadros 2 participants 2 messages May 20, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP3: PM: Smartreflex: Fix VDD2 OPP determining logic

Use l3_ick clock rate to find out current VDD2 OPP since VDD2 OPP table uses rates corresponding to L3 clock.

---
 arch/arm/mach-omap2/smartreflex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/smartreflex.c +1 -1
index 061cd4e..422c917 100644
@@ -184,7 +184,7 @@ static u16 get_vdd2_opp(void)
 	u16 opp;
 	struct clk *clk;
 
-	clk = clk_get(NULL, "dpll3_m2_ck");
+	clk = clk_get(NULL, "l3_ick");
 
 	if (clk == NULL || IS_ERR(clk) || l3_opps == NULL)
 		return 0;
Signature · 1 line
1.6.0.4
#1 lore raw
Quoted 4 lines · Roger Quadros

Use l3_ick clock rate to find out current VDD2 OPP since VDD2 OPP table uses rates corresponding to L3 clock.

Thanks, pushed to PM branch.

Kevin

Quoted 19 lines
---
 arch/arm/mach-omap2/smartreflex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/smartreflex.c +1 -1
index 061cd4e..422c917 100644
@@ -184,7 +184,7 @@ static u16 get_vdd2_opp(void)
 	u16 opp;
 	struct clk *clk;
 
-	clk = clk_get(NULL, "dpll3_m2_ck");
+	clk = clk_get(NULL, "l3_ick");
 
 	if (clk == NULL || IS_ERR(clk) || l3_opps == NULL)
 		return 0;
Signature · 1 line
1.6.0.4