Download Print this page

Functional Clock Basic Programming Model - Texas Instruments OMAP36 Series Technical Reference Manual

Advertisement

www.ti.com
The functional clock is enabled or disabled by writing the dedicated bit in the
CM_FCLKEN_<domain_name> register. This bit has a direct effect on the clock activity:
The functional clock is turned on if the bit is enabled and the clock is not yet active.
The functional clock is turned off if the bit is disabled and the clock is not required by any other
module.
Module power domain is ON
Module functional clock is gated
Yes
Use DPLL4/5
(peripheral)?
Yes
Select DPLL 4/5 clocks as the
selectable source functional clocks
( 54MHz/ 48MHz )
Set the output clock divider for
120M_FCLK/ 96M_FCLK
Configure M and N values of the
DPLL4/5, depending on the desired
clock frequency for all functional
clocks
Yes
Are the source clock
selectable?
Select the source clock
CM_CLKSEL_<domain>
Set corresponding CM _FCLKEN1_<domain>
EN_<module> bit to 1
Module functional
clock is running
The functional clock must be disabled before switching or scaling its source clock. This means that all the
modules using the particular functional clock must not be active during clock switching. To switch a source
clock, perform the following sequence:
1. Disable the functional clock by setting the CM_FCLKEN_<power domain>EN_<module> bits to 0.
2. Modify the CM_CLKSEL_<power domain>CLKSEL_<clock> bits to select the new clock source or
clock divider.
3. Enable the functional clock by setting the CM_FCLKEN_<power domain>EN_<module> bits to 1.
The timing diagram in
The source clock can be switched between source clock 1 and source clock 2 using the
CM_CLKSEL_DOM.CLKSEL_CLK1 bit (source clock 1 is selected when the bit is set to 0; otherwise,
source clock 2 is selected). CLK1 can be requested by two modules, M1 and M2. The
CM_FCLKEN_DOM.EN_M1 and CM_FCLKEN_DOM.EN_M2 bits control the functional clock enable for
the two modules.
NOTE: The activation or deactivation of the clock is implementation-dependent, not one cycle of the
source clock, as shown in
SWPU177N – December 2009 – Revised November 2010
Public Version
Figure 3-90. Functional Clock Basic Programming Model
Start
Use internal
source clock?
No
Select external source clock sys_altclk
for the selectable source functional clocks
(54MHz clock, 48M_FCLK)
No
No
End
Figure 3-91
is a generic example of this sequencing for a functional clock (CLK1).
Figure
3-91.
Copyright © 2009–2010, Texas Instruments Incorporated
PRCM Basic Programming Model
Module functional
clock is running
Smart-idle
No
Module functional clock
can be gated?
Test the module functional
Clear coresponding CM_FCLKEN1_<domain>
clock <module>.
<module>_SYSC [9:8]
CLOCKACTIVITY bit field
No
Hardware test
* Clock domain Idle conditions are:
a. No other module sharing the same clock domain needs the clock.
(All modules of the clock domain are idled)
b. No wake-up event.
Power, Reset, and Clock Management
Start
No-idle
Module IDLE mode?
The
Software must ensure
Forced-idle
coherence between
Yes
module idle state, clock
activity bit test, and
clock gating request.
EN_<module> bit to 0
Are the Clock domain
Idle Condition*
Satisfied?
Module
Yes
functional clock
is gated
End
prcm-085
425

Advertisement

loading