[U-Boot] [PATCH V6 - Part 1 - 1/1] mx6q: define GPIO macros for translating between ordinals and port:index
Stefano Babic
sbabic at denx.de
Wed Feb 8 12:23:13 CET 2012
On 31/01/2012 18:52, Eric Nelson wrote:
> The interface to the mxc_gpio driver uses integer (ordinal) values to
> refer to all GPIOs on the i.MX processors. The registers themselves
> and much of the i.MX documentation are banked in groups of 32, and these
> macros allow the use of the port:index numbering for clarity.
>
> GPIO_NUMBER() converts to ordinal value from port:index
> GPIO_PORT() returns the port of an ordinal value
> GPIO_INDEX() returns the index or offset of the ordinal.
>
> Discussion on the mailing list at
> http://lists.denx.de/pipermail/u-boot/2012-January/116927.html
>
> Signed-off-by: Eric Nelson <eric.nelson at boundarydevices.com>
> ---
Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
More information about the U-Boot
mailing list