mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
arm: allwinner: Add pnp info to aw_rtc and compile it as module too
MFC after: 1 month
This commit is contained in:
parent
dbc8d8a261
commit
abc15d70b0
3 changed files with 18 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
# Build modules specific to Allwinner.
|
||||
|
||||
SUBDIR = \
|
||||
aw_rtc \
|
||||
aw_sid \
|
||||
aw_spi \
|
||||
aw_thermal \
|
||||
|
|
|
|||
15
sys/modules/allwinner/aw_rtc/Makefile
Normal file
15
sys/modules/allwinner/aw_rtc/Makefile
Normal 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>
|
||||
Loading…
Reference in a new issue