[U-Boot-Users] HARD_I2C support problems

Tales Toledo toledo.tales at gmail.com
Thu Jun 12 17:27:21 CEST 2008


Hi,

i am trying to communicate with lm75 dtt but i2c seems not work
properly in hard mode.
The u-boot serial prompt get stucked in transmission state.
I am using MPC885 and u-boot 1.3.0. Ucode patch is disable.
Did anybody have a similar problem?

Thx,
TT

Session debug log...
----------------------------------------------------------------------------------------
I2C:   [I2C] Setting rate...
        [I2C] trying hz=100000000, speed=100000, filter=0, modval=0
                moddiv=32, brgdiv=32
                accepted brgval=13, totspeed=97656
        [I2C] trying hz=100000000, speed=100000, filter=0, modval=1
                moddiv=16, brgdiv=63
                accepted brgval=29, totspeed=97656
        [I2C] trying hz=100000000, speed=100000, filter=0, modval=2
                moddiv=8, brgdiv=125
                accepted brgval=60, totspeed=99206
        [I2C] trying hz=100000000, speed=100000, filter=0, modval=3
                moddiv=4, brgdiv=250
                accepted brgval=122, totspeed=100000
[I2C] Best is:
[I2C] CPU=100000000hz RATE=100000 F=0 I2MOD=00000003 I2BRG=0000007a DIFF=0hz
[I2C] i2mod=00000006 i2brg=0000007a
[I2C] rbase = 0820
[I2C] tbase = 0840
[I2C] rxbd = fff02820
[I2C] txbd = fff02840
ready
[I2C] i2c_newio
[I2C] rxbd = fff02820
[I2C] txbd = fff02840
[I2C] tx_buf = fff02860
[I2C] i2c_send add=72 sec=00 flag=02 size=1
[I2C] txbd = fff02840
[I2C] Formatting addresses...
[I2C] copy data...
[I2C] txbd: length=0x0002 status=0x8400 addr[0]=0x90 addr[1]=0x03
[I2C] i2c_send add=00 sec=00 flag=04 size=2
[I2C] txbd = fff02848
[I2C] copy data...
[I2C] txbd: length=0x0002 status=0xa800 addr[0]=0x46 addr[1]=0x00
[I2C] i2c_doio
[I2C] Enabling I2C...




More information about the U-Boot mailing list