Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 07-24-2014, 05:46 PM   #1
LQ Newbie
Registered: Jul 2014
Location: San Diego
Posts: 1

Rep: Reputation: Disabled
Read/Write Gpio using direct access registers

I am writing a device driver for Wireless LAN access point, and have following Gpio mapping in the datasheet:-

Address Name Description
0x18040000 GPIO_OE General Purpose I/O Output Enable
0x18040004 GPIO_IN General Purpose I/O Input Value
0x18040008 GPIO_OUT General Purpose I/O Output Value

I am trying read and write Gpio using this mapping, but I am not able to find how to communicate with Gpio's using registers' addresses.
Help Appreciated.
Old 07-24-2014, 06:40 PM   #2
Registered: Feb 2006
Distribution: distrohopper
Posts: 58

Rep: Reputation: 16
You might try [URL=""] There is a good chance your ap or router is already supported and you can see how it was done.

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
write & read data serially to one GPIO pin answerme Programming 2 10-01-2013 04:51 PM
Dump SDIO commands (Buffers/blocks and registers Read/Write) lightydo Linux - Hardware 0 11-06-2012 07:42 AM
Problem using SA-1100 GPIO registers Milosman Linux - Embedded & Single-board computer 3 12-14-2010 01:41 AM
Read Write access to a iso9660 filesystem..mount a .iso image as read write ceazar123 Linux - General 2 08-26-2010 03:32 PM
Academy project: Direct Access for Serial ports and UART registers uprooter Programming 0 11-13-2008 08:55 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration