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

MFC after:	1 month
This commit is contained in:
manu 2019-04-25 18:40:23 +00:00
parent c69bfacb24
commit acbf6ee12f
3 changed files with 18 additions and 1 deletions

View File

@ -1619,3 +1619,4 @@ EARLY_DRIVER_MODULE(ofw_gpiobus, axp8xx_pmu, ofw_gpiobus_driver,
DRIVER_MODULE(gpioc, axp8xx_pmu, gpioc_driver, gpioc_devclass, 0, 0);
MODULE_VERSION(axp8xx, 1);
MODULE_DEPEND(axp8xx, iicbus, 1, 1, 1);
SIMPLEBUS_PNP_INFO(compat_data);

View File

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

View File

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