From: Tony Lindgren Date: Mon, 13 Aug 2007 08:52:54 +0000 (-0700) Subject: Revert "omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck" X-Git-Tag: v2.6.23-omap1~235 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cd36571382674b5d6c80450f58680dc24eaaf9a1;p=linux-2.6-omap-h63xx.git Revert "omap2 clock: fix incorrect rate calculation for osc_ck, sys_ck" 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 --- diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 82e735272be..44f9a2ee6c0 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -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; } /*