]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
imx: mx27 move GPIO_PORTx to gpio.h
authorPeng Fan <Peng.Fan@freescale.com>
Thu, 14 May 2015 23:29:13 +0000 (07:29 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:39:40 +0000 (22:39 +0200)
commit9d82eb12183f00309b68f8962a4d7f10de47abeb
tree4c682925555111c689bac054dcbe1fa7dd759031
parentfb2da0b503a8830d622f3f6ee68a00f1c252c1fd
imx: mx27 move GPIO_PORTx to gpio.h

These GPIO_PORTx macros should be in gpio.h, but not in imx-regs.h.

Also, imx-regs.h and iomux-v3.h has same macro defintion for
GPIO_PORTx, and both of them are included in mxc_i2c.c(include
mxc_i2c.h). This will incur build warnings with macro redefinition.

Since iomux-v3.h is not compatible with mx27, we can not simply
include iomux-v3.h for mx27, so move the GPIO_PORTx to gpio.h to
fix the build warning.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
arch/arm/include/asm/arch-mx27/gpio.h
arch/arm/include/asm/arch-mx27/imx-regs.h