imx28: GPIO number

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx28: GPIO number

1,331 次查看
BrilliantovKiri
Senior Contributor I

Hello!

I work with custom board on iMX28.

Now I should export some GPIO, e.g. GPIO0_7 as input and GPIO0_16 as otput.

Where can I found GPIO numbers?

Thank you and excuse my bad english.

标签 (2)
标记 (2)
0 项奖励
回复
1 回复

1,153 次查看
csotoalonso
Contributor III

For GPIOx_y, where x is the GPIO bank and y is the GPIO bit inside this bank, use the following formula:

GPIO_number = 32*x + y

e.g. GPIO3_18 should be 32*3+18 = 114, or GPIO114