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