Configure CCM_CCOSR register from kernel

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure CCM_CCOSR register from kernel

741 Views
damgot
Contributor I

Hello,

I'm using yocto to generate u-boot, kernel and rootfs for my IMX6S.

I'm using Linux 3.14.1.0.

What is the best way to configure CCM_CCOSR register from kernel ?

I would like to generate a 24.576 MHz for an audio codec but I don't find a proper way to configure CCM_CCOSR register.

Many thanks for your help.

Labels (1)
0 Kudos
8 Replies

284 Views
deven_solanki
Contributor III

Hi,

I am also looking for the same. Any update on this ?

Could any one please give any example for the same.

Thanks in advance.

0 Kudos

284 Views
aduskett
Contributor II

I too would like to know this.  The clk-imx6q.c file is a mess and incredibly convoluted.  

0 Kudos

284 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Damien

one can look at CLKO signal settings in clk-imx6q.c

linux-2.6-imx.git - Freescale i.MX Linux Tree

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

284 Views
damgot
Contributor I

Thanks for your answer.

But is there a way to generate a 24,576 MHz with the imx6 ? It looks not but I hope i'm wrong...

Best regards

0 Kudos

284 Views
igorpadykov
NXP TechSupport
NXP TechSupport

one can try to configure some pll for example to 614.4MHz

then divide it by 25.

~igor

0 Kudos

284 Views
damgot
Contributor I

Ok but where and how can I configure the PLL ? I'm not very familar with imx clock management and I don't find how to change clock in arch/arm/mach-imx/clk-imx6q.c.

It seems to be a list of clock with register address, shift and lenght but no value ?

Many thanks for your help.

0 Kudos

284 Views
igorpadykov
NXP TechSupport
NXP TechSupport

please read sect.18.5.1.3 PLL reference clock i.MX6DQ Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf

~igor

0 Kudos

284 Views
damgot
Contributor I

Thanks for your answer but it's not help me.

I've already read this chapter and yes, it explain how to configure the PLL, and I know what to write in the PLL registers, but not where doing this in kernel drivers...

I can not find any documentation from freescale about this and the arch/arm/mach-imx/clk-imx6q.c are not very documented...

0 Kudos