arm: allwinner: Add pnp info to aw_thermal and compile it as module too

MFC after:	1 month
This commit is contained in:
Emmanuel Vadot 2019-04-25 18:39:41 +00:00
parent db0e5bf390
commit f9b1c6a029
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346692
3 changed files with 17 additions and 0 deletions

View File

@ -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);

View File

@ -4,5 +4,6 @@
SUBDIR = \
aw_sid \
aw_spi \
aw_thermal
.include <bsd.subdir.mk>

View File

@ -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>