Hi all , I was trying to write a GPIO driver module for Hawkboard , in order to toggle the LEDs connected to the GPIOs . I am using a OMAP L138 processor , and am trying to do a ioremap of the physical address space to the Kernel's virtual address space . But I guess I am not able to figure out the exact base address of the GPIO bank . I am basically trying to toggle the GPIO Bank 6 . I went through the OMAP L138 reference manual , but am unable to find the base address . Afterwards I plan to use the ioctl function to toggle the LEDs . Attaching herewith the link to the OMAP L138 reference manual . Reference manual : www.ti.com/lit/ug/spruh77a/spruh77a.pdf Could anyone kindly guide me , on the procedure to decipher the Baseaddress of the GPIO Bank 6 from the Reference manual ? Thanks in advance ! Cheers , ~RCB~
Hi, On Wed, Mar 6, 2013 at 12:23 PM, Rajesh Bhaskaran <cb.rajesh.in@gmail.com> wrote:
Hi all ,
I was trying to write a GPIO driver module for Hawkboard , in order to toggle the LEDs connected to the GPIOs .
I am using a OMAP L138 processor , and am trying to do a ioremap of the physical address space to the Kernel's virtual address space . But I guess I am not able to figure out the exact base address of the GPIO bank .
I am basically trying to toggle the GPIO Bank 6 . I went through the OMAP L138 reference manual , but am unable to find the base address . Afterwards I plan to use the ioctl function to toggle the LEDs .
Attaching herewith the link to the OMAP L138 reference manual . Reference manual : www.ti.com/lit/ug/spruh77a/spruh77a.pdf
Could anyone kindly guide me , on the procedure to decipher the Baseaddress of the GPIO Bank 6 from the Reference manual ?
You need to go through the memory map of the device refer[1] for this. In [1] refer table 2-4 you will find the entire memory map including GPIO. For GPIO refer this [2] too. Regards, --Prabhakar Lad http://in.linkedin.com/pub/prabhakar-lad/19/92b/955 [1] http://www.ti.com/lit/ds/sprs586d/sprs586d.pdf [2] http://www.ti.com/lit/ug/sprufl8b/sprufl8b.pdf
Thanks in advance !
Cheers , ~RCB~
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (2)
-
Prabhakar Lad -
Rajesh Bhaskaran