On Fri, Apr 25, 2008 at 01:28:20PM -0500, Jeff Cooper wrote:
> Charlie,
> 
> You can't access the GIO from user space.  You're going to have to write 
> a kernel driver to access those pins. 

Not necessarily...you can access the GIO, or any physical memory or mem-
ory-mapped registers by using mmap() in a user space program.

> Another method would be to use the /proc/gio and /proc/pinmux entries.  
> The GIO driver in the kernel will create /proc/gio.  The entries in that 
> directory will let you read/write a GIO from user space.   You'll want 
> to check and make sure that your the pinmux setting is correct for the 
> GIO that you want to use.

I just became aware of /proc/pinmux last week...nice feature.

Tom
-- 
  /"\  ASCII Ribbon Campaign   |
  \ /                          |   Email to user 'CTZ001'
   X        Against HTML       |             at 'email.mot.com'
  / \     in e-mail & news     |
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to