Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding an interrupt locator to the GPIO, I2C and SPI buses

On 19/04/2013 19:22, David Laight wrote:
> On Fri, Apr 19, 2013 at 10:01:46AM +0200, Manuel Bouyer wrote:
>> That would be a problem if the GPIO module has less interrupt lines than
>> interrupt sources (as in the AM335x: 32 GPIO per module but only
>> 2 interrupt lines to the PIC): 
>> the interrupt would then be shared and drivers would have to deal
>> with that, eventually with callback functions to the gpio driver
>> to know which pin really generated the interrupt.
> I'd have thought the generic code ought to allow for interrupt
> multiplexors - so the driver for a gpio block can attach its own
> interrupt hander to the cpu (or whatever its interrupt line is
> connected to) and then create a whole load of extra interrupt
> sources that other drivers can attach to.

That is the case already, for OMAP- and GEMINI-based boards:
$ grep -nr intrbase sys/arch/*/conf/*


Home | Main Index | Thread Index | Old Index