summaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2018-05-20 15:15:40 +0000
committerthorpej <thorpej@NetBSD.org>2018-05-20 15:15:40 +0000
commit6fbaa404dbffda6a41aa6757af6178bb9fc163f4 (patch)
tree39f6375f23569c2320d8f046c0335a0e9dde31ef /sys/modules
parentb42882e517f776ed3a362376b3b766fe7a56610f (diff)
Add a 1PPS-over-GPIO driver, originally by Brad Spencer, with changes by
me to adapt to the new GPIO interrupt interface and support a wider variety of GPIO pin configuations. PR kern/51676 (Oops, forgot to "cvs add" these items previously.)
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/gpiopps/Makefile13
-rw-r--r--sys/modules/gpiopps/gpiopps.ioconf8
2 files changed, 21 insertions, 0 deletions
diff --git a/sys/modules/gpiopps/Makefile b/sys/modules/gpiopps/Makefile
new file mode 100644
index 00000000000..3f0be863c9a
--- /dev/null
+++ b/sys/modules/gpiopps/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1 2018/05/20 15:15:41 thorpej Exp $
+
+.include "../Makefile.inc"
+
+.PATH: ${S}/dev/gpio
+
+KMOD= gpiopps
+IOCONF= gpiopps.ioconf
+SRCS= gpiopps.c
+
+CPPFLAGS+= -I${S}/gpio
+
+.include <bsd.kmodule.mk>
diff --git a/sys/modules/gpiopps/gpiopps.ioconf b/sys/modules/gpiopps/gpiopps.ioconf
new file mode 100644
index 00000000000..68525540d0f
--- /dev/null
+++ b/sys/modules/gpiopps/gpiopps.ioconf
@@ -0,0 +1,8 @@
+# $NetBSD: gpiopps.ioconf,v 1.1 2018/05/20 15:15:41 thorpej Exp $
+
+ioconf gpiopps
+
+include "conf/files"
+
+pseudo-root gpio*
+gpiopps* at gpio? offset ? mask ? flag ?