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, 19 Apr 2013 08:31:00 +0100, David Laight wrote:
> On Thu, Apr 18, 2013 at 08:45:27AM +0200, Marc Balmer wrote:
>> The main problem, however, is of course that gpio(4) has no interrupt
>> capabilities, yet.  Being the maintainer of gpio(4) I feel a bit guilty
>> of this, so I will start to change it ;)
> You do need to allow for all the interrupt modes: Level high, level low,
> rising edge, falling edge and both edges (and maybe some others).

After this minor change, the omapgpio driver supports all five:

It uses "struct pic_softc" as abstraction layer, and "struct pic_ops" in 
particular to handle interruptions. It might be interesting to extend it 
as well.


Home | Main Index | Thread Index | Old Index