2019-05-20 10:19:02 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-11-03 00:39:38 +04:00
|
|
|
/*
|
|
|
|
* pps-gpio.h -- PPS client for GPIOs
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 James Nuss <jamesnuss@nanometrics.ca>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PPS_GPIO_H
|
|
|
|
#define _PPS_GPIO_H
|
|
|
|
|
|
|
|
struct pps_gpio_platform_data {
|
2019-05-15 01:45:40 +03:00
|
|
|
struct gpio_desc *gpio_pin;
|
2019-05-15 01:45:46 +03:00
|
|
|
struct gpio_desc *echo_pin;
|
2011-11-03 00:39:38 +04:00
|
|
|
bool assert_falling_edge;
|
|
|
|
bool capture_clear;
|
2019-05-15 01:45:46 +03:00
|
|
|
unsigned int echo_active_ms;
|
2011-11-03 00:39:38 +04:00
|
|
|
};
|
|
|
|
|
2017-09-09 02:17:19 +03:00
|
|
|
#endif /* _PPS_GPIO_H */
|