diff options
| author | brad <brad@NetBSD.org> | 2022-12-03 01:04:42 +0000 |
|---|---|---|
| committer | brad <brad@NetBSD.org> | 2022-12-03 01:04:42 +0000 |
| commit | 02b8954fe89d72e580aac9928e8f0dd91cabaedc (patch) | |
| tree | 3d66e5b9ef8e2812eb0fd4eb5c10499ac92a1975 /sys/modules | |
| parent | a76f61463de79fb55af1db5ff83b1f68aeca0073 (diff) | |
Split the BMP280 / BME280 driver into common code and create I2C and
SPI attachments.
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/Makefile | 3 | ||||
| -rw-r--r-- | sys/modules/bmx280thp/Makefile | 2 | ||||
| -rw-r--r-- | sys/modules/bmx280thp/bmx280thp.ioconf | 5 | ||||
| -rw-r--r-- | sys/modules/bmx280thpi2c/Makefile | 11 | ||||
| -rw-r--r-- | sys/modules/bmx280thpi2c/bmx280thpi2c.ioconf | 8 |
5 files changed, 22 insertions, 7 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 1106a74e31f..7ce632c96d2 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.273 2022/11/21 21:24:01 brad Exp $ +# $NetBSD: Makefile,v 1.274 2022/12/03 01:04:42 brad Exp $ .include <bsd.own.mk> @@ -34,6 +34,7 @@ SUBDIR+= blowfish SUBDIR+= bpf SUBDIR+= bpf_filter SUBDIR+= bmx280thp +SUBDIR+= bmx280thpi2c SUBDIR+= bufq_disksort SUBDIR+= bufq_fcfs SUBDIR+= bufq_priocscan diff --git a/sys/modules/bmx280thp/Makefile b/sys/modules/bmx280thp/Makefile index 24f88cc6e48..19460f49e06 100644 --- a/sys/modules/bmx280thp/Makefile +++ b/sys/modules/bmx280thp/Makefile @@ -1,6 +1,6 @@ .include "../Makefile.inc" -.PATH: ${S}/dev/i2c +.PATH: ${S}/dev/ic KMOD= bmx280thp IOCONF= bmx280thp.ioconf diff --git a/sys/modules/bmx280thp/bmx280thp.ioconf b/sys/modules/bmx280thp/bmx280thp.ioconf index 4285144f8a3..3c7e6ffaf18 100644 --- a/sys/modules/bmx280thp/bmx280thp.ioconf +++ b/sys/modules/bmx280thp/bmx280thp.ioconf @@ -1,8 +1,3 @@ ioconf bmx280thp include "conf/files" - -pseudo-root iic* - -bmx280thp* at iic? addr 0x76 -bmx280thp* at iic? addr 0x77 diff --git a/sys/modules/bmx280thpi2c/Makefile b/sys/modules/bmx280thpi2c/Makefile new file mode 100644 index 00000000000..bd04c22a2ad --- /dev/null +++ b/sys/modules/bmx280thpi2c/Makefile @@ -0,0 +1,11 @@ +.include "../Makefile.inc" + +.PATH: ${S}/dev/i2c + +KMOD= bmx280thpi2c +IOCONF= bmx280thpi2c.ioconf +SRCS= bmx280thpi2c.c + +WARNS= 3 + +.include <bsd.kmodule.mk> diff --git a/sys/modules/bmx280thpi2c/bmx280thpi2c.ioconf b/sys/modules/bmx280thpi2c/bmx280thpi2c.ioconf new file mode 100644 index 00000000000..e7dff0b5530 --- /dev/null +++ b/sys/modules/bmx280thpi2c/bmx280thpi2c.ioconf @@ -0,0 +1,8 @@ +ioconf bmx280thpi2c + +include "conf/files" + +pseudo-root iic* + +bmx280thp* at iic? addr 0x76 +bmx280thp* at iic? addr 0x77 |
