set CCM_CLKO1 to 11.2896MHzMHz

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

set CCM_CLKO1 to 11.2896MHzMHz

1,821 次查看
强王
Contributor IV

in 3.10.53 kernel:

CCM_CLKO1(audio i2s master)is 24MHZ ,   how to set to 11.2896MHzMHz

I change

imx_clk_set_rate(clk[pll4_audio_div], 541900800);

to

imx_clk_set_rate(clk[pll4_audio_div], 90316800); //8*11289600

question:

clk_get_rate(data->codec_clk) print the value is 11289600,

but the clock is still 22.5MHZ(11289600*2) by  oscilloscope

标签 (2)
8 回复数

945 次查看
saurabh206
Senior Contributor III

Hi

Qiang

What is your kernel version?

For Linux Kernel 3.0.35

you can refer arch\arm\mach-mx6\clock.c

clk_set_rate().

Thanks

Saurabh

0 项奖励

945 次查看
强王
Contributor IV

in 3.10.53 kernel:

CCM_CLKO1(audio i2s master)is 24MHZ ,   how to set to 11.2896MHzMHz

I change

imx_clk_set_rate(clk[pll4_audio_div], 541900800);

to

imx_clk_set_rate(clk[pll4_audio_div], 90316800); //8*11289600

question:

clk_get_rate(data->codec_clk) print the value is 11289600,

but the clock is still 22.5MHZ(11289600*2) by  oscilloscope

0 项奖励

945 次查看
saurabh206
Senior Contributor III

Hi Qiang

Which clock you are measuring MCLK or Bit clock? if it is bit clock (SSI clock) than output clock is divided based on DIV2, PSR and PM parameter configuration.

You can check

pastedImage_0.png

945 次查看
强王
Contributor IV

HI Saurabh:

     Could you upload the document of this picture

0 项奖励

945 次查看
saurabh206
Senior Contributor III

Hi Qiang

Please refer "IMX6DQRM.pdf"

60.7.4 SSI Clocking

Thanks

Saurabh

945 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Thank you, Saurabh, for the help! I'm sure this information will help other users of the communities.

0 项奖励

945 次查看
强王
Contributor IV

HI Saurabh and gusarambula:

I don't quite understand this picture

Can you tell me the code after the modification

0 项奖励

945 次查看
强王
Contributor IV

HI Saurabh:

the board is imx6q sabresd

i  measure GPIO_0

0 项奖励