Thomas Gleixner | 74ba920 | 2019-05-20 09:19:02 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
James Nuss | 16152045 | 2011-11-02 13:39:38 -0700 | [diff] [blame] | 2 | /* |
| 3 | * pps-gpio.h -- PPS client for GPIOs |
| 4 | * |
James Nuss | 16152045 | 2011-11-02 13:39:38 -0700 | [diff] [blame] | 5 | * Copyright (C) 2011 James Nuss <jamesnuss@nanometrics.ca> |
James Nuss | 16152045 | 2011-11-02 13:39:38 -0700 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _PPS_GPIO_H |
| 9 | #define _PPS_GPIO_H |
| 10 | |
| 11 | struct pps_gpio_platform_data { |
Tom Burkart | 4461d65 | 2019-05-14 15:45:40 -0700 | [diff] [blame] | 12 | struct gpio_desc *gpio_pin; |
Tom Burkart | 4c69add | 2019-05-14 15:45:46 -0700 | [diff] [blame] | 13 | struct gpio_desc *echo_pin; |
James Nuss | 16152045 | 2011-11-02 13:39:38 -0700 | [diff] [blame] | 14 | bool assert_falling_edge; |
| 15 | bool capture_clear; |
Tom Burkart | 4c69add | 2019-05-14 15:45:46 -0700 | [diff] [blame] | 16 | unsigned int echo_active_ms; |
James Nuss | 16152045 | 2011-11-02 13:39:38 -0700 | [diff] [blame] | 17 | }; |
| 18 | |
Robert P. J. Day | a2d8180 | 2017-09-08 16:17:19 -0700 | [diff] [blame] | 19 | #endif /* _PPS_GPIO_H */ |