CCGR in i.MX7D

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CCGR in i.MX7D

548 Views
ko-hey
Senior Contributor II

Hi all

I have questions about CCGR in i.MX7D.

Q1.
Please tell me the timing of the settings change.

My understanding is as below.
・The setting is immediately reflected in the Shadow Register and is pending until the clock of the peripheral can be changed.
・When settings can be changed, settings are automatically reflected.

How can user know the "PLL is ready" ?


Q2.
When not using the peripheral, CCGR is set to OFF (Domain clocks not needed), and it is implemented by ON (domain clocks required all the time) only when using it.

Is there any problem in designing switching CCGR dynamically on / off?

I am concerned about the design that NXP does not recommend the dynamic change for the i.MX7D design.

Ko-hey

Labels (3)
0 Kudos
2 Replies

434 Views
art
NXP Employee
NXP Employee

Q. How can user know the "PLL is ready" ?

A. There is the "LOCK" bit for each PLL in the corresponding CCM_ANALOG_PLL_xxx register. The '1' state of this bit means that the corresponding PLL is locked on its operating frequency and ready to use.

Q. Is there any problem in designing switching CCGR dynamically on / off?

A. What do you mean as "dynamically? The typical sequence of changing a PLL clock frequency and clock root(s) is as follows.

1. Stop and disable an IP(s) whose clock root(s) is to change.
2. Gate the clock(s) in the CCGR register(s).
3. Stop a PLL.
4. Set up a PLL for a new clock frequency.
5. Start a PLL and wait until it locks.
6. Configure the clock root(s) multiplexing, dividers etc.
7. Ungate the clock root(s) in the CCGR register(s).
8. Enable a corresponding IP(s), re-initialize and start it again.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

434 Views
ko-hey
Senior Contributor II

Could someone follow and answer this thread ?

Ko-hey

0 Kudos