AnsweredAssumed Answered

How could I configure a GPIO as an input?

Question asked by Jan R. on May 16, 2014
Latest reply on May 23, 2014 by Jan R.

Hello,

i have to figure out how to configure an gpio register as an input.

We use Linux verrsion 3.0.35_4.1.0_130816.

I think board_mx6q_sabresd.c and board_mx6q_sabresd.h are the most important files for the configuration.

I just want to understand where all these gpios are configuraed as inputs or outputs.

In the headerfile there is a MX6Q_PAD_GPIO_1_2. But I can't find these definition in the .c-file.

The names of the gpios seems to change from file to file and I don't know how to go on...

 

Then there is a gpio.txt, which says to use the gpio_input() and gpio_output() functions. However MX6Q_PAD_GPIO_1_2 is never used as a

parameter in one of these two funtions.

 

 

Looking forward to any help!

 

Jan

Outcomes