aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2019-04-25 18:39:41 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2019-04-25 18:39:41 +0000
commitf9b1c6a02979574e29eb977687c7524aaeabd202 (patch)
tree0e31066b489cc6912aa951fb8512d9a11346e527
parentdb0e5bf390bd539dde2b8b95959bc5185e06cbab (diff)
downloadsrc-f9b1c6a02979574e29eb977687c7524aaeabd202.tar.gz
src-f9b1c6a02979574e29eb977687c7524aaeabd202.zip
arm: allwinner: Add pnp info to aw_thermal and compile it as module too
MFC after: 1 month
Notes
Notes: svn path=/head/; revision=346692
-rw-r--r--sys/arm/allwinner/aw_thermal.c2
-rw-r--r--sys/modules/allwinner/Makefile1
-rw-r--r--sys/modules/allwinner/aw_thermal/Makefile14
3 files changed, 17 insertions, 0 deletions
diff --git a/sys/arm/allwinner/aw_thermal.c b/sys/arm/allwinner/aw_thermal.c
index 89bf89559bcb..9edfdb98569b 100644
--- a/sys/arm/allwinner/aw_thermal.c
+++ b/sys/arm/allwinner/aw_thermal.c
@@ -728,3 +728,5 @@ static devclass_t aw_thermal_devclass;
DRIVER_MODULE(aw_thermal, simplebus, aw_thermal_driver, aw_thermal_devclass,
0, 0);
MODULE_VERSION(aw_thermal, 1);
+MODULE_DEPEND(aw_thermal, aw_sid, 1, 1, 1);
+SIMPLEBUS_PNP_INFO(compat_data);
diff --git a/sys/modules/allwinner/Makefile b/sys/modules/allwinner/Makefile
index 98e22678f28e..111d657badd9 100644
--- a/sys/modules/allwinner/Makefile
+++ b/sys/modules/allwinner/Makefile
@@ -4,5 +4,6 @@
SUBDIR = \
aw_sid \
aw_spi \
+ aw_thermal
.include <bsd.subdir.mk>
diff --git a/sys/modules/allwinner/aw_thermal/Makefile b/sys/modules/allwinner/aw_thermal/Makefile
new file mode 100644
index 000000000000..804fbc6db0d3
--- /dev/null
+++ b/sys/modules/allwinner/aw_thermal/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/arm/allwinner
+
+KMOD= aw_thermal
+SRCS= aw_thermal.c
+
+SRCS+= \
+ bus_if.h \
+ clknode_if.h \
+ device_if.h \
+ ofw_bus_if.h \
+
+.include <bsd.kmod.mk>