How to set imx6 audio pll clock in linux

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

How to set imx6 audio pll clock in linux

1,403 Views
arc_lin
Contributor II

I am reference this doc to config pll4 clock.

How can I set CCM_ANALOG_PLL_AUDIO_NUM to "672" and set CCM_ANALOG_PLL_AUDIO_DENOM to "1000" in linux (imx_4.9.11_1.0.0_ga)?

I can't find any related clock device in clk-imx6q.c.

and How to set CCM_ANALOG_PLL_AUDIO.POWERDOWN to 0 if there is no clock device in clk-imx6q.c?

Thanks!

Labels (2)
0 Kudos
2 Replies

785 Views
igorpadykov
NXP Employee
NXP Employee

Hi arc

please look at L4.9.11 audio clock considerations on

TLV320AIC3256 and MX6DL on Linux 4.9 kernel question 

linux clock framework presentation

https://elinux.org/images/b/b8/Elc2013_Clement.pdf 

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

0 Kudos

785 Views
arc_lin
Contributor II

Hi Igor

Thank for your reply, this doc "linux clock framework presentation" gives me lots help.

In Where can I change SSI's sys clock (from 11.2896 MHz to 12.288 MHz) 

I know some way like this:

*(volatile unsigned int*) CCM_ANALOG_PLL_AUDIO_NUM = 84;

*(volatile unsigned int*) CCM_ANALOG_PLL_AUDIO_DENOM = 125;

to set AUDIO_NUM and AUDIO_DENOM in kernel,
Is that the only way to set AUDIO_NUM and AUDIO_DENOM register in kernel ?

Thanks!

0 Kudos