linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IBM ocp I2C
@ 2002-04-24  3:01 andrew may
  2002-04-24  3:01 ` andrew may
  2002-04-26 20:48 ` Armin
  0 siblings, 2 replies; 14+ messages in thread
From: andrew may @ 2002-04-24  3:01 UTC (permalink / raw)
  To: linuxppc-embedded


Would anyone be heartbroken if "struct i2c_algo_iic_data" went
away completely?

In this patch I dump getown and getclock because they aren't
used and I am sure there is a better way to do things.

Also calculate the I2C div value from the clock rate. I am
not sure if that will work on all 4xx types but it does the
right thing for my 405's.

I also fixed a few C++ style comments.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH]IBM OCP I2C
@ 2002-04-29 21:40 andrew may
       [not found] ` <3CCDE113.5000700@pacbell.net>
  0 siblings, 1 reply; 14+ messages in thread
From: andrew may @ 2002-04-29 21:40 UTC (permalink / raw)
  To: linuxppc-embedded


This is incremental to the other patches I posted. It gets the
iic_xfer that is based of the ppcboot code working. The return
values are still not correct but the data is transfered ok for
what I have tested. I do not try to do a Repeated Start for
anything yet either.

If anyone has any comments or more test conditions I would like
to hear them.

I pulled some defines from the PPCBoot code and I am not sure the
correct header file for them.

I would like to dump the iic_outb/inb as well. In the iic_xfer I
use readb/writeb directly without problems.

I put this comment in there about the driver. Does any see anything
wrong with this?
/*
 * Limits of the IBM OCP I2C driver.
 * There is no way to do lenght 0 transfers since iic->cntl TCT==00 means 1 byte
 * We can not handle I2C_M_NOSTART since there is no way to put just one bit
 * on the bus after a NA.
 * We can not handle I2C_M_REV_DIR_ADDR since the Rd/Wr bit is not
 * set directly in the address register and the controller uses the
 * Rd/Wr bit in the CNTL reg to know what to do.
 *
 * If you need to get around any of these I suggest you setup i2c-adap-ibm...
 * to use the algo-bit and provide functions to use the DirectControl Reg of
 * the IBM OCP hardware.
 */

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH]IBM OCP I2C
@ 2002-05-07 18:33 andrew may
  2002-05-07 19:54 ` andrew may
  0 siblings, 1 reply; 14+ messages in thread
From: andrew may @ 2002-05-07 18:33 UTC (permalink / raw)
  To: Armin; +Cc: linuxppc-embedded


Here is a patch that provides a new iic_xfer function. It is
inside of a #if 1 and all the code it should replace is in the
#else clause.

I have not been gotten to test the stuff from user space and I have
not checked the return values of the function yet. I don't know
how I can test failure conditions on the bus itself either.

I have been sucked into doing some other stuff recently but seeing
how others are starting to play with this now I though I should get
this out there again.

There is also a fix in iic_ibmocp_init for some unused/unitilized
vars.

I also removed some unneeded #if MODULE's.

I did not pull out my clk div stuff so that part of the patch
can be dropped.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-05-07 19:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-24  3:01 [PATCH] IBM ocp I2C andrew may
2002-04-24  3:01 ` andrew may
2002-04-24  4:36   ` Armin
2002-04-24 15:18     ` andrew may
2002-04-24 18:26   ` andrew may
2002-04-24 18:45     ` Armin
2002-05-01 17:05     ` Armin
2002-04-26 20:48 ` Armin
2002-04-27  3:35   ` andrew may
2002-04-28  4:09     ` Armin
  -- strict thread matches above, loose matches on Subject: below --
2002-04-29 21:40 [PATCH]IBM OCP I2C andrew may
     [not found] ` <3CCDE113.5000700@pacbell.net>
2002-04-30  0:05   ` andrew may
2002-05-07 18:33 andrew may
2002-05-07 19:54 ` andrew may

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).