Download Print this page

Functional Clock Switching - Texas Instruments OMAP36 Series Technical Reference Manual

Advertisement

PRCM Basic Programming Model
Clock
enable
Source clock 1
Source clock 2
CM_FCLKEN_DOM.
EN_M1
CM_FCLKEN_DOM.
EN_M2
CM_CLKSEL_DOM
CLKSEL_CLK1
CLK1
The following functional clocks require this switching sequence:
sys_clkout2
48M_FCLK (and all gated versions of it)
12M_FCLK (and all gated versions of it)
DSS_TV_CLK
GPTx_FCLK (with x = 1, 10, and 11)
GPTx_ALWON_FCLK (with x = 2 up to 9)
3.6.6.1.2 Enabling and Disabling the Interface Clocks
The flow chart in
Figure 3-92
The first step before enabling an interface clock is to select the proper source clock using the
corresponding clock selection register (CM_CLKSEL_<domain>). This register allows selection of the
interconnect frequency (L3_ICLK, L4_ICLK) from among several divider ratios.
The interface clock is enabled or disabled by writing the dedicated bit in the CM_ICLKEN_<domain>
register. This bit has a direct effect on the clock activity:
The interface clock is turned on if the bit is enabled and the clock is not yet active.
The interface clock is turned off if the bit is disabled and the clock is not required by any other module.
The interface clock can be automatically enabled or disabled by the PRCM module, based on hardware
conditions. This automatic clock activity control mode is enabled by writing the corresponding bit in the
CM_AUTOIDLE_<domain > register. It takes effect only if the interface clock is enabled (the
corresponding bit in the CM_ICLKEN_<domain > is set to 1).
The hardware conditions for automatic gating (deactivation) of the clock are as follows:
The module activity; that is, the module is inactive.
The domain activity; that is, all modules in the domain are inactive.
The software can read the idle status register CM_IDLESTAT_<domain> at any time to know whether the
module is accessible. A module is inaccessible if its idle status bit is set. Accessing an idle module
generates an error (if the interface clock is still running) or a time-out (if the interface clock is cut).
426
Power, Reset, and Clock Management
Public Version
Figure 3-91. Functional Clock Switching
Clock source
Clock
switch
disable
shows the enable/disable sequence of the interface clock.
Copyright © 2009–2010, Texas Instruments Incorporated
Clock
enable
disable
SWPU177N – December 2009 – Revised November 2010
www.ti.com
Clock
prcm-080

Advertisement

loading