blob: 7bf49908be061fb1baccda2b32313434fe783197 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * pps-gpio.h -- PPS client for GPIOs
4 *
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00005 * Copyright (C) 2011 James Nuss <jamesnuss@nanometrics.ca>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00006 */
7
8#ifndef _PPS_GPIO_H
9#define _PPS_GPIO_H
10
11struct pps_gpio_platform_data {
David Brazdil0f672f62019-12-10 10:32:29 +000012 struct gpio_desc *gpio_pin;
13 struct gpio_desc *echo_pin;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000014 bool assert_falling_edge;
15 bool capture_clear;
David Brazdil0f672f62019-12-10 10:32:29 +000016 unsigned int echo_active_ms;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000017};
18
19#endif /* _PPS_GPIO_H */