[U-Boot] I2C Register

Stefan Roese sr at denx.de
Thu Feb 4 15:53:07 CET 2010


Hi Ronny,

On Thursday 04 February 2010 15:30:35 Ronny D wrote:
> I am trying to read SPD data from dimm though I2c.
> as the board that i am using it has different I2c register so it is
>  difficult to match with the register used in u-boot.

Which platform are you using? PPC4xx? Or something else?

>  Can i get the
>  information about
> /*-------------------------------------------------------------------------
> ----
> 
> | IIC Register Offsets
> 
> '--------------------------------------------------------------------------
> --*/ #define IICMDBUF  0x00
> #define IICSDBUF  0x02
> #define IICLMADR  0x04
> #define IICHMADR  0x05
> #define IICCNTL   0x06
> #define IICMDCNTL  0x07
> #define IICSTS   0x08
> #define IICEXTSTS  0x09
> #define IICLSADR  0x0A
> #define IICHSADR  0x0B
> #define IICCLKDIV  0x0C
> #define IICINTRMSK  0x0D
> #define IICXFRCNT  0x0E
> #define IICXTCNTLSS  0x0F
> #define IICDIRECTCNTL  0x10
> 
> these register to that it will be easy for me to match with the register
>  that i am using. 

These defines above are not available in U-Boot any more. I switched to using 
a struct s while ago:

struct ppc4xx_i2c {
        u8 mdbuf;
        u8 res1;
        u8 sdbuf;
	...

You are using PPC4xx, right?

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de


More information about the U-Boot mailing list