]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
OMAP2/3 clock: fix DPLL rate calculation
authorTero Kristo <tero.kristo@nokia.com>
Mon, 1 Dec 2008 07:43:58 +0000 (00:43 -0700)
committerTony Lindgren <tony@atomide.com>
Sat, 6 Dec 2008 00:19:37 +0000 (16:19 -0800)
commit18a550088456d3c39e4eccf901ddd8669dbe6ee3
tree0b2a723edd294fa9e573fbbaf4eeaa80242c441d
parentefd65273726b12e42c7225bd1703e5252bdb46c0
OMAP2/3 clock: fix DPLL rate calculation

Noncore dpll can enter autoidle state, in which case the rate calculation
fails.  Fixed by checking dpll mode instead of idle status.

Also, previously, the OMAP2xxx code returned the wrong value for the
DPLL rate under some conditions.  Move the CORE_CLK rate recalculation
to clock24xx.c:omap2xxx_clk_get_core_rate().

This patch is a collaboration between Tero Kristo <tero.kristo@nokia.com>
and Paul Walmsley <paul@pwsan.com>.  Thanks to Peter de Schrijver
<peter.de-schrijver@nokia.com> for help debugging and Kevin Hilman
<khilman@deeprootsystems.com> for reporting the OMAP2 build problems with
an earlier version of this patch.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Peter de Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.h
arch/arm/mach-omap2/clock24xx.c
arch/arm/mach-omap2/clock24xx.h
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/sdrc2xxx.c
arch/arm/plat-omap/include/mach/clock.h