2019-05-20 14:19:02 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-11-03 03:39:38 +07: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 05:45:40 +07:00
|
|
|
struct gpio_desc *gpio_pin;
|
2019-05-15 05:45:46 +07:00
|
|
|
struct gpio_desc *echo_pin;
|
2011-11-03 03:39:38 +07:00
|
|
|
bool assert_falling_edge;
|
|
|
|
bool capture_clear;
|
2019-05-15 05:45:46 +07:00
|
|
|
unsigned int echo_active_ms;
|
2011-11-03 03:39:38 +07:00
|
|
|
};
|
|
|
|
|
2017-09-09 06:17:19 +07:00
|
|
|
#endif /* _PPS_GPIO_H */
|