How to enable Flexcan1 on iMX6Q Sabre-AI using U-Boot

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

How to enable Flexcan1 on iMX6Q Sabre-AI using U-Boot

728 次查看
usuda
Contributor I

Hi,

I want to know how to enable Flexcan1 on iMX6Q Sabre AI board using U-Boot.

Because I want to execute some simple program from U-Boot.

I think it seems possible with i2c command.

But I don't know the details.

0 项奖励
回复
2 回复数

667 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Hisashi 

unfortunately flexcan is not supported in nxp uboot releases, one can try to

port it using linux driver, documentation can be found on

i.MX Software|NXP 

or post this to uboot mail list

lists.denx.de Mailing Lists 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

667 次查看
usuda
Contributor I

Hi igor,

Thank you for your reply.

I can enable flexcan1 by using the following U-Boot commands.

  => i2c dev 2

  Setting bus to 2

  => i2c mm 32 0

  00000000: 11 ? 0

  00000001: 00 ? ef

  00000002: f0 ? 0

  00000003: ff ? 0

  00000004: 01 ? ac

  00000005: 00 ? ?

- read input_port_reg(0x00)

- set output_port_reg(0x01) to 0xef

- set polarity_reg(0x02) to 0x00

- set config_reg(0x03) to 0x00

- set timeout_reg(0x04) to 0xac

Best regards,

Hisashi USUDA

0 项奖励
回复