mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
UPSTREAM: iio: imu: add Kconfig and Makefile for inv_icm42600 driver
Add 3 modules: inv-icm42600, inv-icm42600-i2c, inv-icm42600-spi.
Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
(cherry picked from commit 8237945dbc)
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
Change-Id: I8bd9bcc06c9886daad5915d94bbfc20025ab23b6
This commit is contained in:
committed by
Tao Huang
parent
1ffc3c45e8
commit
faabd7297a
@@ -38,6 +38,7 @@ config KMX61
|
||||
To compile this driver as module, choose M here: the module will
|
||||
be called kmx61.
|
||||
|
||||
source "drivers/iio/imu/inv_icm42600/Kconfig"
|
||||
source "drivers/iio/imu/inv_mpu6050/Kconfig"
|
||||
source "drivers/iio/imu/st_lsm6dsx/Kconfig"
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_buffer.o
|
||||
obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o
|
||||
|
||||
obj-y += bmi160/
|
||||
obj-y += inv_icm42600/
|
||||
obj-y += inv_mpu6050/
|
||||
|
||||
obj-$(CONFIG_KMX61) += kmx61.o
|
||||
|
||||
28
drivers/iio/imu/inv_icm42600/Kconfig
Normal file
28
drivers/iio/imu/inv_icm42600/Kconfig
Normal file
@@ -0,0 +1,28 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
config INV_ICM42600
|
||||
tristate
|
||||
|
||||
config INV_ICM42600_I2C
|
||||
tristate "InvenSense ICM-426xx I2C driver"
|
||||
depends on I2C
|
||||
select INV_ICM42600
|
||||
select REGMAP_I2C
|
||||
help
|
||||
This driver supports the InvenSense ICM-426xx motion tracking
|
||||
devices over I2C.
|
||||
|
||||
This driver can be built as a module. The module will be called
|
||||
inv-icm42600-i2c.
|
||||
|
||||
config INV_ICM42600_SPI
|
||||
tristate "InvenSense ICM-426xx SPI driver"
|
||||
depends on SPI_MASTER
|
||||
select INV_ICM42600
|
||||
select REGMAP_SPI
|
||||
help
|
||||
This driver supports the InvenSense ICM-426xx motion tracking
|
||||
devices over SPI.
|
||||
|
||||
This driver can be built as a module. The module will be called
|
||||
inv-icm42600-spi.
|
||||
13
drivers/iio/imu/inv_icm42600/Makefile
Normal file
13
drivers/iio/imu/inv_icm42600/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
obj-$(CONFIG_INV_ICM42600) += inv-icm42600.o
|
||||
inv-icm42600-y += inv_icm42600_core.o
|
||||
inv-icm42600-y += inv_icm42600_gyro.o
|
||||
inv-icm42600-y += inv_icm42600_accel.o
|
||||
inv-icm42600-y += inv_icm42600_temp.o
|
||||
|
||||
obj-$(CONFIG_INV_ICM42600_I2C) += inv-icm42600-i2c.o
|
||||
inv-icm42600-i2c-y += inv_icm42600_i2c.o
|
||||
|
||||
obj-$(CONFIG_INV_ICM42600_SPI) += inv-icm42600-spi.o
|
||||
inv-icm42600-spi-y += inv_icm42600_spi.o
|
||||
Reference in New Issue
Block a user