From cd36571382674b5d6c80450f58680dc24eaaf9a1 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Mon, 13 Aug 2007 01:52:54 -0700 Subject: [PATCH] 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 --- arch/arm/mach-omap2/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /* -- 2.41.1