All of lore.kernel.org
 help / color / mirror / Atom feed
From: Troy Kisky <troy.kisky@boundarydevices.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] mxc_i2c driver
Date: Tue, 14 Jan 2014 16:25:51 -0700	[thread overview]
Message-ID: <52D5C77F.6000504@boundarydevices.com> (raw)
In-Reply-To: <52D5AB9B.5010007@freescale.com>

On 1/14/2014 2:26 PM, York Sun wrote:
> Troy,
>
> I am trying to use mxc_i2c driver with multiple buses. I didn't figure out how
> the bases are set. Can you shed some light on this?
>
> Thanks,
>
> York
>
see board/boundary/nitrogen6x/nitrogen6x.c

It calls
         setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info0);
         setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1);
         setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info2);
which is in
arch/arm/imx-common/i2c-mxv7.c

This file has an array of base addresses

static void * const i2c_bases[] = {
         (void *)I2C1_BASE_ADDR,
         (void *)I2C2_BASE_ADDR,
#ifdef I2C3_BASE_ADDR
         (void *)I2C3_BASE_ADDR,
#endif
};

  reply	other threads:[~2014-01-14 23:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14 21:26 [U-Boot] mxc_i2c driver York Sun
2014-01-14 23:25 ` Troy Kisky [this message]
2014-01-14 23:27   ` York Sun

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=52D5C77F.6000504@boundarydevices.com \
    --to=troy.kisky@boundarydevices.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 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.