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,702 次查看
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,444 次查看
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,444 次查看
gelei
Contributor I

Hi igor,

the esai clk route for sabreauto board is as below:

pastedImage_1.png

0 项奖励
回复

1,444 次查看
gelei
Contributor I

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

0 项奖励
回复