Where pll4_bypass_src is set to choose osc 24MHz or CLK2_N/P as source in linux BSP code?

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

Where pll4_bypass_src is set to choose osc 24MHz or CLK2_N/P as source in linux BSP code?

1,695件の閲覧回数
gelei
Contributor I

Hi NXP engineers,

On the 6qp_sabreauto board, ESAI use 24.576Mhz external osc as clock source,and the clock route is like this:

pastedImage_1.png

In the kernel code, only esai_sel is set by imx6qdl_sabreauto.dtsi to choose 'PLL4 divide clock':

pastedImage_2.png

I didn't see where pll4_bypass_src is set in the BSP code:

pastedImage_3.png

We need to use 24MHz osc as pll4 source,so we need to know where pll4_bypass_src is set in the BSP code(but we can't find related code).

Can someone explain this in detail? LilyZhangliqiang

Thanks! 

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,437件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

thanks, pll4_bypass_src is set in the BSP code in linux/arch/arm/mach-imx/clk-imx6q.c :

    clk[IMX6QDL_PLL4_BYPASS] = imx_clk_mux_flags("pll4_bypass", base + 0x70, 16, 1,
pll4_bypass_sels, ARRAY_SIZE(pll4_bypass_sels), CLK_SET_RATE_PARENT); 

Best regards
igor

0 件の賞賛
返信

1,437件の閲覧回数
gelei
Contributor I

Hi igor,

the esai clk route for sabreauto board is as below:

pastedImage_1.png

0 件の賞賛
返信

1,437件の閲覧回数
gelei
Contributor I

Ignore this topic. I know how imx6 sabreauto board handle  pll4_bypass_src now.

0 件の賞賛
返信