how to make enable the i2c0 or i2c1 in uboot source code

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

how to make enable the i2c0 or i2c1 in uboot source code

1,681 Views
laxmankumar
Contributor II

How to enable i2c0 or i2c1 or i2c2 in imx6q sabreasd of uboot code.

i got below error..

EC [PRIME]
Error: FEC address not set.

Normal Boot
Hit any key to stop autoboot: 0
=>
=>
=>
=>
=>
=> i2c dev 1
Setting bus to 1
=> i2c probe
Valid chip addresses: 08 20 64
=> i2c dev 2
Setting bus to 2
=> i2c probe
Valid chip addresses:wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x0 retry=0
wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x0 retry=1
wait_for_sr_state: failed sr=81 cr=a0 state=2020

Im unable to probe i2c0 and i2c2 devices.

please help me..

Thank you,

Reagards,

laxman

Labels (1)
0 Kudos
Reply
1 Reply

1,429 Views
igorpadykov
NXP Employee
NXP Employee

Hi laxman

one can set i2c pads as in below example, please pay attention that sion bit was set:

mx6sabresd.c\mx6sabresd\freescale\board - uboot-imx - i.MX U-Boot 

also check that i2c clocks were enabled in CCM Clock Gating Registers (CCM_CCGRn)

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

0 Kudos
Reply