diff options
Diffstat (limited to 'arch/arm/include/asm/arch-mx6/gpio.h')
-rw-r--r-- | arch/arm/include/asm/arch-mx6/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx6/gpio.h b/arch/arm/include/asm/arch-mx6/gpio.h index 20c4e5748..8cfad28fd 100644 --- a/arch/arm/include/asm/arch-mx6/gpio.h +++ b/arch/arm/include/asm/arch-mx6/gpio.h @@ -25,6 +25,8 @@ #ifndef __ASM_ARCH_MX6_GPIO_H #define __ASM_ARCH_MX6_GPIO_H +#define IMX_GPIO_NR(port, offset) (((port - 1) << 5) | offset) + /* GPIO registers */ struct gpio_regs { u32 gpio_dr; |