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
解決済! 解決策の投稿を見る。
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.
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.
Hi Yongchai,
Thanks for the response!
Incidentally I also figured out today the same and had tried. It works!!
Regards, Pj