OMAP2/3 clock: split, rename omap2_wait_clock_ready()
authorPaul Walmsley <paul@pwsan.com>
Sat, 25 Jul 2009 01:44:03 +0000 (19:44 -0600)
committerpaul <paul@twilight.(none)>
Sat, 25 Jul 2009 02:10:35 +0000 (20:10 -0600)
commit72350b29a4c0debfc27c2edbeed9b4ff3f935dd4
tree0c4637987fdbe97bfbdab7e00031283af47aadc1
parentdf56556e571234cf26072cd58c01ac3520986b44
OMAP2/3 clock: split, rename omap2_wait_clock_ready()

Some OMAP2/3 hardware modules have CM_IDLEST attributes that are not
handled by the current omap2_wait_clock_ready() code.  In preparation
for patches that fix the unusual devices, rename the function
omap2_wait_clock_ready() to omap2_wait_module_ready() and split it
into three parts:

1. A clkops-specific companion clock return function (by default,
   omap2_clk_dflt_find_companion())

2. A clkops-specific CM_IDLEST register address and bit shift return
   function (by default, omap2_clk_dflt_find_idlest())

3. Code to wait for the CM to indicate that the module is ready
   (omap2_cm_wait_idlest())

Clocks can now specify their own custom find_companion() and find_idlest()
functions; used in subsequent patches.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.h
arch/arm/mach-omap2/prcm.c
arch/arm/plat-omap/include/mach/clock.h
arch/arm/plat-omap/include/mach/prcm.h