BSC9131 RDB: Accessing GPIO via Linux

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

BSC9131 RDB: Accessing GPIO via Linux

Jump to solution
1,248 Views
rcreddy
Contributor III

Hi All,

        By means of this below post on forum

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

I am able to understand how to enable GPIO pin to be accessed at Linux. But, i am not sure of which file to modify. If you look at the above link, there is specific file which needs tobe modified.

Can somebody please let me know which file to modify [I am working on BSC9131 RDB].

Also, wanted to know what other options do i have to access GPIO apart from the method stated above [in the weblink].

Thanks

RC Reddy

0 Kudos
Reply
1 Solution
1,055 Views
Pavel
NXP Employee
NXP Employee

Freescale SDK supports sysfs possibility for GPIO using from user space.

Usually sysfs is used for GPIO. See the following pages (http://elinux.org/GPIO) and (https://www.kernel.org/doc/Documentation/gpio/sysfs.txt).

Usually mmap possibility of the Linux is used for accessing to GPIO.

See the following pages:

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F4482872.html

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F4482887.html

View solution in original post

0 Kudos
Reply
3 Replies
1,055 Views
rcreddy
Contributor III

Hi Freescale team,

                          I am awaiting your response/reply. Kindly answer.

Thanks

RC Reddy

0 Kudos
Reply
1,056 Views
Pavel
NXP Employee
NXP Employee

Freescale SDK supports sysfs possibility for GPIO using from user space.

Usually sysfs is used for GPIO. See the following pages (http://elinux.org/GPIO) and (https://www.kernel.org/doc/Documentation/gpio/sysfs.txt).

Usually mmap possibility of the Linux is used for accessing to GPIO.

See the following pages:

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F4482872.html

http://www.freescale.com/infocenter/index.jsp?topic=%2FQORIQSDK%2F4482887.html

0 Kudos
Reply
1,055 Views
rcreddy
Contributor III

Hi,

    Thanks for your reply.

Thanks

RC Reddy

0 Kudos
Reply