From: Ingo Molnar <mingo@elte.hu>
To: Michael Buesch <mb@bu3sch.de>
Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
linux-kernel <linux-kernel@vger.kernel.org>,
florian.fainelli@telecomint.eu,
the arch/x86 maintainers <x86@kernel.org>
Subject: Re: [PATCH RFC] x86: Add user configurable GPIO-lib support
Date: Tue, 1 Jul 2008 13:04:37 +0200 [thread overview]
Message-ID: <20080701110436.GA32365@elte.hu> (raw)
In-Reply-To: <200807011249.40551.mb@bu3sch.de>
* Michael Buesch <mb@bu3sch.de> wrote:
> So this adds user-configurable GPIO support through gpiolib on
> subarchitectures that do not implement a GPIO implementation, yet.
> Currently that's everything except X86_RDC321X.
>
> The advantage of this is to make it possible to use generic PCI (or
> other bus) GPIO extention cards in standard PCs through the standard
> GPIO API.
>
> If another subarch implements its own GPIO, it needs to add itself as
> an inverted dependency to GPIO_USERSELECTION to make sure the user
> does not enable two GPIO API implementations.
>
> About the asm-x86/gpio.h:
> I'm not sure what this <gpio.h> include currently is.
> Can somebody explain that to me? Where is this supposed
> to include a gpio.h file from?
>
> What's your opinion on this?
( i've Cc:-ed Florian on this who's maintaining the RDC R-321X bits. )
The longer-term goal is that we'd like to remove the explicit RDC
sub-arch and just support such systems out of box on x86.
We are almost there - Florian already moved a few special drivers out of
arch/x86, the only missing piece is this complication in
include/asm-x86/timex.h:
#ifdef CONFIG_X86_ELAN
# define PIT_TICK_RATE 1189200 /* AMD Elan has different frequency! */
#elif defined(CONFIG_X86_RDC321X)
# define PIT_TICK_RATE 1041667 /* Underlying HZ for R8610 */
#else
# define PIT_TICK_RATE 1193182 /* Underlying HZ */
#endif
... once that is made dynamic/quirkable we are there.
And we could even remove the AMD Elan subarch that way: AFAICS it's a
486 compatible with an A20 quirk and this PIT_TICK quirk.
... and if we do that we'll also remove these:
select GENERIC_GPIO
select LEDS_CLASS
select LEDS_GPIO
select NEW_LEDS
... and thus perhaps your GPIO_USERSELECTION patch should move into
drivers/ and be generally accessible, not special to x86?
Ingo
next prev parent reply other threads:[~2008-07-01 11:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 10:49 [PATCH RFC] x86: Add user configurable GPIO-lib support Michael Buesch
2008-07-01 11:04 ` Ingo Molnar [this message]
2008-07-01 11:13 ` Michael Buesch
2008-07-01 11:19 ` Ingo Molnar
2008-07-01 11:27 ` Michael Buesch
2008-07-01 23:05 ` Michael Buesch
2008-07-01 12:55 ` Florian Fainelli
2008-07-01 14:26 ` Ingo Molnar
-- strict thread matches above, loose matches on Subject: below --
2008-07-02 2:57 David Brownell
2008-07-02 9:40 ` Michael Buesch
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=20080701110436.GA32365@elte.hu \
--to=mingo@elte.hu \
--cc=florian.fainelli@telecomint.eu \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mb@bu3sch.de \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@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