BeagleBone kernel module for fast GPIO access

I can ensure you that by using module, at least 10MHz were achieved by me.
The MANNUAL says Bank0 can works under 100MHz with proper configuration of clk, but only bank0.
if you set the registers and get this real, inform me please.
Looking forward your seccess.

2012-08-04

Awesome, that’s just what I wanted to hear. I won’t be trying to reach 100 MHz, but if I have time to play with clk config I’ll let you know.

Cheers,
Hans

There would be *nothing* beagle specific about it, it's just plain old linux.

Jerrill et al,

Here is a GPIO module and accompanying userspace test program I wrote for Linux running on a Nios2 core (soft core for Altera).

The Makefile will build both. (test = builds userspace program, module builds module, all builds both)

fwti_gpio_test.c is the userspace program source.
fwti_gpio.c is the module source.

There isn’t much platform-specific in there. Where you see NIOS2 for the architecture and calls to the nios2 gcc tools, you will need to switch it to use the ARM stuff.

I am in the process of converting this to Beagle. If you beat me to it, please send me your results!

Thanks,
Dave …

gpio.tgz (2.16 KB)

I don’t know if you finished but here are my results? I got up to 25MHz and I posted a discussion on it here:

https://groups.google.com/forum/#!topic/beagleboard/dyuax5415dc

~Wesley