[U-Boot] [PATCH 2/3] Reset interrupted i2c slaves (galaxy5200)

Detlev Zundel dzu at denx.de
Fri Aug 28 11:47:01 CEST 2009


Hi Eric,

> Reset any i2c devices that may have been interrupted by a system reset.
> Normally this would be accomplished by clocking the line until SCL and SDA
> are released and then sending a start condtiion (From an Atmel datasheet).
> But since there is only write access to these lines on the MPC5200 we can
> only attempt to reset any slave devices by sending more start commands than
> bits the slave is attempting to transmit.

You may want to talk to Heiko (on CC) about this deblocking stuff.
Heiko implemented an algorithm which seems to work very good for a lot
of different cpu types.

I think it may be worth to reuse what's available there.  And much more,
the algorithm Heiko has implemented has been thoroughly tested on actual
hardware whereas from your commit-msg it seems that your implementation
is more a theoretical one at the moment.

Cheers
  Detlev

-- 
You cannot teach what you do not know
You cannot lead where you will not go.
                          -- Anonymous
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


More information about the U-Boot mailing list