set CCM_CLKO1 to 11.2896MHzMHz

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

set CCM_CLKO1 to 11.2896MHzMHz

2,096件の閲覧回数
强王
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 返答(返信)

1,220件の閲覧回数
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 件の賞賛
返信

1,220件の閲覧回数
强王
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 件の賞賛
返信

1,220件の閲覧回数
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

1,220件の閲覧回数
强王
Contributor IV

HI Saurabh:

     Could you upload the document of this picture

0 件の賞賛
返信

1,220件の閲覧回数
saurabh206
Senior Contributor III

Hi Qiang

Please refer "IMX6DQRM.pdf"

60.7.4 SSI Clocking

Thanks

Saurabh

1,220件の閲覧回数
gusarambula
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

1,220件の閲覧回数
强王
Contributor IV

HI Saurabh and gusarambula:

I don't quite understand this picture

Can you tell me the code after the modification

0 件の賞賛
返信

1,220件の閲覧回数
强王
Contributor IV

HI Saurabh:

the board is imx6q sabresd

i  measure GPIO_0

0 件の賞賛
返信