summaryrefslogtreecommitdiff
path: root/include/dt-bindings/gpio/x86-gpio.h
blob: 7f1de30c0bff2ecd1bad69b582d8c395d544378a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * This header provides constants for binding intel,x86-pinctrl.
 */

#ifndef _DT_BINDINGS_GPIO_X86_GPIO_H
#define _DT_BINDINGS_GPIO_X86_GPIO_H

#include <dt-bindings/gpio/gpio.h>

#define GPIO_MODE_NATIVE	0
#define GPIO_MODE_GPIO		1

#define GPIO_MODE_FUNC0	0
#define GPIO_MODE_FUNC1	1
#define GPIO_MODE_FUNC2	2
#define GPIO_MODE_FUNC3	3
#define GPIO_MODE_FUNC4	4
#define GPIO_MODE_FUNC5	5
#define GPIO_MODE_FUNC6	6

#define PIN_INPUT	0
#define PIN_OUTPUT	1

#define PIN_INPUT_NOPULL	0
#define PIN_INPUT_PULLUP	1
#define PIN_INPUT_PULLDOWN	2

#define PULL_STR_2K		0
#define PULL_STR_20K	2

#endif