public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Kim Phillips <kim.phillips@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] i2c_set_bus_num
Date: Tue, 27 Mar 2007 20:00:27 -0500	[thread overview]
Message-ID: <20070327200027.50195924.kim.phillips@freescale.com> (raw)
In-Reply-To: <OF0ECF0E4E.3A2F6265-ON882572AB.0081F162-882572AB.008306C9@us.alphanetworks.com>

On Tue, 27 Mar 2007 16:48:29 -0700
Dongying_Xu at us.alphanetworks.com wrote:

> Hi, 
> 
> Does anyone experienced following problem? In u-boot/drivers/fsl_i2c.c, 
> there are functions to set and get i2c bus number,
> When I set the default i2c_bus_num to 0, I can not use i2c_set_bus_num() 
> set bus 1 properly.  For example, I called
> 
> >>i2c_set_bus_num(1);
> >>printf(The bus number is %d\n", i2c_get_bus_num());
> 
> >>>>The bus number is 0.
> 
> I am using MPC8343.  Thanks. Any suggestion is appreciated.
> 
See "Initial Stack, Global Data" in the u-boot README.

If your memory controller, or whatever you want to access while unable to write global vars, is hanging off of the 2nd bus, do something equivalent to what the 8349ITX does (look for CFG_SPD_BUS_NUM).

Kim

  reply	other threads:[~2007-03-28  1:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-27 23:48 [U-Boot-Users] i2c_set_bus_num Dongying_Xu at us.alphanetworks.com
2007-03-28  1:00 ` Kim Phillips [this message]
2007-03-28  1:07   ` Timur Tabi
2007-03-29 18:07   ` Dongying_Xu at us.alphanetworks.com
2007-03-29 18:11     ` Timur Tabi
2007-03-29 18:51       ` Dongying_Xu at us.alphanetworks.com

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=20070327200027.50195924.kim.phillips@freescale.com \
    --to=kim.phillips@freescale.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