|
我在TQ210下写的IIC驱动,结果老是time out ,这可能是什么原因呢?请高手指教!
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=2
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<4>here is the i2c_transfer
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=1
<7>i2c i2c-2: master_xfer[1] R, addr=0x50, len=1
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<4>the i2c_transfer return 0
<4>here is the i2c_transfer
<7>i2c i2c-2: master_xfer[0] W, addr=0x50, len=1
<7>i2c i2c-2: master_xfer[1] R, addr=0x50, len=1
<7>s3c-i2c s3c2440-i2c.2: START: 000000d0 to IICSTAT, a0 to DS
<7>s3c-i2c s3c2440-i2c.2: iiccon, 000000aa
<7>s3c-i2c s3c2440-i2c.2: timeout
<4>the i2c_transfer return 0
|
|