summaryrefslogtreecommitdiff
path: root/tools/gpio
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2020-04-30 03:09:16 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-05-05 19:27:09 +0300
commit3831c051dfbf58595085e432acc00ad4efcf54cc (patch)
treeb3a370e80c78314c5ea16a6e8ddd5e61862051fc /tools/gpio
parent17f96ee2b9be9b65517fe167cfb13b86b33f3a1d (diff)
downloadlinux-3831c051dfbf58595085e432acc00ad4efcf54cc.tar.xz
tools: gpio: add bias flags to lsgpio
Add display of the bias flags. Signed-off-by: Kent Gibson <warthog618@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'tools/gpio')
-rw-r--r--tools/gpio/lsgpio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c
index e1430f504c13..8a71ad36f83b 100644
--- 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)