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.nel...@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: off...@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot