U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Seb James <seb@peak.uklinux.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] soft_i2c and ds1307 with tqm823l
Date: Mon, 30 Jun 2003 13:36:37 +0100	[thread overview]
Message-ID: <3F002ED5.4050803@peak.uklinux.net> (raw)
In-Reply-To: <3F002BCA.9070609@peak.uklinux.net>

Just a couple of edits to my posting.

Seb James wrote:

> Hi,
>
> I'm working on getting a ds1307 realtime clock working with a tqm823l as
> a new user to u-boot (I've never compiled u-boot or ppcboot before).
>
> I'd like to make some improvements to the README which is already
> excellent but seems to have a couple of omissions, particularly
> regarding the configuration of u-boot to work with i2c.
>
>
> Firstly, the ds1307 code compiles fine, but of course it needs the i2c
> code to be compiled alongside it... 

...in order to be able to link it into the u-boot image.

> Although this is obvious, the newcomer
> to u-boot doesn't (i.e. I didn't) know that calling for ds1307.c to be
> compiled doesn't in itself cause the i2c code to be compiled, so a note
> to this effect in the realtime clock section of the README would be a
> helpful addition.
>
>
>
> Now, in trying to get I2C properly compiled, I find quite a lot of
> information about I2C setup in the README.
>
>
> Here's a line from the README (starting at line 907):
>
> "If this is selected, either CONFIG_HARD_I2C or CONFIG_SOFT_I2C must
> be defined    to include the appropriate I2C driver."
>
>
> No mention is made of what values the 'appropriate driver' might have or
> where to look for them. I assume you might define something like this:
>
> #define CONFIG_HARD_I2C mpc8xx
>
> But I can't see what you'd write for CONFIG_SOFT_I2C. A bit more
> clarification here would be useful.
>
> There are a number of extra defines related to CONFIG_SOFT_I2C, such as
> I2C_INIT, I2C_PORT, etc. It's not too clear what these should be set to.


Regarding this line:

> The diff between my TQM823L.h and the original TQM823L.h is (also
> attached as changes.diff): 

sorry - the diff wasn't attached, this line shouldn't have been in the 
posting. I was going to do this and then decided it wasn't necessary.

>
>
> Some investigation has shown that I need to set I2C_SDA and I2C_SCL to
> the name of the correct functions.  What are the possibilities for
> these? The same seems to be true of I2C_READ.
>
> What are the units for I2C_DELAY? I'm assuming seconds. Why is there
> both I2C_DELAY and CFG_I2C_SPEED to configure? These seem to configure
> the same thing  - the speed of the I2C clock line.
>
> Ok, I think that should be enough for now,
>
> best regards,
>
> Seb James.
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
>

  reply	other threads:[~2003-06-30 12:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-30 12:23 [U-Boot-Users] soft_i2c and ds1307 with tqm823l Seb James
2003-06-30 12:36 ` Seb James [this message]
2003-06-30 12:50   ` Wolfgang Denk
2003-06-30 12:39 ` Wolfgang Denk
2003-06-30 13:14   ` Seb James
2003-06-30 13:35     ` Wolfgang Denk
2003-06-30 14:08       ` Seb James
2003-06-30 14:18         ` Wolfgang Denk
2003-06-30 14:58           ` Seb James
2003-06-30 16:26             ` 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=3F002ED5.4050803@peak.uklinux.net \
    --to=seb@peak.uklinux.net \
    --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