How to keep Mclk from Sai1 always on?

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

How to keep Mclk from Sai1 always on?

518 Views
lucas_tanure
Contributor I

Hi, 

I need MCLK from SAI1 to be output and always, even without use of SAI1 bus.

Because the Codec needs the clock to boot and if SAI1 only enables MCLK just before the use of SAI1 the codec doesn't boot.

During boot the kernel also needs to read the ID of the codec by regmap, which needs to boot the device, which needs MCLK. 

How can I configure MCLK1 to be always on since boot? 

Thanks

Lucas

0 Kudos
Reply
1 Reply

470 Views
igorpadykov
NXP Employee
NXP Employee

Hi Lucas

I am afraid there is no way to have SAI MCLK to be always on without loading

driver. One can try to use for such purpose CCM CLKO1,2 signals

described in sect.18.6.21 CCM Clock Output Source Register (CCM_CCOSR)

i.MX 6UltraLite Applications Processor Reference Manual

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

0 Kudos
Reply