> Because there isn't an actual IRQ for each pin,
> they need to be virtual.

Actually, some of them could be "real" IRQs
instead of being dispatched through the GPIO
bank IRQ (which is a "real" IRQ, of course).

But that gets messy.  At one point it didn't
work at all in Linux.  It should work now, but as
a rule you should expect IRQs associated with
DaVinci GPIOs to be dispatched through some
top-level bank IRQ ... most Linux platforms do
the same thing (so doing anything else is what
should be a surprise).

> t things are as intended, with confusing side
> effects.
> > 
> > Namely, gpio_to_irq(1) returns 65, which eth0 reports on boot:


Why would that be confusing?  Most embedded Linux
platforms don't map GPIO IRQs to numbers recognized
by the top level IRQ controller ... GPIO IRQs get
fed to some bank IRQ, and the handler for that IRQ
dispatches to the right handler.


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to