diff options
Diffstat (limited to 'target/linux/bcm27xx/patches-5.15/950-0097-added-capture_clear-option-to-pps-gpio-via-dtoverlay.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.15/950-0097-added-capture_clear-option-to-pps-gpio-via-dtoverlay.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.15/950-0097-added-capture_clear-option-to-pps-gpio-via-dtoverlay.patch b/target/linux/bcm27xx/patches-5.15/950-0097-added-capture_clear-option-to-pps-gpio-via-dtoverlay.patch new file mode 100644 index 0000000000..36521c84a0 --- /dev/null +++ b/target/linux/bcm27xx/patches-5.15/950-0097-added-capture_clear-option-to-pps-gpio-via-dtoverlay.patch @@ -0,0 +1,22 @@ +From 9ed2e6910f4be04aa4f30a991e4a53b986835cb2 Mon Sep 17 00:00:00 2001 +From: hdoverobinson <hdoverobinson@gmail.com> +Date: Tue, 13 Mar 2018 06:58:39 -0400 +Subject: [PATCH] added capture_clear option to pps-gpio via dtoverlay + (#2433) + +--- + drivers/pps/clients/pps-gpio.c | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/drivers/pps/clients/pps-gpio.c ++++ b/drivers/pps/clients/pps-gpio.c +@@ -113,6 +113,9 @@ static int pps_gpio_setup(struct device + data->assert_falling_edge = + device_property_read_bool(dev, "assert-falling-edge"); + ++ data->capture_clear = ++ device_property_read_bool(dev, "capture-clear"); ++ + data->echo_pin = devm_gpiod_get_optional(dev, "echo", GPIOD_OUT_LOW); + if (IS_ERR(data->echo_pin)) + return dev_err_probe(dev, PTR_ERR(data->echo_pin), |