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 23:38, Manuel Bouyer wrote:
> On Fri, Apr 19, 2013 at 09:45:35PM +0200, Pierre Pronchery wrote:
>>> 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/*
> 
> I don't think this is what David had in mind. In this case,
> a driver which interrupts through a GPIO pin has to call
> omap_gpio_intr_establish(), not intr_establish().
> This is what's done int evbarm/osk5912/if_sm_emifs.c for example.

That's if you use OMAP1, but the OMAP2/3 GPIO bus driver is different
and supports intr_establish(). I am using it. It works.

It confused the hell out of me for a good while as well.

-- 
khorben



Home | Main Index | Thread Index | Old Index