]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
imx: Remove unneeded/repititive definitions from imx headers
authorVikram Narayanan <vikram186@gmail.com>
Tue, 10 Apr 2012 04:25:57 +0000 (04:25 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Apr 2012 12:53:59 +0000 (14:53 +0200)
Remove gpio related unused/repititive definitions from imx headers.

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
arch/arm/include/asm/arch-mx35/mx35_pins.h
arch/arm/include/asm/arch-mx5/mx5x_pins.h
arch/arm/include/asm/arch-mx6/imx-regs.h

index 3676e330bdfa4ca4c5eefe1a715353646f8dca54..8c38139118c853f0c2db50c3c9f8244abf20b11c 100644 (file)
@@ -84,8 +84,6 @@
                                        GPIO_NUM_PIN) + ((pin >> MUX_IO_I) &\
                                        ((1 << (MUX_IO_P - MUX_IO_I)) - 1)))
 #define IOMUX_TO_IRQ(pin)       (MXC_GPIO_INT_BASE + IOMUX_TO_GPIO(pin))
-#define GPIO_TO_PORT(n)         (n / GPIO_NUM_PIN)
-#define GPIO_TO_INDEX(n)        (n % GPIO_NUM_PIN)
 
 #define NON_GPIO_I     0x7
 #define PIN_TO_MUX_MASK        ((1<<(PAD_I - MUX_I)) - 1)
index 4e3a31b2629c4efd523c15430edda1c3bc9255e4..122fbeef6ad884e7660bb4c8cad7c8eb6958c8fc 100644 (file)
@@ -78,8 +78,6 @@
                                        GPIO_NUM_PIN) + ((pin >> MUX_IO_I) &\
                                        ((1 << (MUX_IO_P - MUX_IO_I)) - 1)))
 #define IOMUX_TO_IRQ(pin)       (MXC_GPIO_INT_BASE + IOMUX_TO_GPIO(pin))
-#define GPIO_TO_PORT(n)         (n / GPIO_NUM_PIN)
-#define GPIO_TO_INDEX(n)        (n % GPIO_NUM_PIN)
 
 #define NON_GPIO_PORT          0x7
 #define PIN_TO_MUX_MASK                ((1 << (PAD_I - MUX_I)) - 1)
index 1033d056fc44617a999f38a0a45fd3c4cd656bc5..6d25c8d983fa146f5c56ffa0cb0d92fc4bbb4448 100644 (file)
 #define FEC_QUIRK_ENET_MAC
 
 #define GPIO_NUMBER(port, index)               ((((port)-1)*32)+((index)&31))
-#define GPIO_TO_PORT(number)           (((number)/32)+1)
-#define GPIO_TO_INDEX(number)          ((number)&31)
 
 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
 #include <asm/types.h>