Re: [U-Boot] [PATCH V6 - Part 1 - 1/1] mx6q: define GPIO macros for translating between ordinals and port:index

2012-02-08 Thread Stefano Babic
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 n

[U-Boot] [PATCH V6 - Part 1 - 1/1] mx6q: define GPIO macros for translating between ordinals and port:index

2012-01-31 Thread Eric Nelson
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