]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Revert "omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck"
authorTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 08:52:54 +0000 (01:52 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 08:52:54 +0000 (01:52 -0700)
This reverts commit 18fc252e78d914a150e278682425303c132a688d.

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: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c

index 82e735272bedd6121592c3a4e1504d968d931906..44f9a2ee6c0a327a49d5a5f406758e5bde96a15e 100644 (file)
@@ -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;
 }
 
 /*