vlynq_fck is a clksel clock. But omap2_clk_set_parent() is missing
the code to divide its parent's rate down appropriately when vlynq_fck
is set to use a core_ck parent.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
if (src_clk == &func_96m_ck)
val = 0;
else if (src_clk == &core_ck)
- val = 0x10;
+ val = 0x10; /* rate needs fixing */
}
break;
case CM_CORE_SEL2:
clk->parent = new_parent;
/* SRC_RATE_SEL_MASK clocks follow their parents rates.*/
- if ((new_parent == &core_ck) && (clk == &dss1_fck))
+ if ((new_parent == &core_ck) &&
+ (clk == &dss1_fck || clk == &vlynq_fck))
clk->rate = new_parent->rate / 0x10;
else
clk->rate = new_parent->rate;