summaryrefslogtreecommitdiffstats
path: root/sys/modules/bytgpio
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2016-12-01 22:22:19 +0000
committergonzo <gonzo@FreeBSD.org>2016-12-01 22:22:19 +0000
commit1309465ad40a38cf9008f5eb2e56918c7bea3a20 (patch)
tree7355103d288eef7af642ec1fd106468f927ebd62 /sys/modules/bytgpio
parentc1af447a27a5017940c76dbc4a54f0adbd1a18e0 (diff)
downloadFreeBSD-src-1309465ad40a38cf9008f5eb2e56918c7bea3a20.zip
FreeBSD-src-1309465ad40a38cf9008f5eb2e56918c7bea3a20.tar.gz
MFC r308898, r308940, r308942, r308944, r309112
r308898: [bytgpio] Fix USB disconnect event after listsing pins on gpioc2 - Do not set input flag when reading value from GPIO pin, it is not required and for gpioc2(S5 bank) setting both input and output flags leads to some kind of electric interference (curren drop?) that causes USB devices to disconnect - Check pad configuration when attaching device and provide IN/OUT capabilities only for pads that are configured as GPIO. Do not let user code to configure or change value of non-GPIO pads. There is no information for NC bank in intel's datasheet so for now function check is ignored for pins in it Reported by: Frank H. MFC after: 3 days r308940: [bytgpio] prepare bytgpio(4) for modularization - Add detach method - module should depend on gpiobus, not gpio r308942: [bytgpio] Add module for bytgpio(4) MFC after: 3 days r308944 by hiren@: r308942 broke kernel build. Add acpi_if.h to module makefile to fix it. Submitted by: peter r309112: [bytgpio] Fix pc98 build by disabling bytgpio module for this platform Reported by: dim
Diffstat (limited to 'sys/modules/bytgpio')
-rw-r--r--sys/modules/bytgpio/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/modules/bytgpio/Makefile b/sys/modules/bytgpio/Makefile
new file mode 100644
index 0000000..db06e4af
--- /dev/null
+++ b/sys/modules/bytgpio/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/gpio
+KMOD= bytgpio
+SRCS= bytgpio.c
+SRCS+= acpi_if.h device_if.h bus_if.h gpio_if.h
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud