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 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.

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index