Commit cd365713 authored by Tony Lindgren's avatar Tony Lindgren

Revert "omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck"

This reverts commit 18fc252e.

As noted by Richard Woodruff, with this the system gets the
wrong osc speed and ends up setting the system speed wrongly.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent b3a19cb7
......@@ -1149,8 +1149,8 @@ static void __init omap2_get_crystal_rate(struct clk *osc, struct clk *sys)
div &= OMAP_SYSCLKDIV_MASK;
div >>= sys->rate_offset;
osc->rate = sclk;
sys->rate = osc->rate / div;
osc->rate = sclk * div;
sys->rate = sclk;
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment