From: Mike Frysinger Date: Wed, 23 Nov 2011 14:44:31 -0500 Subject: [U-Boot] [PATCH 1/2] efikamx: Configure the pins as GPIOs prior to using gpio_get_value. In-Reply-To: <4ECCACA4.5040701@denx.de> References: <1321884585-12501-1-git-send-email-fabio.estevam@freescale.com> <201111221607.09360.vapier@gentoo.org> <4ECCACA4.5040701@denx.de> Message-ID: <201111231444.32309.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: