tags:

views:

67

answers:

1

I have installed linux 2.6. I wanted to know if there are any drivers to access the GPR port pins.

+1  A: 

Look for a /dev/gpio file. This link shows some C code that accesses the GPIO pins. Please note that the exact way this works might differ with different ARM Linux distributions, and you don't give a lot of detail in your question.

unwind
Thanks for the linkI'm trying to access the GPIO pins using mmap. How does one get to know the physical address of the banking register controlling the pin?
tsudot
I'm working on a friendly arm mini2440 board with a sc32440 processor
tsudot
easy: download the datasheet or the technical reference manual and look for the register description of the gpio block.
Nils Pipenbrinck