aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/Kconfig
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2008-08-19 04:08:43 -0400
committerTony Lindgren <tony@atomide.com>2008-08-19 04:08:43 -0400
commitd459bfe01f523983a822de8c2d3fe0bd2f2c194e (patch)
tree9f583480f3c0940778bb0f7b4fee5c68eb5b5bfc /arch/arm/plat-omap/Kconfig
parentecb24aa129c6d4b2152571f856320aa7dea41676 (diff)
ARM: OMAP2: Clockdomain: Add base OMAP2/3 clockdomain code
This patch creates an interface to the clockdomain registers in the PRM/CM modules on OMAP2/3. This interface is intended to be used by PM code, e.g., pm.c; not by device drivers directly. The patch also adds clockdomain usecount tracking. This is intended to be called whenever the first clock in a clockdomain is enabled, or when the last enabled clock in a clockdomain is disabled. If the clockdomain is in software-supervised mode, the code will force-wakeup or force-sleep the clockdomain. If the clockdomain is in hardware-supervised mode, the first clock enable will add sleep and wakeup dependencies on a user-selectable set of parent domains (usually MPU & IVA2), and the disable will remove them. Each clockdomain will be defined in later patches as static structures. The clockdomain structures are linked into a list at boot by clkdm_register(), similar to the OMAP clock code. The patch adds a Kconfig option, CONFIG_OMAP_DEBUG_CLOCKDOMAIN, which when enabled will emit verbose debug messages via pr_debug(). Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/Kconfig')
-rw-r--r--arch/arm/plat-omap/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig
index e815fa35f7f4..ef62bf21e179 100644
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -41,6 +41,18 @@ config OMAP_DEBUG_POWERDOMAIN
41 for every powerdomain register write. However, the 41 for every powerdomain register write. However, the
42 extra detail costs some memory. 42 extra detail costs some memory.
43 43
44config OMAP_DEBUG_CLOCKDOMAIN
45 bool "Emit debug messages from clockdomain layer"
46 depends on ARCH_OMAP2 || ARCH_OMAP3
47 default n
48 help
49 Say Y here if you want to compile in clockdomain layer
50 debugging messages for OMAP2/3. These messages can
51 provide more detail as to why some clockdomain calls
52 may be failing, and will also emit a descriptive message
53 for every clockdomain register write. However, the
54 extra detail costs some memory.
55
44config OMAP_RESET_CLOCKS 56config OMAP_RESET_CLOCKS
45 bool "Reset unused clocks during boot" 57 bool "Reset unused clocks during boot"
46 depends on ARCH_OMAP 58 depends on ARCH_OMAP