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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -24,8 +24,10 @@ · 23 unmodified lines | ||
| 24 | 24 | |
| 25 | 25 | struct pps_gpio_platform_data { |
| 26 | 26 | struct gpio_desc *gpio_pin; |
| 27 | + struct gpio_desc *echo_pin; | |
| 27 | 28 | bool assert_falling_edge; |
| 28 | 29 | bool capture_clear; |
| 30 | + unsigned int echo_active_ms; | |
| 29 | 31 | }; |
| 30 | 32 | |
| 31 | 33 | #endif /* _PPS_GPIO_H */ |