[PATCH 0/2] pulse counter implementation through GPIOlib
Federico Fuga
fuga at studiofuga.com
Tue May 27 11:47:27 PDT 2014
Hello,
This patchset implements a pulse counter using GPIOlib. It adds the "counter" sysfs node inside the gpioXXX directory, and allows counter reading and resetting.
It exports 3 functions, whose gpio_counter_inc(gpio) implements the atomic increment.
The first patch modifies GPIOlib, and is architecture-agnostic.
This feature can be enabled/disabled through Kconfig.
The second patch implements the counter support inside the bcm2708/RaspberryPI cpu.
Hope that helps, and looking forward for comments.
Best regards
Federico Fuga
Federico Fuga (2):
[GPIOLib] GPIO Interrupt counter support
[bcm2708] GpioLib Counter increment added to GPIO interrupt handler
arch/arm/mach-bcm2708/bcm2708_gpio.c | 3 ++
drivers/gpio/Kconfig | 3 ++
drivers/gpio/gpiolib.c | 90 ++++++++++++++++++++++++++++++++++++
include/asm-generic/gpio.h | 6 +++
4 files changed, 102 insertions(+)
--
1.9.1
More information about the linux-rpi-kernel
mailing list