summaryrefslogtreecommitdiffstats
path: root/sys/modules/ow/owc
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2015-08-27 23:33:38 +0000
committerimp <imp@FreeBSD.org>2015-08-27 23:33:38 +0000
commit05c9f26dff59dbf912171e997071d42c9f2c866e (patch)
tree12bf0a866f497ef802ae3d9eb17b80d76cb085ae /sys/modules/ow/owc
parent4ccf42e0ef431c29d97b7225534352fc1a517a98 (diff)
downloadFreeBSD-src-05c9f26dff59dbf912171e997071d42c9f2c866e.zip
FreeBSD-src-05c9f26dff59dbf912171e997071d42c9f2c866e.tar.gz
New 1-Wire bus implementation. 1-Wire controller is abstracted, though
only gpiobus configured via FDT is supported. Bus enumeration is supported. Devices are created for each device found. 1-Wire temperature controllers are supported, but other drivers could be written. Temperatures are polled and reported via a sysctl. Errors are reported via sysctl counters. Mis-wired bus detection is included for more trouble shooting. See ow(4), owc(4) and ow_temp(4) for details of what's supported and known issues. This has been tested on Raspberry Pi-B, Pi2 and Beagle Bone Black with up to 7 devices. Differential Revision: https://reviews.freebsd.org/D2956 Relnotes: yes MFC after: 2 weeks Reviewed by: loos@ (with many insightful comments)
Diffstat (limited to 'sys/modules/ow/owc')
-rw-r--r--sys/modules/ow/owc/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/modules/ow/owc/Makefile b/sys/modules/ow/owc/Makefile
new file mode 100644
index 0000000..4aaccf9
--- /dev/null
+++ b/sys/modules/ow/owc/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ow
+
+KMOD= owc
+SRCS= owc_gpiobus.c
+SRCS+= gpio_if.h gpiobus_if.h owll_if.h ofw_bus_if.h bus_if.h device_if.h
+SRCS+= opt_platform.h
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud