Issues about GPIO Status

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

Issues about GPIO Status

1,287 次查看
tony_l_cai
Contributor III

Hi,all

     When GPIO is input, the value we cat via userspace is correct.But when GPIO is output, the value we cat is wrong. I want to know how to rectify it in the code. Please help me . 3Q~

标签 (3)
0 项奖励
回复
3 回复数

1,109 次查看
igorpadykov
NXP Employee
NXP Employee

Hi tony

for output GPIO please try to set the SION bit 

i.MX6 output gpio value behaviour

Best regards

igor

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

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

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

0 项奖励
回复

1,109 次查看
tony_l_cai
Contributor III

Hi,igor

     Our codebase is base on Linux-3.0.35-2473-gb720655,but ,I cant find the file gpio-mxc.c,and on the other hand,out project didnt use the Device tree.Maybe I also need the method how to set the SION bit in detail. Thanks!

0 项奖励
回复

1,109 次查看
igorpadykov
NXP Employee
NXP Employee

one can try memtool in unit tests

https://community.freescale.com/message/374610#374610

Best regards

igor

0 项奖励
回复