From dbc8d8a261dcb63a7a45f038647ed97aab81eaf7 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 25 Apr 2019 18:40:23 +0000 Subject: arm: allwinner: Add pnp info to axp81x and compile it as module too MFC after: 1 month --- sys/arm/allwinner/axp81x.c | 1 + sys/modules/allwinner/Makefile | 3 ++- sys/modules/allwinner/axp81x/Makefile | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 sys/modules/allwinner/axp81x/Makefile (limited to 'sys') diff --git a/sys/arm/allwinner/axp81x.c b/sys/arm/allwinner/axp81x.c index 8301a44c654f..277788f1f7ac 100644 --- a/sys/arm/allwinner/axp81x.c +++ b/sys/arm/allwinner/axp81x.c @@ -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); diff --git a/sys/modules/allwinner/Makefile b/sys/modules/allwinner/Makefile index 111d657badd9..6c7ccc1f5b9d 100644 --- a/sys/modules/allwinner/Makefile +++ b/sys/modules/allwinner/Makefile @@ -4,6 +4,7 @@ SUBDIR = \ aw_sid \ aw_spi \ - aw_thermal + aw_thermal \ + axp81x .include diff --git a/sys/modules/allwinner/axp81x/Makefile b/sys/modules/allwinner/axp81x/Makefile new file mode 100644 index 000000000000..890046f355d2 --- /dev/null +++ b/sys/modules/allwinner/axp81x/Makefile @@ -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 -- cgit v1.3