From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Support for several I2C interfaces in the same board.
Date: Thu, 29 Oct 2009 09:53:21 +0100 [thread overview]
Message-ID: <4AE95801.3030804@denx.de> (raw)
In-Reply-To: <eedb5540910290145u6391deeak61b6b18d55e25193@mail.gmail.com>
Hello javier,
javier Martin wrote:
> I read a discussion about this subject in the past but it didn't
> arrive to a conclusion. What would be necessary for supporting two I2C
> interfaces? Maybe an i2c command that supports changing active
> interface or something similar?
What do you mean with two I2C interfaces? If you mean 2 with one
hardware interface (for example fsl_i2c.c) this is possible with
actual code. Search for i2c_set_bus_num(), i2c_get_bus_num() ...
If you need two different hardware interfaces, there
is an approach, see:
http://git.denx.de/?p=u-boot/u-boot-i2c.git;a=shortlog;h=refs/heads/multibus_v2
I ported (hopefully all) hardware i2c drivers to this new approach,
but didn;t find the time to test this again from scratch, I just
hold it in sync with mainline, and if I find time for testing it
again and it works, I vote for including it in mainline ...
But testers are welcome :-)
bye
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2009-10-29 8:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 8:45 [U-Boot] Support for several I2C interfaces in the same board javier Martin
2009-10-29 8:53 ` Heiko Schocher [this message]
2009-10-29 9:38 ` javier Martin
2009-10-29 9:45 ` Heiko Schocher
2009-10-29 9:48 ` javier Martin
2009-10-29 9:56 ` Heiko Schocher
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=4AE95801.3030804@denx.de \
--to=hs@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.