imx6q: Linux 3.10.17 change can reference clock (Urgent)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6q: Linux 3.10.17 change can reference clock (Urgent)

ソリューションへジャンプ
973件の閲覧回数
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 解決策
697件の閲覧回数
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 返答(返信)
698件の閲覧回数
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 件の賞賛
返信
697件の閲覧回数
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 件の賞賛
返信