GPIO issue about IMX_GPIO_NR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO issue about IMX_GPIO_NR

3,440 Views
tony_l_cai
Contributor III

Hi,All

     I have known about the IMX_GPIO_NR is a function which can compute the GPIO addr. But how to make the result correspond to GPIO's addr? Just a number,I dont know how to map the GPIO register addr and which register addr? Help me ,3Q!

Labels (2)
Tags (2)
0 Kudos
1 Reply

1,221 Views
igorpadykov
NXP Employee
NXP Employee

Hi tony

you can look at attached file with IMX_GPIO_NR definition

arch/arm,/plat-mxc/include/mach/gpio.h

and try to calculate reverse function.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos