developer | 3e9ed99 | 2023-10-11 13:59:48 +0800 | [diff] [blame] | 1 | From 5b5c99a5cc6b6e2ec0fd3a5477a0e96868d09cd3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sam Shih <sam.shih@mediatek.com> |
| 3 | Date: Wed, 11 Oct 2023 13:51:14 +0800 |
| 4 | Subject: [PATCH] add config |
| 5 | |
| 6 | --- |
| 7 | drivers/iio/pressure/Kconfig | 7 +++++++ |
| 8 | drivers/iio/pressure/Makefile | 1 + |
| 9 | 2 files changed, 8 insertions(+) |
| 10 | |
| 11 | diff --git a/drivers/iio/pressure/Kconfig b/drivers/iio/pressure/Kconfig |
| 12 | index ba420e4..83bf432 100644 |
| 13 | --- a/drivers/iio/pressure/Kconfig |
| 14 | +++ b/drivers/iio/pressure/Kconfig |
| 15 | @@ -64,6 +64,13 @@ config DPS310 |
| 16 | This driver can also be built as a module. If so, the module will be |
| 17 | called dps310. |
| 18 | |
| 19 | +config ZTS8032 |
| 20 | + tristate "Zilltek ZTS8032 barometric pressure sensor" |
| 21 | + depends on I2C |
| 22 | + select REGMAP_I2C |
| 23 | + help |
| 24 | + Support for the Zilltek ZTS8032 barometric pressure sensor. |
| 25 | + |
| 26 | config HID_SENSOR_PRESS |
| 27 | depends on HID_SENSOR_HUB |
| 28 | select IIO_BUFFER |
| 29 | diff --git a/drivers/iio/pressure/Makefile b/drivers/iio/pressure/Makefile |
| 30 | index d8f5ace..2433aad 100644 |
| 31 | --- a/drivers/iio/pressure/Makefile |
| 32 | +++ b/drivers/iio/pressure/Makefile |
| 33 | @@ -10,6 +10,7 @@ bmp280-objs := bmp280-core.o bmp280-regmap.o |
| 34 | obj-$(CONFIG_BMP280_I2C) += bmp280-i2c.o |
| 35 | obj-$(CONFIG_BMP280_SPI) += bmp280-spi.o |
| 36 | obj-$(CONFIG_DPS310) += dps310.o |
| 37 | +obj-$(CONFIG_ZTS8032) += zts8032.o |
| 38 | obj-$(CONFIG_IIO_CROS_EC_BARO) += cros_ec_baro.o |
| 39 | obj-$(CONFIG_HID_SENSOR_PRESS) += hid-sensor-press.o |
| 40 | obj-$(CONFIG_HP03) += hp03.o |
| 41 | -- |
| 42 | 2.18.0 |
| 43 | |