added capture_clear option to pps-gpio via dtoverlay (#2433)
authorhdoverobinson <hdoverobinson@gmail.com>
Tue, 13 Mar 2018 10:58:39 +0000 (06:58 -0400)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:01 +0000 (00:08 +0100)
drivers/pps/clients/pps-gpio.c

index 333ad7d..ec9c4de 100644 (file)
@@ -119,6 +119,9 @@ static int pps_gpio_probe(struct platform_device *pdev)
 
                if (of_get_property(np, "assert-falling-edge", NULL))
                        data->assert_falling_edge = true;
+
+                if (of_get_property(np, "capture-clear", NULL))
+                        data->capture_clear = true;
        }
 
        /* GPIO setup */