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

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

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

1,403 次查看
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

标签 (1)
0 项奖励
1 回复

1,151 次查看
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 项奖励