[PATCH][RFC]Updated MPC I2C driver

Adrian Cox adrian at humboldt.co.uk
Fri Jul 2 06:54:08 EST 2004


On Thu, 2004-07-01 at 20:20, Sylvain Munaut wrote:

> Interesting, it really looks like the MPC5200 I2C controller.
> Unfortunatly :
>  - On the MPC5200, all the status/controls bits are in the MSBs ( so
> the consts would need to be << 24 )

Are you sure about that? The MPC107 registers are little-endian PCI
registers, accessed with readl/writel, but it looks to me that the
MPC5200 registers are big-endian.

>  - And there is a interrupt control register I don't see in your code.
> It's shared by the two I2C controllers onboard.

That could easily be added as a special case.

> I'll try to see if I can make it work on the lite5200 board.

Please do try. It would be good if one driver covered all these chips.

I'm going to try byte reads and writes on the MPC107 as my next
experiment. I think that may avoid the need for separate access
functions.

- Adrian Cox


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





More information about the Linuxppc-embedded mailing list