imx6q: Linux 3.10.17 change can reference clock (Urgent)

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

imx6q: Linux 3.10.17 change can reference clock (Urgent)

跳至解决方案
805 次查看
pj0585
Contributor III

Hi,

I'm using imx6q flexcan peripheral and I need to configure the CAN clock to a non-standard CAN freq that my application needs.

However, with the default CAN reference clock (can_root) of 30 MHz, I get bit error rate of 1.5%. If the reference clock is 60 MHz then I can reduce the bit error rate to 0.2 %.

So, how can I change the CAN reference clock to 60 MHz?

I had done this change in the 3.0.35 kernel (arch/arm/mach-mx6/clock.c calling clk_set_rate() modifies the register CCM_CSCMR2). But I don't know where to make a similar change in the 3.10.17 kernel. Can anybody please help?

Regards, Pj

标签 (2)
标记 (1)
0 项奖励
回复
1 解答
529 次查看
AnsonHuang
NXP Employee
NXP Employee

Hi, Prasant

     For Linux L3.10.17, you can make change in arch/arm/mach-imx/clk-imx6q.c, calling clk_set_rate() to do it, such as clk_set_rate(clk[can_root], 60000000), please try it.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
530 次查看
AnsonHuang
NXP Employee
NXP Employee

Hi, Prasant

     For Linux L3.10.17, you can make change in arch/arm/mach-imx/clk-imx6q.c, calling clk_set_rate() to do it, such as clk_set_rate(clk[can_root], 60000000), please try it.

0 项奖励
回复
529 次查看
pj0585
Contributor III

Hi Yongchai,

Thanks for the response!

Incidentally I also figured out today the same and had tried. It works!!

Regards, Pj

0 项奖励
回复