aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTom Burkart <[email protected]>2019-05-14 15:45:46 -0700
committerLinus Torvalds <[email protected]>2019-05-14 19:52:51 -0700
commit4c69add45fec995ce23b21dc90be20f1efd8cdad (patch)
treeeaa128acbef1efe8456cdb72892549b03bef78f1 /include/linux
parent652e22185a4414143a1d17975bd9ef0b12ea7b37 (diff)
pps: pps-gpio PPS ECHO implementation
This patch implements the PPS ECHO functionality for pps-gpio, that sysfs claims is available already. Configuration is done via device tree bindings. No changes are made to userspace interfaces. This patch was originally written by Lukas Senger as part of a masters thesis project and modified for inclusion into the linux kernel by Tom Burkart. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Tom Burkart <[email protected]> Acked-by: Rodolfo Giometti <[email protected]> Signed-off-by: Lukas Senger <[email protected]> Cc: Philipp Zabel <[email protected]> Cc: Rob Herring <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pps-gpio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pps-gpio.h b/include/linux/pps-gpio.h
index f028d2cda6f5..44171e6b7197 100644
--- a/include/linux/pps-gpio.h
+++ b/include/linux/pps-gpio.h
@@ -24,8 +24,10 @@
struct pps_gpio_platform_data {
struct gpio_desc *gpio_pin;
+ struct gpio_desc *echo_pin;
bool assert_falling_edge;
bool capture_clear;
+ unsigned int echo_active_ms;
};
#endif /* _PPS_GPIO_H */