[U-Boot] [PATCH 1/2] efikamx: Configure the pins as GPIOs prior to using gpio_get_value.

Mike Frysinger vapier at gentoo.org
Wed Nov 23 20:44:31 CET 2011


On Wednesday 23 November 2011 03:19:48 Stefano Babic wrote:
> On 22/11/2011 22:07, Mike Frysinger wrote:
> > if it's different physical pins, then perhaps it should be
> > different GPIO numbers ?
> 
> No, they are not. Depending on the "daisy chain" functionality and
> based on different alternate function, a single GPIO can be routed to
> different physical pins.

the GPIO # can represent the AF as well as the GPIO itself.  this is what bit 
shifts and masks are good at.

there's no requirement that the GPIO #'s be contiguous, or have a specific 
range.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111123/1dbc8083/attachment.pgp>


More information about the U-Boot mailing list