blob: 7bf49908be061fb1baccda2b32313434fe783197 [file] [log] [blame]
Thomas Gleixner74ba9202019-05-20 09:19:02 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
James Nuss161520452011-11-02 13:39:38 -07002/*
3 * pps-gpio.h -- PPS client for GPIOs
4 *
James Nuss161520452011-11-02 13:39:38 -07005 * Copyright (C) 2011 James Nuss <jamesnuss@nanometrics.ca>
James Nuss161520452011-11-02 13:39:38 -07006 */
7
8#ifndef _PPS_GPIO_H
9#define _PPS_GPIO_H
10
11struct pps_gpio_platform_data {
Tom Burkart4461d652019-05-14 15:45:40 -070012 struct gpio_desc *gpio_pin;
Tom Burkart4c69add2019-05-14 15:45:46 -070013 struct gpio_desc *echo_pin;
James Nuss161520452011-11-02 13:39:38 -070014 bool assert_falling_edge;
15 bool capture_clear;
Tom Burkart4c69add2019-05-14 15:45:46 -070016 unsigned int echo_active_ms;
James Nuss161520452011-11-02 13:39:38 -070017};
18
Robert P. J. Daya2d81802017-09-08 16:17:19 -070019#endif /* _PPS_GPIO_H */