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

MFC after:	1 month
This commit is contained in:
Emmanuel Vadot 2019-04-25 18:41:05 +00:00
parent dbc8d8a261
commit abc15d70b0
3 changed files with 18 additions and 0 deletions

View File

@ -185,6 +185,8 @@ static devclass_t aw_rtc_devclass;
EARLY_DRIVER_MODULE(aw_rtc, simplebus, aw_rtc_driver, aw_rtc_devclass, 0, 0,
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
MODULE_VERSION(aw_rtc, 1);
SIMPLEBUS_PNP_INFO(compat_data);
static int
aw_rtc_probe(device_t dev)

View File

@ -2,6 +2,7 @@
# Build modules specific to Allwinner.
SUBDIR = \
aw_rtc \
aw_sid \
aw_spi \
aw_thermal \

View File

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