From: Jonathan Corbet <corbet@lwn.net>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 2/2] viafb: Add OLPC XO-1.5 port configs
Date: Sun, 26 Sep 2010 21:52:07 +0000 [thread overview]
Message-ID: <20100926155207.0e37d955@tpl.lwn.net> (raw)
In-Reply-To: <20100921153726.21D609D401B@zog.reactivated.net>
Sorry if I'm slow...*you* try giving talks in Germany and Japan in the
same week and we'll see how responsive you are...:)
On Sun, 26 Sep 2010 17:50:41 +0200
Florian Tobias Schandinat <FlorianSchandinat@gmx.de> wrote:
> You're right, we may not only change the entry. The device code also needs to be
> changed. The situation is like this:
> 0x2c are essentially two GPIO ports but those can be used to emulate one I2C
> port. At the moment it is only used as I2C port with a little hack in the I2C
> code. I believe it would be good to change it to always be a GPIO port (as that
> is what it really is, at least for all documented IGPs) and emulate I2C on top
> of that if needed. Sadly VIAs emulation (using 2 pins) differs from the generic
> one in i2c-gpio.c (using 1 pin), so we can't reuse that but the emulation code
> shouldn't be much code anyway.
When I first set up the GPIO/I2C code, I tried to configure it "the way
it's always been," in the hope of not breaking anything. I'd always
figured that people would want to change things, which is why the code
is done the way it is. Of course, I never got around to implementing
the configuration-time (or even runtime) selection mechanism. But I
did always figure that OLPC would need a non-standard configuration.
Florian, I'm not sure what you're saying about changing how the ports
are used. All of the ports are essentially the same, regardless of
what they are called; you either have two GPIOs, or you have one for
i2c data, the other for the clock. There are some minor differences in
how the ports are programmed, but it's pretty much insignificant.
Daniel, 0x2C *has* to be GPIO on the XO - that's the power/reset pair
for the camera sensor. That's a little non-standard; I think normal
configurations use it for (i2c) communications to the monitor. So I
think I understand what you're seeing: if the port is i2c, the driver
tries (unsuccessfully) to talk over it, confusing the camera in the
process. If it's GPIO, those attempts fail immediately and it moves on.
Make sense?
jon
next prev parent reply other threads:[~2010-09-26 21:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 15:37 [PATCH 2/2] viafb: Add OLPC XO-1.5 port configs Daniel Drake
2010-09-21 17:15 ` Florian Tobias Schandinat
2010-09-21 17:15 ` Daniel Drake
2010-09-21 17:54 ` Florian Tobias Schandinat
2010-09-26 14:57 ` Daniel Drake
2010-09-26 15:50 ` Florian Tobias Schandinat
2010-09-26 15:57 ` Daniel Drake
2010-09-26 21:52 ` Jonathan Corbet [this message]
2010-09-27 4:55 ` Florian Tobias Schandinat
2010-10-06 21:15 ` Jonathan Corbet
2010-10-27 15:08 ` Daniel Drake
2010-10-28 18:51 ` Jonathan Corbet
2010-10-28 21:54 ` Daniel Drake
2010-10-28 22:04 ` Jonathan Corbet
2010-10-29 14:03 ` Daniel Drake
2010-11-11 14:59 ` Daniel Drake
2010-11-11 16:01 ` Florian Tobias Schandinat
2010-11-11 17:07 ` Daniel Drake
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=20100926155207.0e37d955@tpl.lwn.net \
--to=corbet@lwn.net \
--cc=linux-fbdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).