Message-
> From: [EMAIL PROTECTED]
[mailto:linuxppc-dev-
> [EMAIL PROTECTED] On Behalf Of Jon
Smirl
> Sent: Wednesday, September 17, 2008 7:09 AM
> To: [EMAIL PROTECTED]
> Cc: Scott Wood; linuxppc-dev; Roland Dreier
> Subject: Re: demuxing irqs
>
> Both solutions can be implem
Both solutions can be implemented. This is really a question of style.
Since this impacts all of the PowerPC implementations we should get
feedback from more people I'll go along with whatever the group
wants.
The basic question is: Should GPIOs and VIRQs each have their own
namespace, or should
On Tue, Sep 16, 2008 at 06:08:34PM -0400, Jon Smirl wrote:
[...]
> >> >> > Assume that GPIO 8 does not translate to any IRQ, but IRQ 8 is still
> >> >> > valid virq b/c it is mapped for another IRQ controller (particularly
> >> >> > lots of kernel code assumes that IRQ 8 is 8259 PIC's CMOS interrup
On Tue, Sep 16, 2008 at 7:24 PM, Scott Wood <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 16, 2008 at 06:08:34PM -0400, Jon Smirl wrote:
>> You have to map between GPIO and IRQ inside the interrupt handlers so
>> it has to be reasonably fast. This gets done on every shared interrupt
>> so you will end u
On Tue, Sep 16, 2008 at 06:08:34PM -0400, Jon Smirl wrote:
> You have to map between GPIO and IRQ inside the interrupt handlers so
> it has to be reasonably fast. This gets done on every shared interrupt
> so you will end up building mapping tables. Also, gpio_to_irq()
> doesn't take the gpio chip
On Tue, Sep 16, 2008 at 5:42 PM, Anton Vorontsov
<[EMAIL PROTECTED]> wrote:
> On Tue, Sep 16, 2008 at 02:32:45PM -0400, Jon Smirl wrote:
>> On Tue, Sep 16, 2008 at 1:49 PM, Scott Wood <[EMAIL PROTECTED]> wrote:
>> > On Tue, Sep 16, 2008 at 10:24:35AM -0400, Jon Smirl wrote:
>> >> On Tue, Sep 16, 20
On Tue, Sep 16, 2008 at 02:32:45PM -0400, Jon Smirl wrote:
> On Tue, Sep 16, 2008 at 1:49 PM, Scott Wood <[EMAIL PROTECTED]> wrote:
> > On Tue, Sep 16, 2008 at 10:24:35AM -0400, Jon Smirl wrote:
> >> On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov
> >> <[EMAIL PROTECTED]> wrote:
> >> > Assume tha
On Tue, Sep 16, 2008 at 1:49 PM, Scott Wood <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 16, 2008 at 10:24:35AM -0400, Jon Smirl wrote:
>> On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov
>> <[EMAIL PROTECTED]> wrote:
>> > Assume that GPIO 8 does not translate to any IRQ, but IRQ 8 is still
>> > valid
On Tue, Sep 16, 2008 at 10:24:35AM -0400, Jon Smirl wrote:
> On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov
> <[EMAIL PROTECTED]> wrote:
> > Assume that GPIO 8 does not translate to any IRQ, but IRQ 8 is still
> > valid virq b/c it is mapped for another IRQ controller (particularly
> > lots of k
On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov
<[EMAIL PROTECTED]> wrote:
> On Tue, Sep 16, 2008 at 09:36:22AM -0400, Jon Smirl wrote:
> [...]
>> >> >> -/*
>> >> >> - * Not implemented, yet.
>> >> >> - */
>> >> >> -static inline int gpio_to_irq(unsigned int gpio)
>> >> >> +static inline unsigned
On Tue, Sep 16, 2008 at 10:14 AM, Anton Vorontsov
<[EMAIL PROTECTED]> wrote:
> On Tue, Sep 16, 2008 at 09:36:22AM -0400, Jon Smirl wrote:
> [...]
>> >> >> -/*
>> >> >> - * Not implemented, yet.
>> >> >> - */
>> >> >> -static inline int gpio_to_irq(unsigned int gpio)
>> >> >> +static inline unsigned
On Tue, Sep 16, 2008 at 09:36:22AM -0400, Jon Smirl wrote:
[...]
> >> >> -/*
> >> >> - * Not implemented, yet.
> >> >> - */
> >> >> -static inline int gpio_to_irq(unsigned int gpio)
> >> >> +static inline unsigned int gpio_to_irq(unsigned int gpio)
> >> >> {
> >> >> - return -ENOSYS;
> >> >>
On Tue, Sep 16, 2008 at 9:12 AM, Anton Vorontsov
<[EMAIL PROTECTED]> wrote:
> On Tue, Sep 16, 2008 at 08:37:55AM -0400, Jon Smirl wrote:
>> On Tue, Sep 16, 2008 at 8:17 AM, Anton Vorontsov
>> <[EMAIL PROTECTED]> wrote:
>> > Hi Jon,
>> >
>> > On Sun, Sep 14, 2008 at 11:06:23PM -0400, Jon Smirl wrote
On Tue, Sep 16, 2008 at 08:37:55AM -0400, Jon Smirl wrote:
> On Tue, Sep 16, 2008 at 8:17 AM, Anton Vorontsov
> <[EMAIL PROTECTED]> wrote:
> > Hi Jon,
> >
> > On Sun, Sep 14, 2008 at 11:06:23PM -0400, Jon Smirl wrote:
> >> I have demultiplexing the GPIO interrupts working well enough to make
> >> m
On Tue, Sep 16, 2008 at 8:17 AM, Anton Vorontsov
<[EMAIL PROTECTED]> wrote:
> Hi Jon,
>
> On Sun, Sep 14, 2008 at 11:06:23PM -0400, Jon Smirl wrote:
>> I have demultiplexing the GPIO interrupts working well enough to make
>> my hardware work. But now I've discovered that these interrupts can't
>> d
Hi Jon,
On Sun, Sep 14, 2008 at 11:06:23PM -0400, Jon Smirl wrote:
> I have demultiplexing the GPIO interrupts working well enough to make
> my hardware work. But now I've discovered that these interrupts can't
> do what I need.
>
> Anton, Grant - are either of you interested in this code? It's n
h = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "8427791634";
google_color_border = "FF";
google_color_bg = "FF";
google_color_link = "006792";
google_color_url = "006792";
google_color_text = &quo
>
>
> Thanks,
>
> Jake
>
>
>
>
>
> ___
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutilor_bg = "FF";
google_color_link = "006792";
googl
How do the virq numbers get assigned?
What do I pass into request_irq when I use one of these pins?
The gpio device...
gpio_wkup: [EMAIL PROTECTED] {
compatible =
"fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
reg = <0xc00 0x40>;
> The muxed interrupts are inside a SOC CPU. For example eight GPIOs
> can each individually be enabled to trigger hardware interrupt 7. When
> I get hw interrupt 7 i want to demux it into 8 virtual interrupts.
> There are eight bit registers for individually acking, enabling, etc
> each of t
On Sat, Sep 13, 2008 at 6:41 PM, Roland Dreier <[EMAIL PROTECTED]> wrote:
> > Can someone point me at a simple example of how to demux irqs using
> > the powerpc irq functions? I have eight devices on a single irq and I
> > want to turn them into virtual irqs.
>
> Sorry about the previous reply.
> Can someone point me at a simple example of how to demux irqs using
> the powerpc irq functions? I have eight devices on a single irq and I
> want to turn them into virtual irqs.
Sorry about the previous reply.
Anyway, what are you going to demux based on? Do you have some other
signal you
Can someone point me at a simple example of how to demux irqs using
the powerpc irq functions? I have eight devices on a single irq and I
want to turn them into virtual irqs.
--
Jon Smirl
[EMAIL PROTECTED]
___
Linuxppc-dev mailing list
Linuxppc-dev@ozla
23 matches
Mail list logo