David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * pps-gpio.h -- PPS client for GPIOs |
| 4 | * |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 5 | * Copyright (C) 2011 James Nuss <jamesnuss@nanometrics.ca> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _PPS_GPIO_H |
| 9 | #define _PPS_GPIO_H |
| 10 | |
| 11 | struct pps_gpio_platform_data { |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 12 | struct gpio_desc *gpio_pin; |
| 13 | struct gpio_desc *echo_pin; |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 14 | bool assert_falling_edge; |
| 15 | bool capture_clear; |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 16 | unsigned int echo_active_ms; |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | #endif /* _PPS_GPIO_H */ |