diff options
author | Kent Gibson <warthog618@gmail.com> | 2020-10-15 07:11:57 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-12-05 23:22:47 +0100 |
commit | da777be6de014be6b302644685797ed3860a0d0d (patch) | |
tree | 1b3f9073b6c5bd4f968261841b797736dc95f9ce /tools/gpio | |
parent | 26d060e47e25f2c715a1b2c48fea391f67907a30 (diff) | |
download | linux-da777be6de014be6b302644685797ed3860a0d0d.tar.gz linux-da777be6de014be6b302644685797ed3860a0d0d.tar.bz2 linux-da777be6de014be6b302644685797ed3860a0d0d.zip |
tools: gpio: add support for reporting realtime event clock to lsgpio
Add support for reporting if a line is configured to report realtime
timestamps in events.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20201014231158.34117-3-warthog618@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/gpio')
-rw-r--r-- | tools/gpio/lsgpio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index 5a05a454d0c9..c61d061247e1 100644 --- a/tools/gpio/lsgpio.c +++ b/tools/gpio/lsgpio.c @@ -65,6 +65,10 @@ struct gpio_flag flagnames[] = { .name = "bias-disabled", .mask = GPIO_V2_LINE_FLAG_BIAS_DISABLED, }, + { + .name = "clock-realtime", + .mask = GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME, + }, }; static void print_attributes(struct gpio_v2_line_info *info) |