imx6q: Linux 3.10.17 change can reference clock (Urgent)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6q: Linux 3.10.17 change can reference clock (Urgent)

Jump to solution
736 Views
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

Labels (2)
Tags (1)
0 Kudos
1 Solution
460 Views
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.

View solution in original post

0 Kudos
2 Replies
461 Views
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 Kudos
460 Views
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 Kudos