diff options
author | Eric Nelson <eric.nelson@boundarydevices.com> | 2012-01-31 07:52:01 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-02-27 21:19:23 +0100 |
commit | 4b3a30e9ae304f1350d7dc17b3e0d2ef90e2b668 (patch) | |
tree | d2d1dfa71b8c51956867079fd0cf8f59f1b29ce7 /doc/README.ag101 | |
parent | 63b1e004f50bfd80d2470b55978da2e946f71bf2 (diff) | |
download | u-boot-4b3a30e9ae304f1350d7dc17b3e0d2ef90e2b668.tar.gz u-boot-4b3a30e9ae304f1350d7dc17b3e0d2ef90e2b668.tar.xz u-boot-4b3a30e9ae304f1350d7dc17b3e0d2ef90e2b668.zip |
mx6q: define GPIO macros for translating between ordinals and port:index
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@boundarydevices.com>
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Diffstat (limited to 'doc/README.ag101')
0 files changed, 0 insertions, 0 deletions