summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-09-19 17:13:22 -0500
committerJohn Klug <john.klug@multitech.com>2016-09-19 17:13:22 -0500
commitadb8bc61725ca317505613997d3024f57192df51 (patch)
treeb5d6694d12480aeee3e7292e9598575904c7e69f
parent7b2a7f439afd405710447cefa716db1d8d20a156 (diff)
downloadmeta-multitech-adb8bc61725ca317505613997d3024f57192df51.tar.gz
meta-multitech-adb8bc61725ca317505613997d3024f57192df51.tar.bz2
meta-multitech-adb8bc61725ca317505613997d3024f57192df51.zip
Set clear times for pps-gpio
-rw-r--r--recipes-kernel/linux/linux-3.12.27/linux-3.12-pps-gpio.patch31
-rw-r--r--recipes-kernel/linux/linux-3.12.27/mtcdt/linux-3.12-mtcdt-device-tree.patch5
2 files changed, 17 insertions, 19 deletions
diff --git a/recipes-kernel/linux/linux-3.12.27/linux-3.12-pps-gpio.patch b/recipes-kernel/linux/linux-3.12.27/linux-3.12-pps-gpio.patch
index ff30650..554b53f 100644
--- a/recipes-kernel/linux/linux-3.12.27/linux-3.12-pps-gpio.patch
+++ b/recipes-kernel/linux/linux-3.12.27/linux-3.12-pps-gpio.patch
@@ -1,19 +1,6 @@
-#
-# Author: Gary Miller
-# https://groups.google.com/forum/#!topic/linux.kernel/fj1NGMrfGW8
-#
-# In the conversion from platform to device tree the capture-clear
-# option was lost.
-#
-# capture-clear is needed so that time_pps_fetch() will report both
-# edges of each PPS pulse. Both edges are needed so that userland
-# programs, like gpsd, can autodetect the leading and trailing PPS
-# edges.
-#
-====================================================================
diff -uprN old/Documentation/devicetree/bindings/pps/pps-gpio.txt new/Documentation/devicetree/bindings/pps/pps-gpio.txt
---- old/Documentation/devicetree/bindings/pps/pps-gpio.txt 2016-09-16 18:22:31.149632690 -0500
-+++ new/Documentation/devicetree/bindings/pps/pps-gpio.txt 2016-09-16 18:27:02.981632115 -0500
+--- old/Documentation/devicetree/bindings/pps/pps-gpio.txt 2016-09-19 09:51:11.271472335 -0500
++++ new/Documentation/devicetree/bindings/pps/pps-gpio.txt 2016-09-19 09:49:27.283474197 -0500
@@ -17,4 +17,5 @@ Example:
gpios = <&gpio2 6 0>;
@@ -21,8 +8,8 @@ diff -uprN old/Documentation/devicetree/bindings/pps/pps-gpio.txt new/Documentat
+ capture-clear;
};
diff -uprN old/drivers/pps/clients/pps-gpio.c new/drivers/pps/clients/pps-gpio.c
---- old/drivers/pps/clients/pps-gpio.c 2016-09-16 18:23:45.661632532 -0500
-+++ new/drivers/pps/clients/pps-gpio.c 2016-09-16 18:29:20.257631825 -0500
+--- old/drivers/pps/clients/pps-gpio.c 2016-09-19 09:51:11.271472335 -0500
++++ new/drivers/pps/clients/pps-gpio.c 2016-09-19 17:09:02.367001869 -0500
@@ -119,6 +119,8 @@ static int pps_gpio_probe(struct platfor
if (of_get_property(np, "assert-falling-edge", NULL))
@@ -32,3 +19,13 @@ diff -uprN old/drivers/pps/clients/pps-gpio.c new/drivers/pps/clients/pps-gpio.c
}
/* GPIO setup */
+@@ -208,6 +210,8 @@ static struct platform_driver pps_gpio_d
+ module_platform_driver(pps_gpio_driver);
+ MODULE_AUTHOR("Ricardo Martins <rasm@fe.up.pt>");
+ MODULE_AUTHOR("James Nuss <jamesnuss@nanometrics.ca>");
++MODULE_AUTHOR("Gary Miller <gem@rellim.com>");
++
+ MODULE_DESCRIPTION("Use GPIO pin as PPS source");
+ MODULE_LICENSE("GPL");
+-MODULE_VERSION("1.0.0");
++MODULE_VERSION("1.0.1");
diff --git a/recipes-kernel/linux/linux-3.12.27/mtcdt/linux-3.12-mtcdt-device-tree.patch b/recipes-kernel/linux/linux-3.12.27/mtcdt/linux-3.12-mtcdt-device-tree.patch
index aa96655..bea818d 100644
--- a/recipes-kernel/linux/linux-3.12.27/mtcdt/linux-3.12-mtcdt-device-tree.patch
+++ b/recipes-kernel/linux/linux-3.12.27/mtcdt/linux-3.12-mtcdt-device-tree.patch
@@ -1,8 +1,8 @@
Index: linux-3.12.27/arch/arm/boot/dts/mtcdt.dts
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ linux-3.12.27/arch/arm/boot/dts/mtcdt.dts 2015-01-13 13:58:20.766078428 -0600
-@@ -0,0 +1,278 @@
++++ linux-3.12.27/arch/arm/boot/dts/mtcdt.dts 2016-09-19 15:34:25.111103538 -0500
+@@ -0,0 +1,279 @@
+/*
+ * DTS file for Multi-Tech Systems MTCDT Hardware
+ */
@@ -248,6 +248,7 @@ Index: linux-3.12.27/arch/arm/boot/dts/mtcdt.dts
+ pps {
+ compatible = "pps-gpio";
+ gpios = <&pioA 29 0>;
++ capture-clear;
+ };
+
+