This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to access OMAP gpio registers from kernel space

Hi,

I am trying to write a driver that emulates parallel port using omap gpio pins. But I am not able to access GPIO registers from kernel space. Can somebody suggest me an efficient method for accessing Registers?

  • Although not the best solution, i think, you can use the omap_writel and omap_readl functions, found in /plat/io.h

    Don't forget to set up the mulitplex and input/output options.

    For everything else, you can use the linux/gpio.h interface