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.
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
or post this to uboot mail list
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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