Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | MXC_DDIR(x) (0x00 + ((x) << 8)) |
#define | MXC_OCR1(x) (0x04 + ((x) << 8)) |
#define | MXC_OCR2(x) (0x08 + ((x) << 8)) |
#define | MXC_ICONFA1(x) (0x0c + ((x) << 8)) |
#define | MXC_ICONFA2(x) (0x10 + ((x) << 8)) |
#define | MXC_ICONFB1(x) (0x14 + ((x) << 8)) |
#define | MXC_ICONFB2(x) (0x18 + ((x) << 8)) |
#define | MXC_DR(x) (0x1c + ((x) << 8)) |
#define | MXC_GIUS(x) (0x20 + ((x) << 8)) |
#define | MXC_SSR(x) (0x24 + ((x) << 8)) |
#define | MXC_ICR1(x) (0x28 + ((x) << 8)) |
#define | MXC_ICR2(x) (0x2c + ((x) << 8)) |
#define | MXC_IMR(x) (0x30 + ((x) << 8)) |
#define | MXC_ISR(x) (0x34 + ((x) << 8)) |
#define | MXC_GPR(x) (0x38 + ((x) << 8)) |
#define | MXC_SWR(x) (0x3c + ((x) << 8)) |
#define | MXC_PUEN(x) (0x40 + ((x) << 8)) |
#define | MX1_NUM_GPIO_PORT 4 |
#define | MX21_NUM_GPIO_PORT 6 |
#define | MX27_NUM_GPIO_PORT 6 |
#define | GPIO_PIN_MASK 0x1f |
#define | GPIO_PORT_SHIFT 5 |
#define | GPIO_PORT_MASK (0x7 << GPIO_PORT_SHIFT) |
#define | GPIO_PORTA (0 << GPIO_PORT_SHIFT) |
#define | GPIO_PORTB (1 << GPIO_PORT_SHIFT) |
#define | GPIO_PORTC (2 << GPIO_PORT_SHIFT) |
#define | GPIO_PORTD (3 << GPIO_PORT_SHIFT) |
#define | GPIO_PORTE (4 << GPIO_PORT_SHIFT) |
#define | GPIO_PORTF (5 << GPIO_PORT_SHIFT) |
#define | GPIO_OUT (1 << 8) |
#define | GPIO_IN (0 << 8) |
#define | GPIO_PUEN (1 << 9) |
#define | GPIO_PF (1 << 10) |
#define | GPIO_AF (1 << 11) |
#define | GPIO_OCR_SHIFT 12 |
#define | GPIO_OCR_MASK (3 << GPIO_OCR_SHIFT) |
#define | GPIO_AIN (0 << GPIO_OCR_SHIFT) |
#define | GPIO_BIN (1 << GPIO_OCR_SHIFT) |
#define | GPIO_CIN (2 << GPIO_OCR_SHIFT) |
#define | GPIO_GPIO (3 << GPIO_OCR_SHIFT) |
#define | GPIO_AOUT_SHIFT 14 |
#define | GPIO_AOUT_MASK (3 << GPIO_AOUT_SHIFT) |
#define | GPIO_AOUT (0 << GPIO_AOUT_SHIFT) |
#define | GPIO_AOUT_ISR (1 << GPIO_AOUT_SHIFT) |
#define | GPIO_AOUT_0 (2 << GPIO_AOUT_SHIFT) |
#define | GPIO_AOUT_1 (3 << GPIO_AOUT_SHIFT) |
#define | GPIO_BOUT_SHIFT 16 |
#define | GPIO_BOUT_MASK (3 << GPIO_BOUT_SHIFT) |
#define | GPIO_BOUT (0 << GPIO_BOUT_SHIFT) |
#define | GPIO_BOUT_ISR (1 << GPIO_BOUT_SHIFT) |
#define | GPIO_BOUT_0 (2 << GPIO_BOUT_SHIFT) |
#define | GPIO_BOUT_1 (3 << GPIO_BOUT_SHIFT) |
Functions | |
int | mxc_gpio_mode (int gpio_mode) |
int | mxc_gpio_setup_multiple_pins (const int *pin_list, unsigned count, const char *label) |
int | imx_iomuxv1_init (void __iomem *base, int numports) |
#define GPIO_AF (1 << 11) |
Definition at line 65 of file iomux-v1.h.
#define GPIO_AIN (0 << GPIO_OCR_SHIFT) |
Definition at line 69 of file iomux-v1.h.
#define GPIO_AOUT (0 << GPIO_AOUT_SHIFT) |
Definition at line 76 of file iomux-v1.h.
#define GPIO_AOUT_0 (2 << GPIO_AOUT_SHIFT) |
Definition at line 78 of file iomux-v1.h.
#define GPIO_AOUT_1 (3 << GPIO_AOUT_SHIFT) |
Definition at line 79 of file iomux-v1.h.
#define GPIO_AOUT_ISR (1 << GPIO_AOUT_SHIFT) |
Definition at line 77 of file iomux-v1.h.
#define GPIO_AOUT_MASK (3 << GPIO_AOUT_SHIFT) |
Definition at line 75 of file iomux-v1.h.
#define GPIO_AOUT_SHIFT 14 |
Definition at line 74 of file iomux-v1.h.
#define GPIO_BIN (1 << GPIO_OCR_SHIFT) |
Definition at line 70 of file iomux-v1.h.
#define GPIO_BOUT (0 << GPIO_BOUT_SHIFT) |
Definition at line 83 of file iomux-v1.h.
#define GPIO_BOUT_0 (2 << GPIO_BOUT_SHIFT) |
Definition at line 85 of file iomux-v1.h.
#define GPIO_BOUT_1 (3 << GPIO_BOUT_SHIFT) |
Definition at line 86 of file iomux-v1.h.
#define GPIO_BOUT_ISR (1 << GPIO_BOUT_SHIFT) |
Definition at line 84 of file iomux-v1.h.
#define GPIO_BOUT_MASK (3 << GPIO_BOUT_SHIFT) |
Definition at line 82 of file iomux-v1.h.
#define GPIO_BOUT_SHIFT 16 |
Definition at line 81 of file iomux-v1.h.
#define GPIO_CIN (2 << GPIO_OCR_SHIFT) |
Definition at line 71 of file iomux-v1.h.
#define GPIO_GPIO (3 << GPIO_OCR_SHIFT) |
Definition at line 72 of file iomux-v1.h.
#define GPIO_IN (0 << 8) |
Definition at line 61 of file iomux-v1.h.
#define GPIO_OCR_MASK (3 << GPIO_OCR_SHIFT) |
Definition at line 68 of file iomux-v1.h.
#define GPIO_OCR_SHIFT 12 |
Definition at line 67 of file iomux-v1.h.
#define GPIO_OUT (1 << 8) |
Definition at line 60 of file iomux-v1.h.
#define GPIO_PF (1 << 10) |
Definition at line 64 of file iomux-v1.h.
#define GPIO_PIN_MASK 0x1f |
Definition at line 48 of file iomux-v1.h.
#define GPIO_PORT_MASK (0x7 << GPIO_PORT_SHIFT) |
Definition at line 51 of file iomux-v1.h.
#define GPIO_PORT_SHIFT 5 |
Definition at line 50 of file iomux-v1.h.
#define GPIO_PORTA (0 << GPIO_PORT_SHIFT) |
Definition at line 53 of file iomux-v1.h.
#define GPIO_PORTB (1 << GPIO_PORT_SHIFT) |
Definition at line 54 of file iomux-v1.h.
#define GPIO_PORTC (2 << GPIO_PORT_SHIFT) |
Definition at line 55 of file iomux-v1.h.
#define GPIO_PORTD (3 << GPIO_PORT_SHIFT) |
Definition at line 56 of file iomux-v1.h.
#define GPIO_PORTE (4 << GPIO_PORT_SHIFT) |
Definition at line 57 of file iomux-v1.h.
#define GPIO_PORTF (5 << GPIO_PORT_SHIFT) |
Definition at line 58 of file iomux-v1.h.
#define GPIO_PUEN (1 << 9) |
Definition at line 62 of file iomux-v1.h.
#define MX1_NUM_GPIO_PORT 4 |
Definition at line 44 of file iomux-v1.h.
#define MX21_NUM_GPIO_PORT 6 |
Definition at line 45 of file iomux-v1.h.
#define MX27_NUM_GPIO_PORT 6 |
Definition at line 46 of file iomux-v1.h.
#define MXC_DDIR | ( | x | ) | (0x00 + ((x) << 8)) |
Definition at line 26 of file iomux-v1.h.
#define MXC_DR | ( | x | ) | (0x1c + ((x) << 8)) |
Definition at line 33 of file iomux-v1.h.
#define MXC_GIUS | ( | x | ) | (0x20 + ((x) << 8)) |
Definition at line 34 of file iomux-v1.h.
#define MXC_GPR | ( | x | ) | (0x38 + ((x) << 8)) |
Definition at line 40 of file iomux-v1.h.
#define MXC_ICONFA1 | ( | x | ) | (0x0c + ((x) << 8)) |
Definition at line 29 of file iomux-v1.h.
#define MXC_ICONFA2 | ( | x | ) | (0x10 + ((x) << 8)) |
Definition at line 30 of file iomux-v1.h.
#define MXC_ICONFB1 | ( | x | ) | (0x14 + ((x) << 8)) |
Definition at line 31 of file iomux-v1.h.
#define MXC_ICONFB2 | ( | x | ) | (0x18 + ((x) << 8)) |
Definition at line 32 of file iomux-v1.h.
#define MXC_ICR1 | ( | x | ) | (0x28 + ((x) << 8)) |
Definition at line 36 of file iomux-v1.h.
#define MXC_ICR2 | ( | x | ) | (0x2c + ((x) << 8)) |
Definition at line 37 of file iomux-v1.h.
#define MXC_IMR | ( | x | ) | (0x30 + ((x) << 8)) |
Definition at line 38 of file iomux-v1.h.
#define MXC_ISR | ( | x | ) | (0x34 + ((x) << 8)) |
Definition at line 39 of file iomux-v1.h.
#define MXC_OCR1 | ( | x | ) | (0x04 + ((x) << 8)) |
Definition at line 27 of file iomux-v1.h.
#define MXC_OCR2 | ( | x | ) | (0x08 + ((x) << 8)) |
Definition at line 28 of file iomux-v1.h.
#define MXC_PUEN | ( | x | ) | (0x40 + ((x) << 8)) |
Definition at line 42 of file iomux-v1.h.
#define MXC_SSR | ( | x | ) | (0x24 + ((x) << 8)) |
Definition at line 35 of file iomux-v1.h.
#define MXC_SWR | ( | x | ) | (0x3c + ((x) << 8)) |
Definition at line 41 of file iomux-v1.h.
Definition at line 182 of file iomux-v1.c.
Definition at line 124 of file iomux-v1.c.