Add module build stuff for gpioths(4), a driver for DHT11/DHT22 sensors.

This commit is contained in:
Ian Lepore 2019-12-07 17:54:40 +00:00
parent 91caa9b8c1
commit 624e87b673
2 changed files with 20 additions and 1 deletions

View File

@ -25,7 +25,7 @@
# SUCH DAMAGE.
#
SUBDIR = gpiobus gpioiic gpioled gpiospi
SUBDIR = gpiobus gpioiic gpioled gpiospi gpioths
.if !empty(OPT_FDT)
SUBDIR += gpiokeys gpiopps

View File

@ -0,0 +1,19 @@
# $FreeBSD$
#
.PATH: ${SRCTOP}/sys/dev/gpio/
KMOD= gpioths
SRCS= gpioths.c
SRCS+= \
bus_if.h \
device_if.h \
gpio_if.h \
gpiobus_if.h \
ofw_bus_if.h \
opt_platform.h \
CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
.include <bsd.kmod.mk>