File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 23
23
#include "gpiolib.h"
24
24
#include "gpiolib-of.h"
25
25
26
+ /*
27
+ * This is Linux-specific flags. By default controllers' and Linux' mapping
28
+ * match, but GPIO controllers are free to translate their own flags to
29
+ * Linux-specific in their .xlate callback. Though, 1:1 mapping is recommended.
30
+ */
31
+ enum of_gpio_flags {
32
+ OF_GPIO_ACTIVE_LOW = 0x1 ,
33
+ OF_GPIO_SINGLE_ENDED = 0x2 ,
34
+ OF_GPIO_OPEN_DRAIN = 0x4 ,
35
+ OF_GPIO_TRANSITORY = 0x8 ,
36
+ OF_GPIO_PULL_UP = 0x10 ,
37
+ OF_GPIO_PULL_DOWN = 0x20 ,
38
+ OF_GPIO_PULL_DISABLE = 0x40 ,
39
+ };
40
+
26
41
/**
27
42
* of_gpio_named_count() - Count GPIOs for a device
28
43
* @np: device node to count GPIOs for
Original file line number Diff line number Diff line change 17
17
18
18
struct device_node ;
19
19
20
- /*
21
- * This is Linux-specific flags. By default controllers' and Linux' mapping
22
- * match, but GPIO controllers are free to translate their own flags to
23
- * Linux-specific in their .xlate callback. Though, 1:1 mapping is recommended.
24
- */
25
- enum of_gpio_flags {
26
- OF_GPIO_ACTIVE_LOW = 0x1 ,
27
- OF_GPIO_SINGLE_ENDED = 0x2 ,
28
- OF_GPIO_OPEN_DRAIN = 0x4 ,
29
- OF_GPIO_TRANSITORY = 0x8 ,
30
- OF_GPIO_PULL_UP = 0x10 ,
31
- OF_GPIO_PULL_DOWN = 0x20 ,
32
- OF_GPIO_PULL_DISABLE = 0x40 ,
33
- };
34
-
35
20
#ifdef CONFIG_OF_GPIO
36
21
37
22
#include <linux/container_of.h>
You can’t perform that action at this time.
0 commit comments