[U-Boot] I2C Register

Ronny D
2010-02-05T05:43:20Z

Hi Stefan,

I am using ppc440 for customized board.

U-boot version that i am using is u-boot-2009.11.
Here i am searching for the ppc4xx_i2c structure but not able to get it. on the other hand i have seen the i2c register macros used in i2c_transfer call.

~Ronny

--- On Thu, 4/2/10, Stefan Roese <sr@denx.de> wrote:

From: Stefan Roese <sr@denx.de>
Subject: Re: I2C Register
To: "Ronny D" <ronny_d37@yahoo.com>
Cc: u-boot at lists.denx.de
Date: Thursday, 4 February, 2010, 2:53 PM

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

Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/