u-boot-brain/arch
Eric Nelson 4b3a30e9ae 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>
2012-02-27 21:19:23 +01:00
..
arm mx6q: define GPIO macros for translating between ordinals and port:index 2012-02-27 21:19:23 +01:00
avr32 Merge branch 'next' of ../next 2011-12-23 20:53:58 +01:00
blackfin linkage.h: move from blackfin to common includes 2012-02-12 15:03:26 -05:00
m68k m68k: fix ambiguous bit testing 2011-12-05 21:55:25 +01:00
microblaze microblaze: avoid interrupt race conditions 2012-02-23 12:16:04 +01:00
mips arch/mips/lib/board.c: Fix GCC 4.6 build warning 2011-12-08 21:01:15 +01:00
nds32 nds32/ag101: clean up for SoC related code 2011-11-23 14:05:51 +08:00
nios2 nios2: Offer ft_board_setup() capability and call fdt_fixup_ethernet(). 2011-10-30 21:02:43 +08:00
openrisc openrisc: Add library functions 2012-01-13 21:16:48 +01:00
powerpc powerpc/8xxx:Add MPH controller support in USB device-tree fixup 2012-02-15 16:50:14 -06:00
sandbox sandbox: fix compiling of cpu/os.c 2011-12-10 17:56:37 -05:00
sh Coding Style cleanup 2011-12-19 12:03:40 +01:00
sparc sparc: fix unused variable warnings 2011-12-05 21:55:24 +01:00
x86 x86: Convert board_init_f_r to a processing loop 2012-01-04 22:53:14 +11:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00