[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 4 Apr 2012 10:53:15 +0200
From: Jean Pihet <jean.pihet@...oldbits.com>
To: Grant Likely <grant.likely@...retlab.ca>,
Linus Walleij <linus.walleij@...aro.org>,
linux-kernel@...r.kernel.org
Subject: gpiolib: per-gpio edges count
Hi Grant, Linus,
I would like to know if it is possible to get the edges count on a GPIO pin.
I was hoping to get it by configuring the pin as input with an edge
trigger but on OMAP there is only one irq line per controller (which
controls 32 pins).
Btw I am using a Beaglebone with OMAP AM3358.
The options I see now are:
- use select/poll on the value in sysfs and count the edges in user
space. This looks like overkill for the task though.
- hack the gpiolib code to export an irq count and timestamp to sysfs.
What do you think?
Regards,
Jean Pihet
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists