Hi Satoshi
first it may be suggested to check if there is another
procedure/function in customer software which also changes CCM_CCOSR.
Second, one can try first to set CLKO2_EN=0 (disable CCM_CLKO2 clock),
change CLKO2_DIV, then CLKO2_EN=1 (enable CCM_CLKO2 clock).
Third, one can change CLKO2_DIV, then immediately read back CCM_CCOSR
register and compare with intended value. If it is not correct, then write CLKO2_DIV
again.
To check if misbehaviour was caused by hardware, one can try to reproduce it
on Freescale reference board with Demo images L3.0.35_4.1.0_DEMO_IMAGE_BSP
:
i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite, i.MX 6Solo and i.MX 6Sololite Linux Binary Demo Files.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------