projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17f96ee
)
tools: gpio: add bias flags to lsgpio
author
Kent Gibson
<warthog618@gmail.com>
Thu, 30 Apr 2020 00:09:16 +0000
(08:09 +0800)
committer
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Tue, 5 May 2020 16:27:09 +0000
(18:27 +0200)
Add display of the bias flags.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tools/gpio/lsgpio.c
patch
|
blob
|
history
diff --git
a/tools/gpio/lsgpio.c
b/tools/gpio/lsgpio.c
index
e1430f5
..
8a71ad3
100644
(file)
--- a/
tools/gpio/lsgpio.c
+++ b/
tools/gpio/lsgpio.c
@@
-49,6
+49,18
@@
struct gpio_flag flagnames[] = {
.name = "open-source",
.mask = GPIOLINE_FLAG_OPEN_SOURCE,
},
+ {
+ .name = "pull-up",
+ .mask = GPIOLINE_FLAG_BIAS_PULL_UP,
+ },
+ {
+ .name = "pull-down",
+ .mask = GPIOLINE_FLAG_BIAS_PULL_DOWN,
+ },
+ {
+ .name = "bias-disabled",
+ .mask = GPIOLINE_FLAG_BIAS_DISABLE,
+ },
};
void print_flags(unsigned long flags)