[RFC] GPIO interrupt support

Luiz Otavio O Souza loos.br at gmail.com
Thu May 15 12:59:41 UTC 2014


And looks like i forgot to attach the gpio-intr-kqueue.c...

On Wed, May 14, 2014 at 4:30 PM, Luiz Otavio O Souza wrote:
> Hi,
>
> I've been working on the attached patches which adds the GPIO interrupt support.
>
> gpio-intr.diff has the bus changes for FDT and non-FDT systems.
>
> ar71xx_gpio-intr.diff has the changes to AR71xx GPIO driver.
>
> bcm2835_gpio-intr.diff has the changes to BCM2835 (RPi) GPIO driver.
>
> ti_gpio-intr.diff has the changes for AM335x (Beaglebone), OMAP3 and
> OMAP4 (panda board).
>
> The other attached file (gpio-intr-kqueue.c) is an example program
> i've been using to check for interrupts from userland.
>
> Userland is notified about GPIO interrupts by a kqueue event.
>
> The changes have been tested on BBB, RPi and RSPRO.
>
> The manual page changes are still to be done (but it will surely be done).
>
> Comments ?
>
> Regards,
> Luiz


More information about the freebsd-embedded mailing list