]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/dt-bindings/gpio/x86-gpio.h
x86: gpio: add pinctrl support from the device tree
[karo-tx-uboot.git] / include / dt-bindings / gpio / x86-gpio.h
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