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?