Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67c1c807 authored by Chaojun Wang's avatar Chaojun Wang
Browse files

drivers: iio: add Makefile and Kconfig for TDK chirp sensor



Add Makefile and Kconfig for TDK chirp sensor.

Change-Id: I54d5b00c142ec9438a330bdf2373f9a26a1c1a37
Signed-off-by: default avatarChaojun Wang <chaojunw@codeaurora.org>
parent 66c3a546
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

config CH101
	tristate
	select IIO_BUFFER
	select IIO_TRIGGERED_BUFFER

config CH101_I2C
	tristate "Invensense CH-101 devices (I2C)"
	depends on I2C_MUX
	select CH101
	select REGMAP_I2C
	help
	  This driver supports the Invensense CH-101 ultra-low power
	  ultrasonic Time-of-Flight (ToF) range sensor over I2C.
	  This driver can be built as a module. The module will be called
	  ch101-i2c
+26 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

obj-$(CONFIG_CH101)	+= ch101-core.o
ch101-core-objs		+= ch101_core.o
ch101-core-objs		+= ch101_sysfs.o
ch101-core-objs 	+= src/init_driver.o
ch101-core-objs 	+= src/chbsp_dummy.o
ch101-core-objs 	+= src/chbsp_init.o
ch101-core-objs 	+= src/chirp_hal.o
ch101-core-objs 	+= src/i2c_hal.o
ch101-core-objs 	+= src/ch101_gpr.o
ch101-core-objs 	+= src/ch101_gpr_fw.o
ch101-core-objs 	+= src/ch101_gpr_open.o
ch101-core-objs 	+= src/ch101_gpr_open_fw.o
ch101-core-objs 	+= src/ch101_gpr_sr_open.o
ch101-core-objs 	+= src/ch101_gpr_sr_open_fw.o
ch101-core-objs 	+= src/ch_api.o
ch101-core-objs 	+= src/ch_common.o
ch101-core-objs 	+= src/ch_driver.o
ch101-core-objs         += src/ch201_gprmt_fw.o

obj-$(CONFIG_CH101_I2C)	+= ch101-i2c.o
ch101-i2c-objs		+= ch101_i2c.o

# disable some warning flags
ccflags-y += -Wno-format