1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Philippe Reynes <tremyfr@yahoo.fr>
8 #ifndef __ASM_ARCH_MX27_GPIO_H
9 #define __ASM_ARCH_MX27_GPIO_H
13 u32 gpio_dir; /* DDIR */
22 u32 gpio_psr; /* SSR */
33 /* This structure is used by the function imx_gpio_mode */
34 struct gpio_port_regs {
35 struct gpio_regs port[6];
39 * GPIO Module and I/O Multiplexer
48 #define GPIO_PIN_MASK 0x1f
49 #define GPIO_PORT_SHIFT 5
50 #define GPIO_PORT_MASK (0x7 << GPIO_PORT_SHIFT)
51 #define GPIO_PORTA (PORTA << GPIO_PORT_SHIFT)
52 #define GPIO_PORTB (PORTB << GPIO_PORT_SHIFT)
53 #define GPIO_PORTC (PORTC << GPIO_PORT_SHIFT)
54 #define GPIO_PORTD (PORTD << GPIO_PORT_SHIFT)
55 #define GPIO_PORTE (PORTE << GPIO_PORT_SHIFT)
56 #define GPIO_PORTF (PORTF << GPIO_PORT_SHIFT)