What can function clk_gate_endisable do?

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

What can function clk_gate_endisable do?

662 Views
jiangzhifei
Contributor I

Hi !

   In driver/clk/clk-gate.c file, the function clk_gate_endisable make sai2 mclk start output signal, Which register does this function operate?

best regards!

Labels (1)
0 Kudos
3 Replies

520 Views
igorpadykov
NXP Employee
NXP Employee

Hi jiang

for i.MX6UL  MSEL always selects MCLK option 1(0b01) in hardware connection,
option 1 means SAx_CLK_ROOT.  So enabling sai and ungating clock with CCM_CCGR5

will make sai mclk start output signal.

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

0 Kudos

520 Views
jiangzhifei
Contributor I

Hi igorpadykov

I add some print in clk_gate_endisable, it change the register value from 0x8010001e to 0x8010201e, and then sai2 mclk start output signal, I want to know which register has been changed?

Best regards

0 Kudos

520 Views
jiangzhifei
Contributor I

Hi igor!

I add print before and after clk_gate_endisable, but the value of CCM_CCGR5 is not change, and the signal change start on sai2 mclk, so there is another register make sai2 mclk start output...

[ 35.019058] get CCM_CCGR5 value = 0xf3ffc3ff
[ 35.023365] get CCM_CSCMR1 value = 0x4902840
[ 35.027667] get CCM_CS2CDR value = 0xdb6cf
[ 35.031794] get CCM_CCOSR value = 0xa0001
[ 35.035831] !!!!!!!!!!!!!!!!!!test able2 2
[ 35.039957] !!!!!!!!!!!!!!!!!!test able2 1
[ 35.044085] get CCM_CCGR5 value = 0xf3ffc3ff
[ 35.048386] get CCM_CSCMR1 value = 0x4902840
[ 35.052686] get CCM_CS2CDR value = 0xdb6cf
[ 35.056813] get CCM_CCOSR value = 0xa0001

0 Kudos