public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ronny D <ronny_d37@yahoo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] I2C Register
Date: Thu, 4 Feb 2010 21:43:20 -0800 (PST)	[thread overview]
Message-ID: <722028.1428.qm@web46101.mail.sp1.yahoo.com> (raw)
In-Reply-To: <201002041553.08036.sr@denx.de>

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/

  reply	other threads:[~2010-02-05  5:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04 14:30 [U-Boot] I2C Register Ronny D
2010-02-04 14:53 ` Stefan Roese
2010-02-05  5:43   ` Ronny D [this message]
2010-02-05  5:59     ` Stefan Roese
2010-02-05  6:41   ` Ronny D
2010-02-05  7:24     ` Stefan Roese
2010-02-05  8:22       ` Ronny D
2010-02-05  8:32         ` Stefan Roese
2010-03-02  5:50       ` [U-Boot] U-boot compilation for little endian Ronny D
2010-03-02  7:53         ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=722028.1428.qm@web46101.mail.sp1.yahoo.com \
    --to=ronny_d37@yahoo.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox