All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] I2C Register
Date: Thu, 4 Feb 2010 15:53:07 +0100	[thread overview]
Message-ID: <201002041553.08036.sr@denx.de> (raw)
In-Reply-To: <287256.89221.qm@web46112.mail.sp1.yahoo.com>

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

  reply	other threads:[~2010-02-04 14:53 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 [this message]
2010-02-05  5:43   ` Ronny D
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=201002041553.08036.sr@denx.de \
    --to=sr@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.