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

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

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

2,112件の閲覧回数
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,860件の閲覧回数
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 件の賞賛
返信