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>
This commit is contained in:

committed by
Bartosz Golaszewski

parent
17f96ee2b9
commit
3831c051df
@@ -49,6 +49,18 @@ struct gpio_flag flagnames[] = {
|
|||||||
.name = "open-source",
|
.name = "open-source",
|
||||||
.mask = GPIOLINE_FLAG_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)
|
void print_flags(unsigned long flags)
|
||||||
|
Reference in New Issue
Block a user