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

While here make it depend on aw_sid as it's needed for mac generation.

MFC after:	1 month
This commit is contained in:
Emmanuel Vadot 2019-04-25 18:42:27 +00:00
parent 83bf5ec367
commit 56c37d89b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346696
3 changed files with 18 additions and 2 deletions

View File

@ -1967,6 +1967,7 @@ static devclass_t awg_devclass;
DRIVER_MODULE(awg, simplebus, awg_driver, awg_devclass, 0, 0);
DRIVER_MODULE(miibus, awg, miibus_driver, miibus_devclass, 0, 0);
MODULE_DEPEND(awg, ether, 1, 1, 1);
MODULE_DEPEND(awg, miibus, 1, 1, 1);
MODULE_DEPEND(awg, aw_sid, 1, 1, 1);
SIMPLEBUS_PNP_INFO(compat_data);

View File

@ -6,6 +6,7 @@ SUBDIR = \
aw_sid \
aw_spi \
aw_thermal \
axp81x
axp81x \
if_awg
.include <bsd.subdir.mk>

View File

@ -0,0 +1,14 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/arm/allwinner
KMOD= if_awg
SRCS= if_awg.c
SRCS+= \
bus_if.h \
clknode_if.h \
device_if.h \
ofw_bus_if.h \
.include <bsd.kmod.mk>