omap2 clock: generalize clock enable upon framework initialization
authorPaul Walmsley <paul@pwsan.com>
Mon, 27 Aug 2007 08:39:22 +0000 (02:39 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 31 Aug 2007 18:15:14 +0000 (11:15 -0700)
commit9fa3c4514ea88754e855cc7b049d190a8005e52a
tree30b80bafe85b7926c1993a4a1cb717eb83c347dc
parentb0c1a8d8196f64e817b170faf1cda6d0c52724a0
omap2 clock: generalize clock enable upon framework initialization

The OMAP2 clock framework enables a few clocks by hand upon initialization.
OMAP3430 will have a different set of clocks to enable upon init.  So,
generalize this code by adding a new clock flag, ENABLE_ON_INIT, to mark
clocks that should be enabled on init; and add a new framework-wide function,
clk_enable_init_clocks(), that can be called from generalized init code.

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