Gabriel Huau | 5318f18 | 2015-05-25 22:27:37 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This header provides constants for binding intel,x86-pinctrl. |
| 3 | */ |
| 4 | |
| 5 | #ifndef _DT_BINDINGS_GPIO_X86_GPIO_H |
| 6 | #define _DT_BINDINGS_GPIO_X86_GPIO_H |
| 7 | |
| 8 | #include <dt-bindings/gpio/gpio.h> |
| 9 | |
| 10 | #define GPIO_MODE_NATIVE 0 |
| 11 | #define GPIO_MODE_GPIO 1 |
| 12 | |
| 13 | #define GPIO_MODE_FUNC0 0 |
| 14 | #define GPIO_MODE_FUNC1 1 |
| 15 | #define GPIO_MODE_FUNC2 2 |
| 16 | #define GPIO_MODE_FUNC3 3 |
| 17 | #define GPIO_MODE_FUNC4 4 |
| 18 | #define GPIO_MODE_FUNC5 5 |
| 19 | #define GPIO_MODE_FUNC6 6 |
| 20 | |
| 21 | #define PIN_INPUT 0 |
| 22 | #define PIN_OUTPUT 1 |
| 23 | |
| 24 | #define PIN_INPUT_NOPULL 0 |
| 25 | #define PIN_INPUT_PULLUP 1 |
| 26 | #define PIN_INPUT_PULLDOWN 2 |
| 27 | |
| 28 | #define PULL_STR_2K 0 |
| 29 | #define PULL_STR_20K 2 |
| 30 | |
| 31 | #endif |