OMAP3 clock: 34xx clock: add enable/disable for non-CORE DPLLs
authorPaul Walmsley <paul@pwsan.com>
Fri, 4 Apr 2008 01:09:44 +0000 (19:09 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 4 Apr 2008 10:03:58 +0000 (13:03 +0300)
commit975424a40486cdfc8c4fbe62c3f2d52a399fdc02
tree3d72897d8e9f50b14df4c2d7b685dfc4d215233f
parent6a9969ed5c5d39a2f81e6352912f4dbc93784684
OMAP3 clock: 34xx clock: add enable/disable for non-CORE DPLLs

This patch implements enable/disable for non-CORE DPLLs (DPLLs 1, 2,
4, 5) in the OMAP34xx clock framework.

"Enabling" a DPLL in this context means taking the DPLL from off to
lock, off to bypass, or bypass to lock.  If the clock's target rate is
set to the DPLL parent's clock rate, the DPLL will go to bypass.
Otherwise, the DPLL will attempt to lock.  "Disabling" means going
from bypass or lock to off.

Jouni Högander contributed a fix for _omap3_noncore_dpll_lock().to
bypass the DPLL state test when the DPLL is in autoidle mode.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/clock34xx.h
arch/arm/mach-omap2/cm-regbits-34xx.h
include/asm-arm/arch-omap/clock.h